Help with transcoding h264 encoded TS on raspberry pi

Tim Müller tim at centricular.com
Fri Dec 13 04:58:12 PST 2013


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

Hi Stefan,

> thanks for a fast response. Looks like as far as I don't include
> omxh264dec in the pipeline, I don't get an error. I'm not sure how to
> read this correctly, but itmight have something to do with alignment
> nal/au

h264parse should take care of any stream-format and alignment
conversions.

> root at raspberrypi:/mnt/tmp/tmp# gst-launch-1.0 filesrc -v
> location="/mnt/tmp/movie/20121107 0402 - HBO HD - Hanna.ts" !
> tsdemux ! h264parse ! omxh264dec ! fakesink
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps =
> video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal
> /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps =
> video/x-h264, stream-format=(string)byte-stream, alignment=(string)au,
> parsed=(boolean)true
> ERROR: from element /GstPipeline:pipeline0/GstTSDemux:tsdemux0:
> Internal data stream error.
> Additional debug info:
> mpegtsbase.c(1620): mpegts_base_loop
> (): /GstPipeline:pipeline0/GstTSDemux:tsdemux0:
> stream stopped, reason not-negotiated


I think the problem here might be that h264parse does not put
width/height on the output (src) caps, and omxh264dec requires that.

If I remember correctly, this was fixed in 1.2.x.

If you can put the first few MB of a sample file somewhere I can check.

 Cheers
  -Tim

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






More information about the gstreamer-devel mailing list