Unable to play mpeg video using gst-launch

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

Unable to play mpeg video using gst-launch

Debsu
Hello,

I am trying to use play a mpeg file using the following command:
gst-launch-0.10 -v filesrc location=/home/mmes/Videos/MovieTra1950_3.mpeg ! flupsdemux ! mpeg2dec ! ffmpegcolorspace ! autovideosink

But it is giving the following errors:
"ERROR: from element /GstPipeline:pipeline0/GstFluPSDemux:flupsdemux0: Internal data stream error.
Additional debug info:
gstmpegdemux.c(2934): gst_flups_demux_loop (): /GstPipeline:pipeline0/GstFluPSDemux:flupsdemux0:
stream stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll."


Any help is very much appreciated.

Thanks,
Deb
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

Thabelo Mmbengeni-2
if you are not sure of the decoder you must use
gst-launch-0.10 -v filesrc location=/home/mmes/Videos/MovieTra1950_3.mpeg ! decodebin ! autovideosink
or else  mpg
gst-launch-0.10 -v filesrc location=/home/mmes/Videos/MovieTra1950_3.mpeg ! jpegdec ! ffmpegcolorspace ! xvimagesink

On Tue, Nov 22, 2011 at 8:06 AM, Debsu <[hidden email]> wrote:
Hello,

I am trying to use play a mpeg file using the following command:
gst-launch-0.10 -v filesrc location=/home/mmes/Videos/MovieTra1950_3.mpeg !
flupsdemux ! mpeg2dec ! ffmpegcolorspace ! autovideosink

But it is giving the following errors:
*"ERROR: from element /GstPipeline:pipeline0/GstFluPSDemux:flupsdemux0:
Internal data stream error.
Additional debug info:
gstmpegdemux.c(2934): gst_flups_demux_loop ():
/GstPipeline:pipeline0/GstFluPSDemux:flupsdemux0:
stream stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll."*

Any help is very much appreciated.

Thanks,
Deb

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Unable-to-play-mpeg-video-using-gst-launch-tp4094645p4094645.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
Regards

Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

Debsu
Thanks for your reply.
Actually i am able to play this mpeg file using playbin, but I would like to play this file using the mpeg2dec and flupsdemux, and here the problem arises. Strange thing is, when I am using playbin, I have observed that playbin internally using the elements flupsdemux and mpeg2dec, but when I am directly using these elements, it is throwing errors.
Regards,
Deb.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

Thabelo Mmbengeni-2
run with --gst-debug=3 --verbose to see all error messages


On Tue, Nov 22, 2011 at 9:02 AM, Debsu <[hidden email]> wrote:
Thanks for your reply.
Actually i am able to play this mpeg file using playbin, but I would like to
play this file using the mpeg2dec and flupsdemux, and here the problem
arises. Strange thing is, when I am using playbin, I have observed that
playbin internally using the elements flupsdemux and mpeg2dec, but when I am
directly using these elements, it is throwing errors.
Regards,
Deb.

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Unable-to-play-mpeg-video-using-gst-launch-tp4094645p4094738.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
Regards

Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

Debsu
The excerpts of the command "gst-launch-0.10 --gst-debug=3 --verbose filesrc location=/home/mmes/Videos/MovieTra1950_3.mpeg ! flupsdemux ! mpeg2dec ! ffmpegcolorspace ! autovideosink" are the following:

0:00:00.070213199 29059  0x8d9dc90 INFO              flupsdemux gstmpegdemux.c:2773:gst_flups_sink_get_duration:<flupsdemux0> sink segment configured bytes segment start=0, stop=24068005, last_stop=0, duration=24068005, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, accum=0:00:00.000000000
0:00:00.070278081 29059  0x8d9dc90 INFO              flupsdemux gstmpegdemux.c:2775:gst_flups_sink_get_duration:<flupsdemux0> src segment configured time segment start=0:00:00.477000000, stop=99:99:99.999999999, last_stop=0:00:00.477000000, duration=0:00:52.118788888, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, accum=0:00:00.000000000
0:00:00.070434445 29059  0x8d9dc90 INFO        GST_ELEMENT_PADS gstelement.c:722:gst_element_add_pad:<flupsdemux0> adding pad 'video_e0'
0:00:00.070470515 29059  0x8d9dc90 INFO            GST_PIPELINE ./grammar.y:496:gst_parse_found_pad: trying delayed linking flupsdemux0:(NULL) to mpeg2dec0:(NULL)
0:00:00.070488671 29059  0x8d9dc90 INFO        GST_ELEMENT_PADS gstutils.c:1694:gst_element_link_pads_full: trying to link element flupsdemux0:(any) to element mpeg2dec0:(any)
0:00:00.070507550 29059  0x8d9dc90 INFO                GST_PADS gstutils.c:1028:gst_pad_check_link: trying to link flupsdemux0:video_e0 and mpeg2dec0:sink
0:00:00.070529332 29059  0x8d9dc90 INFO                GST_PADS gstutils.c:1592:prepare_link_maybe_ghosting: flupsdemux0 and mpeg2dec0 in same bin, no need for ghost pads
0:00:00.070552528 29059  0x8d9dc90 INFO                GST_PADS gstpad.c:1956:gst_pad_link_prepare: trying to link flupsdemux0:video_e0 and mpeg2dec0:sink
0:00:00.070572130 29059  0x8d9dc90 INFO                GST_PADS gstpad.c:2139:gst_pad_link_full: linked flupsdemux0:video_e0 and mpeg2dec0:sink, successful
0:00:00.070613856 29059  0x8d9dc90 INFO              flupsdemux gstmpegdemux.c:610:gst_flups_demux_send_data:<flupsdemux0> sending new segment: rate 1 applied_rate 1 start: 0:00:00.477011111, stop: 99:99:99.999999999, time: 0:00:00.477000000 to pad <flupsdemux0:video_e0>
0:00:00.070641540 29059  0x8d9dc90 INFO               GST_EVENT gstevent.c:599:gst_event_new_new_segment_full: creating newsegment update 0, rate 1.000000, format GST_FORMAT_TIME, start 0:00:00.477011111, stop 99:99:99.999999999, position 0:00:00.477000000
0:00:00.072080167 29059  0x8d9dc90 INFO        GST_ELEMENT_PADS gstelement.c:722:gst_element_add_pad:<flupsdemux0> adding pad 'audio_c0'
0:00:00.072138454 29059  0x8d9dc90 INFO              flupsdemux gstmpegdemux.c:610:gst_flups_demux_send_data:<flupsdemux0> sending new segment: rate 1 applied_rate 1 start: 0:00:00.477011111, stop: 99:99:99.999999999, time: 0:00:00.477000000 to pad <flupsdemux0:audio_c0>
0:00:00.072166718 29059  0x8d9dc90 INFO               GST_EVENT gstevent.c:599:gst_event_new_new_segment_full: creating newsegment update 0, rate 1.000000, format GST_FORMAT_TIME, start 0:00:00.477011111, stop 99:99:99.999999999, position 0:00:00.477000000
0:00:00.075182710 29059  0x8d9dc90 WARN           basetransform gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480, pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we support
0:00:00.075261854 29059  0x8d9dc90 WARN                mpeg2dec gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.076686836 29059  0x8d9dc90 WARN           basetransform gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480, pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we support
0:00:00.076761652 29059  0x8d9dc90 WARN                mpeg2dec gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.078458810 29059  0x8d9dc90 WARN           basetransform gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480, pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we support
0:00:00.078501785 29059  0x8d9dc90 WARN                mpeg2dec gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.080185074 29059  0x8d9dc90 WARN           basetransform gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480, pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we support
0:00:00.080258111 29059  0x8d9dc90 WARN                mpeg2dec gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.084106939 29059  0x8d9dc90 WARN           basetransform gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480, pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we support
0:00:00.084213202 29059  0x8d9dc90 WARN                mpeg2dec gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.086094807 29059  0x8d9dc90 WARN           basetransform gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480, pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we support
0:00:00.086139527 29059  0x8d9dc90 WARN                mpeg2dec gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.087215022 29059  0x8d9dc90 WARN           basetransform gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480, pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we support
0:00:00.087658808 29059  0x8d9dc90 WARN              flupsdemux gstmpegdemux.c:2934:gst_flups_demux_loop:<flupsdemux0> error: Internal data stream error.
0:00:00.087675682 29059  0x8d9dc90 WARN              flupsdemux gstmpegdemux.c:2934:gst_flups_demux_loop:<flupsdemux0> error: stream stopped, reason not-negotiated
0:00:00.087701281 29059  0x8d9dc90 INFO        GST_ERROR_SYSTEM gstelement.c:1931:gst_element_message_full:<flupsdemux0> posting message: Internal data stream error.
ERROR: from element /GstPipeline:pipeline0/GstFluPSDemux:flupsdemux0: Internal data stream error.
Additional debug info:
gstmpegdemux.c(2934): gst_flups_demux_loop (): /GstPipeline:pipeline0/GstFluPSDemux:flupsdemux0:
stream stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
0:00:00.096708031 29059  0x8cc8050 INFO              GST_STATES gstelement.c:2408:gst_element_continue_state:<autovideosink0-actual-sink-ximage> completed state change to READY
0:00:00.096731145 29059  0x8cc8050 INFO              GST_STATES
Reply | Threaded
Open this post in threaded view
|

RE: Unable to play mpeg video using gst-launch

Sudarshan Bisht
In reply to this post by Debsu
I guess you need to provide codec_data with caps between demuxer and
decoder. When you play this file with playbin or decodebin using -v
option, you get to see caps between demuxer and decoder, so use the
same.

-
Sudarshan
From: Debsu
Sent: 22/11/2011 10:40
To: [hidden email]
Subject: Re: Unable to play mpeg video using gst-launch
The excerpts of the command *"gst-launch-0.10 --gst-debug=3 --verbose filesrc
location=/home/mmes/Videos/MovieTra1950_3.mpeg ! flupsdemux ! mpeg2dec !
ffmpegcolorspace ! autovideosink"* are the following:
*
0:00:00.070213199 29059  0x8d9dc90 INFO              flupsdemux
gstmpegdemux.c:2773:gst_flups_sink_get_duration:<flupsdemux0> sink segment
configured bytes segment start=0, stop=24068005, last_stop=0,
duration=24068005, rate=1.000000, applied_rate=1.000000, flags=0x00,
time=0:00:00.000000000, accum=0:00:00.000000000
0:00:00.070278081 29059  0x8d9dc90 INFO              flupsdemux
gstmpegdemux.c:2775:gst_flups_sink_get_duration:<flupsdemux0> src segment
configured time segment start=0:00:00.477000000, stop=99:99:99.999999999,
last_stop=0:00:00.477000000, duration=0:00:52.118788888, rate=1.000000,
applied_rate=1.000000, flags=0x00, time=0:00:00.000000000,
accum=0:00:00.000000000
0:00:00.070434445 29059  0x8d9dc90 INFO        GST_ELEMENT_PADS
gstelement.c:722:gst_element_add_pad:<flupsdemux0> adding pad 'video_e0'
0:00:00.070470515 29059  0x8d9dc90 INFO            GST_PIPELINE
./grammar.y:496:gst_parse_found_pad: trying delayed linking
flupsdemux0:(NULL) to mpeg2dec0:(NULL)
0:00:00.070488671 29059  0x8d9dc90 INFO        GST_ELEMENT_PADS
gstutils.c:1694:gst_element_link_pads_full: trying to link element
flupsdemux0:(any) to element mpeg2dec0:(any)
0:00:00.070507550 29059  0x8d9dc90 INFO                GST_PADS
gstutils.c:1028:gst_pad_check_link: trying to link flupsdemux0:video_e0 and
mpeg2dec0:sink
0:00:00.070529332 29059  0x8d9dc90 INFO                GST_PADS
gstutils.c:1592:prepare_link_maybe_ghosting: flupsdemux0 and mpeg2dec0 in
same bin, no need for ghost pads
0:00:00.070552528 29059  0x8d9dc90 INFO                GST_PADS
gstpad.c:1956:gst_pad_link_prepare: trying to link flupsdemux0:video_e0 and
mpeg2dec0:sink
0:00:00.070572130 29059  0x8d9dc90 INFO                GST_PADS
gstpad.c:2139:gst_pad_link_full: linked flupsdemux0:video_e0 and
mpeg2dec0:sink, successful
0:00:00.070613856 29059  0x8d9dc90 INFO              flupsdemux
gstmpegdemux.c:610:gst_flups_demux_send_data:<flupsdemux0> sending new
segment: rate 1 applied_rate 1 start: 0:00:00.477011111, stop:
99:99:99.999999999, time: 0:00:00.477000000 to pad <flupsdemux0:video_e0>
0:00:00.070641540 29059  0x8d9dc90 INFO               GST_EVENT
gstevent.c:599:gst_event_new_new_segment_full: creating newsegment update 0,
rate 1.000000, format GST_FORMAT_TIME, start 0:00:00.477011111, stop
99:99:99.999999999, position 0:00:00.477000000
0:00:00.072080167 29059  0x8d9dc90 INFO        GST_ELEMENT_PADS
gstelement.c:722:gst_element_add_pad:<flupsdemux0> adding pad 'audio_c0'
0:00:00.072138454 29059  0x8d9dc90 INFO              flupsdemux
gstmpegdemux.c:610:gst_flups_demux_send_data:<flupsdemux0> sending new
segment: rate 1 applied_rate 1 start: 0:00:00.477011111, stop:
99:99:99.999999999, time: 0:00:00.477000000 to pad <flupsdemux0:audio_c0>
0:00:00.072166718 29059  0x8d9dc90 INFO               GST_EVENT
gstevent.c:599:gst_event_new_new_segment_full: creating newsegment update 0,
rate 1.000000, format GST_FORMAT_TIME, start 0:00:00.477011111, stop
99:99:99.999999999, position 0:00:00.477000000
0:00:00.075182710 29059  0x8d9dc90 WARN           basetransform
gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform
could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368,
height=(int)480, pixel-aspect-ratio=(fraction)40/23,
framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we
support
0:00:00.075261854 29059  0x8d9dc90 WARN                mpeg2dec
gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.076686836 29059  0x8d9dc90 WARN           basetransform
gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform
could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368,
height=(int)480, pixel-aspect-ratio=(fraction)40/23,
framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we
support
0:00:00.076761652 29059  0x8d9dc90 WARN                mpeg2dec
gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.078458810 29059  0x8d9dc90 WARN           basetransform
gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform
could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368,
height=(int)480, pixel-aspect-ratio=(fraction)40/23,
framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we
support
0:00:00.078501785 29059  0x8d9dc90 WARN                mpeg2dec
gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.080185074 29059  0x8d9dc90 WARN           basetransform
gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform
could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368,
height=(int)480, pixel-aspect-ratio=(fraction)40/23,
framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we
support
0:00:00.080258111 29059  0x8d9dc90 WARN                mpeg2dec
gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.084106939 29059  0x8d9dc90 WARN           basetransform
gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform
could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368,
height=(int)480, pixel-aspect-ratio=(fraction)40/23,
framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we
support
0:00:00.084213202 29059  0x8d9dc90 WARN                mpeg2dec
gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.086094807 29059  0x8d9dc90 WARN           basetransform
gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform
could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368,
height=(int)480, pixel-aspect-ratio=(fraction)40/23,
framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we
support
0:00:00.086139527 29059  0x8d9dc90 WARN                mpeg2dec
gstmpeg2dec.c:1147:gst_mpeg2dec_chain:<mpeg2dec0> Decoding error #1
0:00:00.087215022 29059  0x8d9dc90 WARN           basetransform
gstbasetransform.c:1211:gst_base_transform_setcaps:<ffmpegcsp0> transform
could not transform video/x-raw-yuv, format=(fourcc)I420, width=(int)368,
height=(int)480, pixel-aspect-ratio=(fraction)40/23,
framerate=(fraction)30000/1001, interlaced=(boolean)true in anything we
support
0:00:00.087658808 29059  0x8d9dc90 WARN              flupsdemux
gstmpegdemux.c:2934:gst_flups_demux_loop:<flupsdemux0> error: Internal data
stream error.
0:00:00.087675682 29059  0x8d9dc90 WARN              flupsdemux
gstmpegdemux.c:2934:gst_flups_demux_loop:<flupsdemux0> error: stream
stopped, reason not-negotiated
0:00:00.087701281 29059  0x8d9dc90 INFO        GST_ERROR_SYSTEM
gstelement.c:1931:gst_element_message_full:<flupsdemux0> posting message:
Internal data stream error.
ERROR: from element /GstPipeline:pipeline0/GstFluPSDemux:flupsdemux0:
Internal data stream error.
Additional debug info:
gstmpegdemux.c(2934): gst_flups_demux_loop ():
/GstPipeline:pipeline0/GstFluPSDemux:flupsdemux0:
stream stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
0:00:00.096708031 29059  0x8cc8050 INFO              GST_STATES
gstelement.c:2408:gst_element_continue_state:<autovideosink0-actual-sink-ximage>
completed state change to READY
0:00:00.096731145 29059  0x8cc8050 INFO              GST_STATES *

--
View this message in context:
http://gstreamer-devel.966125.n4.nabble.com/Unable-to-play-mpeg-video-using-gst-launch-tp4094645p4094891.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: Unable to play mpeg video using gst-launch

Debsu
Hello Sudarshan,
Thanks a lot, I will try that also.
But can you tell me if it is possible to create a pipeline using mpeg2demux and mpeg2dec for playing mpeg file, apart from using playbin?
I think for a simple mpeg file playback I don't need to set caps filter.
Regrads,
Deb
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

David Walker
What about something like: 

gst-launch filesrc location=yourfile.mpg ! mpegdemux ! mpeg2dec ! ffmpegcolorspace ! autovideosink 

Thanks,
David

On 22 November 2011 13:45, Debsu <[hidden email]> wrote:
Hello Sudarshan,
Thanks a lot, I will try that also.
But can you tell me if it is possible to create a pipeline using mpeg2demux
and mpeg2dec for playing mpeg file, apart from using playbin?
I think for a simple mpeg file playback I don't need to set caps filter.
Regrads,
Deb

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Unable-to-play-mpeg-video-using-gst-launch-tp4094645p4095695.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

Debsu
I have already used this pipeline, the following are the result:

gst-launch -v filesrc location=./Videos/MovieTra1950_3.mpeg ! mpegdemux ! mpeg2dec ! ffmpegcolorspace ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstMPEGDemux:mpegdemux0.GstPad:sink: caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)true, parsed=(boolean)true
/GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:sink: caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480, pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001, interlaced=(boolean)true
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2582): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

Debsu
Even when I am using the following pipeline:
gst-launch -v filesrc location=./MovieTra1950_3.mpeg ! mpegdemux name=demuxer ! mpeg2dec ! autovideosink demuxer. ! mad ! autoaudiosink
The pipeline is getting stalled after showing the following messages:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstMPEGDemux:demuxer.GstPad:sink: caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)true, parsed=(boolean)true
/GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:sink: caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480, pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001, interlaced=(boolean)true
/GstPipeline:pipeline0/GstMad:mad0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)1
/GstPipeline:pipeline0/GstMad:mad0.GstPad:src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32, rate=(int)44100, channels=(int)1
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstPulseSink:autoaudiosink0-actual-sink-pulse.GstPad:sink: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32, rate=(int)44100, channels=(int)1
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0.GstGhostPad:sink: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32, rate=(int)44100, channels=(int)1
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0.GstGhostPad:sink.GstProxyPad:proxypad1: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32, rate=(int)44100, channels=(int)1
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

Debsu
In reply to this post by Debsu
Hello,
Can anyone tell me how to create a simple pipeline for mpeg file without using Playbin? i tried lot of options provided by the gst-launch man page, but it failed each time.
Thanks in advance.
regards,
Deb.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

David Walker
In reply to this post by Debsu
Hi,

Try adding a typefind element between the filesrc and mpegdemux (whilst adding "-v" to gst-inspect) and check the stream type is what you expect and compatible with mpegdemux.


On 23 November 2011 05:00, Debsu <[hidden email]> wrote:
I have already used this pipeline, the following are the result:

gst-launch -v filesrc location=./Videos/MovieTra1950_3.mpeg ! mpegdemux !
mpeg2dec ! ffmpegcolorspace ! autovideosink
*Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstMPEGDemux:mpegdemux0.GstPad:sink: caps =
video/mpeg, mpegversion=(int)2, systemstream=(boolean)true,
parsed=(boolean)true
/GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:sink: caps = video/mpeg,
mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:src: caps =
video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480,
pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001,
interlaced=(boolean)true
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
data flow error.
Additional debug info:
gstbasesrc.c(2582): gst_base_src_loop ():
/GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
*

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Unable-to-play-mpeg-video-using-gst-launch-tp4094645p4098528.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

Soeren Grunewald
Hi,

you should check what playbin does, try:

$ GST_DEBUG_DUMP_DOT_DIR=. gst-launch playbin2 uri=file://...
$ dot -T svg -O *gst-launch.PAUSED_PLAYING.dot -o pipe.svg && eog pipe.svg

This will show you the formats detected and elements are choosen by
playbin. Maybe this will help you.
--
Regards,
Soeren


On 11/23/2011 11:13 AM, David Walker wrote:

> Hi,
>
> Try adding a typefind element between the filesrc and mpegdemux (whilst
> adding "-v" to gst-inspect) and check the stream type is what you expect
> and compatible with mpegdemux.
>
>
> On 23 November 2011 05:00, Debsu<[hidden email]>  wrote:
>
>> I have already used this pipeline, the following are the result:
>>
>> gst-launch -v filesrc location=./Videos/MovieTra1950_3.mpeg ! mpegdemux !
>> mpeg2dec ! ffmpegcolorspace ! autovideosink
>> *Setting pipeline to PAUSED ...
>> Pipeline is PREROLLING ...
>> /GstPipeline:pipeline0/GstMPEGDemux:mpegdemux0.GstPad:sink: caps =
>> video/mpeg, mpegversion=(int)2, systemstream=(boolean)true,
>> parsed=(boolean)true
>> /GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:sink: caps =
>> video/mpeg,
>> mpegversion=(int)2, systemstream=(boolean)false
>> /GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:src: caps =
>> video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480,
>> pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001,
>> interlaced=(boolean)true
>> ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
>> data flow error.
>> Additional debug info:
>> gstbasesrc.c(2582): gst_base_src_loop ():
>> /GstPipeline:pipeline0/GstFileSrc:filesrc0:
>> streaming task paused, reason not-negotiated (-4)
>> ERROR: pipeline doesn't want to preroll.
>> Setting pipeline to NULL ...
>> *
>>
>> --
>> View this message in context:
>> http://gstreamer-devel.966125.n4.nabble.com/Unable-to-play-mpeg-video-using-gst-launch-tp4094645p4098528.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

Sudarshan Bisht
Hi,

gst-launch-0.10 filesrc location=MovieTra1950_3.mpeg ! mpegdemux ! mpeg2dec ! autovideosink

works perfectly fine for me, I have latest gstreamer (core + plugins)  installed in my machine. 

So just update your installation :) 




On Wed, Nov 23, 2011 at 2:08 PM, Soeren Grunewald <[hidden email]> wrote:
Hi,

you should check what playbin does, try:

$ GST_DEBUG_DUMP_DOT_DIR=. gst-launch playbin2 uri=file://...
$ dot -T svg -O *gst-launch.PAUSED_PLAYING.dot -o pipe.svg && eog pipe.svg

This will show you the formats detected and elements are choosen by playbin. Maybe this will help you.
--
Regards,
Soeren



On 11/23/2011 11:13 AM, David Walker wrote:
Hi,

Try adding a typefind element between the filesrc and mpegdemux (whilst
adding "-v" to gst-inspect) and check the stream type is what you expect
and compatible with mpegdemux.


On 23 November 2011 05:00, Debsu<[hidden email]>  wrote:

I have already used this pipeline, the following are the result:

gst-launch -v filesrc location=./Videos/MovieTra1950_3.mpeg ! mpegdemux !
mpeg2dec ! ffmpegcolorspace ! autovideosink
*Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstMPEGDemux:mpegdemux0.GstPad:sink: caps =
video/mpeg, mpegversion=(int)2, systemstream=(boolean)true,
parsed=(boolean)true
/GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:sink: caps =
video/mpeg,
mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:src: caps =
video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480,
pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001,
interlaced=(boolean)true
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
data flow error.
Additional debug info:
gstbasesrc.c(2582): gst_base_src_loop ():
/GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
*

--
View this message in context:
http://gstreamer-devel.966125.n4.nabble.com/Unable-to-play-mpeg-video-using-gst-launch-tp4094645p4098528.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to play mpeg video using gst-launch

Thabelo Mmbengeni-2

worked for me too...

On Nov 23, 2011 9:22 PM, "Sudarshan Bisht" <[hidden email]> wrote:
Hi,

gst-launch-0.10 filesrc location=MovieTra1950_3.mpeg ! mpegdemux ! mpeg2dec ! autovideosink

works perfectly fine for me, I have latest gstreamer (core + plugins)  installed in my machine. 

So just update your installation :) 




On Wed, Nov 23, 2011 at 2:08 PM, Soeren Grunewald <[hidden email]> wrote:
Hi,

you should check what playbin does, try:

$ GST_DEBUG_DUMP_DOT_DIR=. gst-launch playbin2 uri=file://...
$ dot -T svg -O *gst-launch.PAUSED_PLAYING.dot -o pipe.svg && eog pipe.svg

This will show you the formats detected and elements are choosen by playbin. Maybe this will help you.
--
Regards,
Soeren



On 11/23/2011 11:13 AM, David Walker wrote:
Hi,

Try adding a typefind element between the filesrc and mpegdemux (whilst
adding "-v" to gst-inspect) and check the stream type is what you expect
and compatible with mpegdemux.


On 23 November 2011 05:00, Debsu<[hidden email]>  wrote:

I have already used this pipeline, the following are the result:

gst-launch -v filesrc location=./Videos/MovieTra1950_3.mpeg ! mpegdemux !
mpeg2dec ! ffmpegcolorspace ! autovideosink
*Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstMPEGDemux:mpegdemux0.GstPad:sink: caps =
video/mpeg, mpegversion=(int)2, systemstream=(boolean)true,
parsed=(boolean)true
/GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:sink: caps =
video/mpeg,
mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstMpeg2dec:mpeg2dec0.GstPad:src: caps =
video/x-raw-yuv, format=(fourcc)I420, width=(int)368, height=(int)480,
pixel-aspect-ratio=(fraction)40/23, framerate=(fraction)30000/1001,
interlaced=(boolean)true
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
data flow error.
Additional debug info:
gstbasesrc.c(2582): gst_base_src_loop ():
/GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
*

--
View this message in context:
http://gstreamer-devel.966125.n4.nabble.com/Unable-to-play-mpeg-video-using-gst-launch-tp4094645p4098528.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel