Help with transcoding h264 encoded TS on raspberry pi

Tim Müller tim at centricular.com
Fri Dec 13 07:32:19 PST 2013


On Fri, 2013-12-13 at 15:33 +0100, Stefan Simon wrote:

Hi Stefan,

> https://drive.google.com/file/d/0B28etZUkBgLAa2JReDk3VHpUWHM/edit?usp=sharing

Thanks. Seems to work fine in 1.2:

$ gst-launch-1.0 file:///test2.ts ! tsdemux ! h264parse !
video/x-h264,alignment=au,stream-format=byte-stream ! fakesink -v
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
h264parse0:sink: caps = video/x-h264, stream-format=(string)byte-stream,
alignment=(string)nal
h264parse0:src: caps = video/x-h264, stream-format=(string)byte-stream,
alignment=(string)au, width=(int)1920, height=(int)1080,
parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1

(note how the src caps have width+height and all that)

> Found out a curious thing. When I drag the ts file through ffmpeg
> using vcodec and acodec "copy" gstreamer "just works" with that new
> file.

It probably gets sanitised a bit in the process, so that it starts with
a keyframe or SPS/PPS or so.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com






More information about the gstreamer-devel mailing list