[gst-devel] webcam & mpegps

Stefan Kost ensonic at hora-obscura.de
Fri Feb 4 16:20:31 CET 2011


Am 04.02.2011 10:54, schrieb Andres Gonzalez:
> Hi,
> 
> The following pipeline is not working.
> 
> gst-launch -v v4l2src device=/dev/video0 ! ffenc_mpeg2video ! mpegpsmux 
> ! filesink location=test.mpg
> 
> It says:
> [...]
> gstbasesrc.c(2574): gst_base_src_loop (): 
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> streaming task paused, reason not-negotiated (-4)
> Execution ended after 1004544165 ns.
> [...]
> 
> Could anybody explain why, please?
> 
> Regards,
> 

what is v4l-info telling about your webcam. Some webcams only output mjpeg. Try

gst-launch -v v4l2src device=/dev/video0 ! decodebin2 ! ffenc_mpeg2video !
mpegpsmux ! filesink location=test.mpg

Stefan




More information about the gstreamer-devel mailing list