h264 playback, qtdemux issue

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

h264 playback, qtdemux issue

na
Hello,

I am new to gstreamer and I wanted to setup a pipeline that can playback an h.264 video that is encapsulated within an MP4 container.

I am using the following command:

gst-launch -v --gst-debug-level=2 filesrc location=hdv_0015_480p_384kbps_20fps.mp4 ! qtdemux ! ffdec_h264 ! ximagesink

I have attached the console output below.  Any help is greatly appreciated.  Thanks.

Best regards,

Nadeem

----------------------

gst-launch -v --gst-debug-level=2 filesrc location=hdv_0015_480p_384kbps_20fps.mp4 ! qtdemux ! ffdec_h264 ! ximagesink
Setting pipeline to PAUSED ...
0:00:00.128491689  2421  0x91fcb78 WARN                 qtdemux qtdemux_types.c:154:qtdemux_type_get: unknown QuickTime node type avc1
0:00:00.128991982  2421  0x91fcb78 WARN                 qtdemux qtdemux_types.c:154:qtdemux_type_get: unknown QuickTime node type avcC
0:00:00.129232998  2421  0x91fcb78 WARN                 qtdemux qtdemux.c:3186:qtdemux_parse_container:<qtdemux0> length too long (1572864 > 28)
0:00:00.129468726  2421  0x91fcb78 WARN                 qtdemux qtdemux.c:3186:qtdemux_parse_container:<qtdemux0> length too long (1507328 > 27)
0:00:00.130451079  2421  0x91fcb78 WARN                 qtdemux qtdemux.c:4907:qtdemux_parse_trak:<qtdemux0> unknown version 00000000
/GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:sink: caps = video/x-h264, codec_data=(buffer)01404033ffe1001d674d40339a7406c1ef3fffdd0fdd9a880000030008000003014478c19501000468ee3c80, width=(int)852, height=(int)480, framerate=(fraction)143/7, pixel-aspect-ratio=(fraction)847/852
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:src: caps = video/x-raw-yuv, width=(int)852, height=(int)480, framerate=(fraction)143/7, format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)847/852
0:00:00.229889863  2421  0x91fcb78 WARN                 qtdemux qtdemux.c:2645:gst_qtdemux_loop:<qtdemux0> error: streaming stopped, reason not-negotiated
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: GStreamer encountered a general stream error.
Additional debug info:
qtdemux.c(2645): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
streaming stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
/GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:src: caps = NULL
/GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstQTDemux:qtdemux0.GstPad:audio_00: caps = NULL
/GstPipeline:pipeline0/GstQTDemux:qtdemux0.GstPad:video_00: caps = NULL
Freeing pipeline ...
Reply | Threaded
Open this post in threaded view
|

Re: h264 playback, qtdemux issue

michael smith-6-3
On Thu, Feb 4, 2010 at 8:51 AM, na <[hidden email]> wrote:

>
> Hello,
>
> I am new to gstreamer and I wanted to setup a pipeline that can playback an
> h.264 video that is encapsulated within an MP4 container.
>
> I am using the following command:
>
> gst-launch -v --gst-debug-level=2 filesrc
> location=hdv_0015_480p_384kbps_20fps.mp4 ! qtdemux ! ffdec_h264 ! ximagesink

Use xvimagesink. In general it's also a good idea to have
ffmpegcolorspace in between the decoder and the video sink in case the
decoder is outputting a format that the sink can't accept.

Mike

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: h264 playback, qtdemux issue

Wim Taymans
In reply to this post by na
On Thu, 2010-02-04 at 08:51 -0800, na wrote:

> Hello,
>
> I am new to gstreamer and I wanted to setup a pipeline that can playback an
> h.264 video that is encapsulated within an MP4 container.
>
> I am using the following command:
>
> gst-launch -v --gst-debug-level=2 filesrc
> location=hdv_0015_480p_384kbps_20fps.mp4 ! qtdemux ! ffdec_h264 ! ximagesink
>

Add ffmpegcolorspace before ximagesink or use:

gst-launch playbin2 uri=file:///path/to/file.mp4

Wim

> I have attached the console output below.  Any help is greatly appreciated.
> Thanks.
>
> Best regards,
>
> Nadeem
>
> ----------------------
>
> gst-launch -v --gst-debug-level=2 filesrc
> location=hdv_0015_480p_384kbps_20fps.mp4 ! qtdemux ! ffdec_h264 ! ximagesink
> Setting pipeline to PAUSED ...
> 0:00:00.128491689  2421  0x91fcb78 WARN                 qtdemux
> qtdemux_types.c:154:qtdemux_type_get: unknown QuickTime node type avc1
> 0:00:00.128991982  2421  0x91fcb78 WARN                 qtdemux
> qtdemux_types.c:154:qtdemux_type_get: unknown QuickTime node type avcC
> 0:00:00.129232998  2421  0x91fcb78 WARN                 qtdemux
> qtdemux.c:3186:qtdemux_parse_container:<qtdemux0> length too long (1572864 >
> 28)
> 0:00:00.129468726  2421  0x91fcb78 WARN                 qtdemux
> qtdemux.c:3186:qtdemux_parse_container:<qtdemux0> length too long (1507328 >
> 27)
> 0:00:00.130451079  2421  0x91fcb78 WARN                 qtdemux
> qtdemux.c:4907:qtdemux_parse_trak:<qtdemux0> unknown version 00000000
> /GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:sink: caps =
> video/x-h264,
> codec_data=(buffer)01404033ffe1001d674d40339a7406c1ef3fffdd0fdd9a880000030008000003014478c19501000468ee3c80,
> width=(int)852, height=(int)480, framerate=(fraction)143/7,
> pixel-aspect-ratio=(fraction)847/852
> Pipeline is PREROLLING ...
> /GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:src: caps =
> video/x-raw-yuv, width=(int)852, height=(int)480, framerate=(fraction)143/7,
> format=(fourcc)I420, interlaced=(boolean)false,
> pixel-aspect-ratio=(fraction)847/852
> 0:00:00.229889863  2421  0x91fcb78 WARN                 qtdemux
> qtdemux.c:2645:gst_qtdemux_loop:<qtdemux0> error: streaming stopped, reason
> not-negotiated
> ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: GStreamer
> encountered a general stream error.
> Additional debug info:
> qtdemux.c(2645): gst_qtdemux_loop ():
> /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
> streaming stopped, reason not-negotiated
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> /GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:src: caps = NULL
> /GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:sink: caps = NULL
> /GstPipeline:pipeline0/GstQTDemux:qtdemux0.GstPad:audio_00: caps = NULL
> /GstPipeline:pipeline0/GstQTDemux:qtdemux0.GstPad:video_00: caps = NULL
> Freeing pipeline ...
>



------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: h264 playback, qtdemux issue

Tim-Philipp Müller-2
On Thu, 2010-02-04 at 18:14 +0100, Wim Taymans wrote:

> Add ffmpegcolorspace before ximagesink or use:

If you use ximagesink (and not e.g. xvimagesink), a videoscale may also
be needed, in case the image needs to be scaled to accommodate the
aspect ratio.

Cheers
 -Tim


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
na
Reply | Threaded
Open this post in threaded view
|

Re: h264 playback, qtdemux issue

na
adding ffmpegcolorspace and videoscale did the trick.  Thanks!

Best regards,

Nadeem