Gstreamer: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 16: Line 16:
Receiver:
Receiver:
  gst-launch-0.10 udpsrc port=3333 ! "application/x-rtp, payload=127" ! rtph264depay ! ffdec_h264 ! xvimagesink sync=false
  gst-launch-0.10 udpsrc port=3333 ! "application/x-rtp, payload=127" ! rtph264depay ! ffdec_h264 ! xvimagesink sync=false
== Take a still image ==
gst-launch v4l2src ! ffmpegcolorspace ! pngenc ! filesink location=test.png

Revision as of 08:51, 18 February 2013

http://gstreamer.freedesktop.org/

Amazing audio/video processing, from the commandline!

Streaming

Transmitter:

gst-launch-0.10 v4l2src ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! videoflip method=5 ! x264enc pass=qual quantizer=20 tune=zerolatency ! rtph264pay ! udpsink host=192.168.0.150 port=3333

Receiver:

gst-launch-0.10 udpsrc port=3333 ! "application/x-rtp, payload=127" ! rtph264depay ! ffdec_h264 ! xvimagesink sync=false

Take a still image

gst-launch v4l2src ! ffmpegcolorspace ! pngenc ! filesink location=test.png