Example of Video player

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Example of Video player

citywolf
I can use the command below to play video file:
gst-launch playbin uri=file:////home/jinkui/Downloads/sample.m4v

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 ...


can someone give me a example of video player about m4v files using ffdec_mpeg4?
Reply | Threaded
Open this post in threaded view
|

Re: Example of Video player

cristian
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 ...


can someone give me a example of video player about m4v files using ffdec_mpeg4?
Reply | Threaded
Open this post in threaded view
|

Re: Example of Video player

Stefan Sauer
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?


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel