Help with transcoding h264 encoded TS on raspberry pi

Stefan Simon stefansimon8 at gmail.com
Fri Dec 13 02:31:52 PST 2013


Hi,

I'm completely new to GStreamer and trying to transcode some HDTV h264
recordings in TS format to h264 with a lower bitrate to save disk space.

gst-launch-1.0 version 1.0.10
GStreamer 1.0.10
http://packages.qa.debian.org/gstreamer1.0

omx:  omxmpeg2videodec: OpenMAX MPEG2 Video Decoder
omx:  omxmpeg4videodec: OpenMAX MPEG4 Video Decoder
omx:  omxh263dec: OpenMAX H.263 Video Decoder
omx:  omxh264dec: OpenMAX H.264 Video Decoder
omx:  omxtheoradec: OpenMAX Theora Video Decoder
omx:  omxvp8dec: OpenMAX VP8 Video Decoder
omx:  omxmjpegdec: OpenMAX MJPEG Video Decoder
omx:  omxvc1dec: OpenMAX WMV Video Decoder
omx:  omxh264enc: OpenMAX H.264 Video Encoder

I tried a lot of variations I found on the nets, but didn't get any result
what so ever apart from error messages:

gst-launch-1.0 filesrc location=<file.ts> ! tsdemux ! h264parse !
omxh264dec ! omxh264enc ! filesink location=test.h264

this is as primitive as can get I suppose. Taking into account my
non-existent experience with GSTreamer, this pipeline would make sense.
Demux, parse, decode, encode, dump to a file. What I get is

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
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
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Any pointers to what I'm doing wrong? I also tried decodebin to construct
the decoding pipeline for me, but it fails saying I don't have a h264
decoder..

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131213/3f1c63aa/attachment.html>


More information about the gstreamer-devel mailing list