Hi,
I want to trans code 2 different types of streams to h264 codec, on a i.mx6 Dual.
First  stream is from a STK1160 video device
and I'm using this gstreamer commands.

gst-launch-1.0 --gst-debug=3 v4l2src device=/dev/video0 ! videoconvert ! imxvpuenc_h264 bitrate=4096 ! "video/x-h264,stream-format=byte-stream,profile="" ! h264parse ! matroskamux name=mux ! filesink location=output.FIFO -v

This is working !

The second stream, is a raw jpeg stream via udp.
This is the commands, I currently thought it is the best one:
gst-launch-1.0 --gst-debug=3 udpsrc buffer-size=1000000 port=5006 ! queue !  jpegdec ! videoconvert ! imxvpuenc_h264 bitrate=4096 ! "video/x-h264,stream-format=byte-stream,profile="" ! h264parse ! matroskamux name=mux ! autovideosink

I got always the error "reason not-negotited (-4). Of course tested a lot.

This is working with video test src:
#gst-launch-1.0 videotestsrc !  videoconvert ! imxvpuenc_h264 bitrate=4096 ! "video/x-h264,stream-format=byte-stream,profile="" ! h264parse ! matroskamux name=mux ! filesink location=output.FIFO -v &
 
Thanks Peter
-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to