<div dir="ltr"><div>Hello</div><div><br></div><div>I'm encoding MJPEG. For the first few frames, everything is fine. But after ~10 Frames the MJPEG output starts to show some blockiness. Also the output size is getting smaller.</div><div><br></div><div>I have created a proof of concept based on the encode_video.c sample code.</div><div><br></div><div>Here is my code: <a href="https://paste.debian.net/1284938/">https://paste.debian.net/1284938/</a></div><div><br></div><div>Just build and run it with a command like this. It then creates 25 JPEG files: gcc encode_video.c -o encode_video `pkg-config --cflags --libs libavformat libavcodec libswresample libswscale libavutil` && ./encode_video</div><div><br></div><div>Here is a picture where the blockiness is visible (file 24 from my code): <a href="https://ibb.co/gtxnKC6">https://ibb.co/gtxnKC6</a></div><div><br></div><div>Any idea what could cause this?<br></div></div>