Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does EOI missing mean for mjpeg?

Tags:

ffmpeg

When encoding I sometimes see this ffmpeg warning

[mjpeg @ 0x5584bda90320] EOI missing, emulating

Already have googled but couldn't find anything useful. What does EOI stand for and what can cause this?

Here an example of the full command used:

ffmpeg -f image2 -thread_queue_size 3072 -framerate 15.9 -i /var/www/videomail/production/source/var/production/tmp/clients/videomail.io/11e
7-bd8d-9a4e4a70-86c9-13af52a474c3/frames/%d.jpg -y -an -vcodec libx264 -filter:v drawtext=fontfile=/var/www/videomail/production/source/src/assets/fonts/Varela-Regular.ttf:text
=www.videomail.io:fontsize=12:[email protected]:x=text_h:y=main_h-(text_h*2):[email protected]:shadowx=1:shadowy=1,scale=trunc(iw/2)*2:trunc(ih/2)*2 -crf 23 -pix_f
mt yuv420p -preset ultrafast -profile:v baseline -level:v 3.1 -movflags +faststart -loglevel warning /var/www/videomail/production/source/var/production/tmp/clients/videomail.i
o/11e7-bd8d-9a4e4a70-86c9-13af52a474c3/videomail_preview.mp4

Here a report when it occurs: https://gist.github.com/binarykitchen/d8643bf0c0fb18f1b41cab7a322deb91

like image 895
Michael Heuberger Avatar asked Oct 17 '22 03:10

Michael Heuberger


1 Answers

Some of your input files are slightly corrupted. Most JPEG viewers don't even warn you if the End Of Image marker is missing.

like image 136
Alex Cohn Avatar answered Oct 20 '22 23:10

Alex Cohn