wrong caps for decoding

Tim-Philipp Müller t.i.m at zen.co.uk
Mon Sep 10 14:31:32 PDT 2012


On Mon, 2012-09-10 at 16:53 -0400, Chuck Crisler wrote:

Hi,

> Now I am trying (and failing) to play it back. For example,
> 
> gst-launch -v filesrc location=/home/.../test.ts ! ffdec_h264 !
> video/x-h264,width=640,height=480 ! ximagesink
> 
> fails to link ffdec_h264 to ximagesink.
> 
> gst-launch -v filesrc location=/home/.../test.ts ! ffdec_h264 !
> video/x-raw-yuv,width=640,height=480 ! ffmpegcolorspace ! ximagesink
> 
> fails because the input format on ffdec_h264 was not set before data
> start.
> 
> What am I doing wrong? I know that this can be done because playbin2
> works. I want to learn how to do this manually.
> 
> Thank you for all help! Also, I would appreciate all suggestions of
> how to figure out my error so I can learn from my mistakes.

Try:

 gst-launch-0.10 filesrc location=foo.ts ! decodebin2 !
ffmpegcolorspace ! videoscale ! xvimagesink

or

 gst-launch-0.10 filesrc location=foo.ts ! tsdemux ! ffdec_h264 !
ffmpegcolorspace ! videoscale ! xvimagesink

(or mpegtsdemux if you don't have tsdemux).

Cheers
 -Tim



More information about the gstreamer-devel mailing list