Kirill Brilliantov

Incorrect MJPEG stream

Discussion created by Kirill Brilliantov on May 16, 2012
Latest reply on Feb 18, 2013 by Kirill Brilliantov

Hello!

I work with iMX53 Quick Start Board.

Server pipeline: gst-launch -v -v4l2src device=/dev/video0 ! video/x-raw-yuv,width=320,height=240 !  mfw_ipucsc ! mfw_vpuencoder width=320 height=240 codec-type=std_mjpg ! rtpjpegpay ! udpsink host=192.168.255.1 auto-multicast=true port=5000 sync=false

Client pipeline: gst-launch -vvv  udpsrc port=5000 ! 'application/x-rtp, media=video, payload=96, clock-rate=90000, encoding-name=JPEG' ! rtpjpegdepay ! ffdec_mjpeg ! xvimagesink

I see next stream.jpg

As you can see image incorrect, but if I change mfw_vpuencoder on jpegenc I get correct image.

I try encode jpeg and save it to file:

gst-launch -v v4l2src device=/dev/video0 num-buffers=1 ! video/x-raw-yuv,width=640,height=480 ! mfw_ipucsc ! mfw_vpuencoder width=640 height=480 codec-type=std_mjpg ! filesink location=q.jpg

And I get correct image q.jpg

How can I configure mfw_vpuencoder or rtpjpegpay for get correct MJPEG stream?

Thank you and excuse me my bad english.

Outcomes