Help with transcoding h264 encoded TS on raspberry pi
Stefan Simon
stefansimon8 at gmail.com
Fri Dec 13 06:33:51 PST 2013
Tim,
I cut first 6MB from the file with dd:
https://drive.google.com/file/d/0B28etZUkBgLAa2JReDk3VHpUWHM/edit?usp=sharing
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.
On Fri, Dec 13, 2013 at 1:58 PM, Tim Müller <tim at centricular.com> wrote:
> 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
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131213/11cce9bc/attachment.html>
More information about the gstreamer-devel
mailing list