Stream from V4L2 source (YUY2)

João Ramos jviolaramos at gmail.com
Mon Jan 7 03:05:26 PST 2013


Hello,

I need to setup a streaming server to stream raw video from a camera (V4L
source).
The video output format from the framegrabber is YUY2, and as this is a not
supported format for rtpvrawpaw, so I've used ffmpegcolorspace to do a
conversion from YUY2 to I420, but still I cannot read the stream.

I've tried the following pipeline (sent to test-launch application from the
gst-rtsp sources):
( v4l2src !
video/x-raw-yuv,format=(fourcc)YUY2,width=720,height=576,framerate=25/1 !
ffmpegcolorspace !
video/x-raw-yuv,format=(fourcc)I420,width=720,height=576,framerate=25/1 !
rtpvrawpay name=pay0 pt=96 )
but this is not working.

However, if I use the same pipeline, but replacing the source from
"v4l2src" to "videotestsrc", like this:
( videotestsrc !
video/x-raw-yuv,format=(fourcc)YUY2,width=720,height=576,framerate=25/1 !
ffmpegcolorspace !
video/x-raw-yuv,format=(fourcc)I420,width=720,height=576,framerate=25/1 !
rtpvrawpay name=pay0 pt=96 )"
everything works fine!

I don't understand what is wrong.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130107/31617465/attachment.html>


More information about the gstreamer-devel mailing list