[gst-devel] Example of Video player

Stefan Kost ensonic at hora-obscura.de
Mon Dec 20 20:40:00 CET 2010


Am 20.12.2010 14:40, schrieb cristiurban:
> 
> I can use the command below to play video file:
> gst-launch playbin uri=file:////home/jinkui/Downloads/sample.m4v
> Try using gst-launch -v playbin
> uri=file:////home/jinkui/Downloads/sample.m4v
> to see what elements playbin takes to created the pipeline
> or try gst-launch filesrc location=sample.m4v  ! ffdec_mpeg4 !
> ffmpegcolorspace ! ximagesink --gst-debug-level=<level you want to make
> debugging>
> 
> 
> 
> but the command below would be error:
> gst-launch filesrc location=sample.m4v  ! ffdec_mpeg4 ! ffmpegcolorspace !
> ximagesink Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> ERROR: from element /GstPipeline:pipeline0/ffdec_mpeg4:ffdec_mpeg40:
> Internal GStreamer error: negotiation problem.  Please file a bug at
> http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
> Additional debug info:
> gstffmpegdec.c(2729): gst_ffmpegdec_chain ():
> /GstPipeline:pipeline0/ffdec_mpeg4:ffdec_mpeg40:
> ffdec_mpeg4: input format was not set before data start
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> Freeing pipeline ...

gst-launch filesrc location=sample.m4v  ! mpeg4videoparse ! ffdec_mpeg4 !
ffmpegcolorspace ! ximagesink

you need to use a container (demuxer) or a parser.

Stefan


> 
> 
> can someone give me a example of video player about m4v files using
> ffdec_mpeg4? 





More information about the gstreamer-devel mailing list