[gst-devel] webcam & mpegps

Nicolas Bertrand nico at inattendu.org
Fri Feb 4 11:23:16 CET 2011


I make it working by 'forcing' ffmpecolorspace with a filter
gst-launch -v v4l2src ! ffmpegcolorspace!  video/x-raw-yuv, width=320, 
height=240, framerate=\(fraction\)30/1, format=\(fourcc\)I420 ! 
ffenc_mpeg2video ! mpegpsmux ! filesink location=test.mpg

Le 04/02/2011 14:00, Andres Gonzalez a écrit :
> Many thanks for the replies, but still no luck.
>
> $ gst-launch -v v4l2src device=/dev/video0 ! ffmpegcolorspace !
> ffenc_mpeg2video ! mpegpsmux ! filesink location=test.mpg
>
> I also copy&paste the traces:
>
> Estableciendo el conducto a PAUSA … (Setting pipeline to PAUSE)
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps =
> video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480,
> interlaced=(boolean)false, framerate=(fraction)22/1
> El conducto está vivo y no necesita PREPARARSE … (The pipeline is alive
> and does not need to GET READY)
> Estableciendo el conducto a REPRODUCIENDO … (Setting pipeline to PLAYING)
> New clock: GstSystemClock
> /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps =
> video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480,
> interlaced=(boolean)false, framerate=(fraction)22/1
> /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps =
> video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480,
> interlaced=(boolean)false, framerate=(fraction)22/1
> ERROR: del elemento /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Error en
> el flujo de datos interno.
> Información adicional de depuración:
> gstbasesrc.c(2574): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> streaming task paused, reason not-negotiated (-4)
> Execution ended after 994073061 ns.
> Estableciendo el conducto a PAUSA … (setting pipeline to PAUSE)
> Estableciando el conducto a PREPARADO … (setting pipeline to READY)
> /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps = NULL
> /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps = NULL
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = NULL
> Estableciendo el conducto a NULL …
> Liberando la tubería… (releasing the pipeline)
>
>
>
>





More information about the gstreamer-devel mailing list