Unable to play the videos using GStreamer -gst launch

Thiago Santos thiagoss at osg.samsung.com
Wed Apr 15 10:38:15 PDT 2015


On 04/15/2015 03:44 AM, senthil.dsec wrote:
> hi All,
>
> I am trying to play a video from local disk, http sources / youtube using
> command using Gstreamer. With various tries i am ended up with many error
> and unable to move further as am new to GStreamer.
>
> This might be a little lengthy try but pls help.
I must warn you that you are using gstreamer 0.10, this version is years 
obsolete now and the community is not maintaining it anymore. It is 
*strongly* recommended to move to gstreamer 1.0 series.

>
> Try1:
> $ gst-launch-0.10 filesrc location='/home/trail/test/GTAC.mpg'

I'd suggest reading through the documentation for gstreamer and gst-launch.
http://gstreamer.freedesktop.org/documentation/ <- look for the 
application development manual so you understand the basics.
'man gst-launch' should help you with gst-launch syntax.

What you are doing here is that you are creating an element to read from 
a file and not linking it to anything, so you get the not-linked error 
below. Nothing is telling gstreamer to 'play' this file in your command.

> Setting pipeline to PAUSED ...
> Pipeline is PREROLLED ...
> ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
> data flow error.
> Additional debug info:
> gstbasesrc.c(2625): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstFileSrc:filesrc0:
> streaming task paused, reason not-linked (-1)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> What is the issue? how to di correct?
>
> Try2:
> $ gst-launch-0.10 filesrc location=/home/trail/test/GTAC.mpg ! mpegdemux !
> mpeg2dec ! autovideosink
> WARNING: erroneous pipeline: no element "mpegdemux"
>
> How to resolve?
There is no 'mpegdemux' element as the error tells you. You should 
likely use mpegvideoparse and then the decoder.

>
> Try3:
> tcs at tcs-ThinkCentre-M58e:~$ gst-launch-0.10 souphttpsrc
> location=http://docs.gstreamer.com/media/sintel_trailer-480p.webm !
> decodebin2 ! autovideosink
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Missing element: VP8 decoder
> ^CCaught interrupt -- handling interrupt.
> Interrupt: Stopping pipeline ...
>
> (gst-launch-0.10:23698): GLib-CRITICAL **: Source ID 1 was not found when
> attempting to remove it
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> Any idea on what is happening here and resolution?
Again, the error is pretty clear. You don't have the vp8 decoder (video 
format) element. It is available from gst-plugins-good.

>
> Try4:
> $ gst-launch-0.10 playbin2
> uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm
>
> This command Plays the audio but vidoe frame is not displayed - Any idea in
> resolving?
It plays the audio but, as you don't have a plugin that provides vp8 
decoding, it can't play the video.

Regards,
>
> Thanks very much in advance
>
> Regards
> Senthil
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Unable-to-play-the-videos-using-GStreamer-gst-launch-tp4671564.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


-- 
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley



More information about the gstreamer-devel mailing list