AnsweredAssumed Answered

Gstreamer transcode to h264

Question asked by Peter Hafner on Dec 23, 2014
Latest reply on Mar 24, 2015 by Luca Noga

I have a i.mx6 Dual,

and the gstreamer-imx compiled.

My task is to receive a jpeg-stream, and transcode it to a h264 video stream.

Of course, for streaming over wifi, and very fast ;-)


Here, this line is working,

I got the jpeg-stream stored to the file.

gst-launch-1.0 udpsrc buffer-size=1000000 port=5006 ! queue ! jpegdec ! imxipuvideotransform ! matroskamux name=mux ! filesink location=test.mkv


Now, I want to transcode it to h264.

I try different lines with gstreamer, mostly I run into not-negotiated (-4) error.


for example with this one.

gst-launch-1.0 --gst-debug=3 udpsrc buffer-size=1000000 port=5006 ! jpegdec ! queue ! imxvpuenc_h264 bitrate=4096 ! "video/x-h264,stream-format=byte-stream,profile=high" ! h264parse ! matroskamux name=mux ! filesink location=test.mkv


Would be nice to get a hint.