[gst-devel] v4l2src and RTSP streaming

Andoni Morales ylatuya at gmail.com
Fri Jun 18 01:40:01 CEST 2010


El día 17 de junio de 2010 23:33, José Luis Segura Lucas
<josel.segura at gmx.es> escribió:
> Hi people!
> I'm trying to use gst-rtsp-server to serve the video from a v4l2 device.
> The device is fully supported. I can make a pipeline, following the code
> examples from gst-rtsp-server, in this way:
> $ gst-launch-0.10 v4l2src device=/dev/video1 ! ffmpegcolorspace !
> video/x-raw-yuv,width=320,height=240 ! fakesink
> When I try to add one element more to the pipeline (ffenc_h263) to encode
> the video before it was added to the RTSP stream, I get this error:
> $ gst-launch-0.10 v4l2src device=/dev/video1 ! ffmpegcolorspace !
> video/x-raw-yuv,width=320,height=240 ! ffenc_h263 ! fakesink
> WARNING: erroneous pipeline: could not link ffmpegcsp0 to ffenc_h2630
> I read the source and sinks capabilities of ffmpegcolorspace and ffenc_263,
> and I think they are compatibles.
> From ffmpegcolorspace source capabilities I have seen very
> much video/x-raw-yuv, video/x-raw-rgb and video/x-raw-gray posibilities, and
> from ffenc_h263 sink capabilities I have seen this:
> video/x-raw-rgb
> video/x-raw-yuv
> video/x-raw-gray
> I understand that ffenc_h263 must accept any raw video in rgb, yuv or
> gray... Do I make a mistake?
That's true, but it only supports a set of width/height combinations,
so you will need a videoscale element before the encoder. Do
'gst-inspect ffenc_h263' to check the accepted combinations.

Cheers,
Andoni



> I'm trying to build the pipeline first with gst-launch to, when I have a
> success, use it as input to the command test-launch from the gst-rtsp-server
> distribution.
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>



-- 
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es




More information about the gstreamer-devel mailing list