[FFmpeg-trac] #7202(undetermined:new): mjpeg compression creates laggy video
FFmpeg
trac at avcodec.org
Sun May 13 20:05:53 EEST 2018
#7202: mjpeg compression creates laggy video
-------------------------------------+-------------------------------------
Reporter: jsteinkamp | Type: defect
Status: new | Priority: important
Component: | Version:
undetermined | unspecified
Keywords: mjpeg | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
When I create mjpeg mov files with ffmpeg the mov file skips frames
to keep up with the framerate, it does not seem to be decoding correctly.
I included the same file created with Adobe After Effects for comparison.
I have been able to reproduce this multiple times on various players.
Quicktime 7 shows the problem the most. Larger pixel resolution files are
worse.
I would love to be able to use ffmpeg because it is much faster to work
with.
download 172MB example files from: http://jsteinkamp.com/mjp_test.zip
How to reproduce:
{{{
ffmpeg -i input -vcodec mjpeg -q:v 8 -f mov output.mov
ffmpeg version N-91024-g293a6e8332
built with gcc 7.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
bzlib --e
nable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
libblur
ay --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb
--enable-
libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine
--enab
le-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame
--enable-li
bvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --en
able-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-
libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enabl
e-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf
--enabl
e-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec
--enab
le-dxva2 --enable-avisynth
libavutil 56. 18.100 / 56. 18.100
libavcodec 58. 19.101 / 58. 19.101
libavformat 58. 13.102 / 58. 13.102
libavdevice 58. 4.100 / 58. 4.100
libavfilter 7. 21.100 / 7. 21.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Input #0, image2, from 'tiffs\hibiscus1.%04d.tif':
Duration: 00:00:06.67, start: 0.000000, bitrate: N/A
Stream #0:0: Video: tiff, rgba, 1024x768 [SAR 1:1 DAR 4:3], 30 fps, 30
tbr,
30 tbn, 30 tbc
Stream mapping:
Stream #0:0 -> #0:0 (tiff (native) -> mjpeg (native))
Press [q] to stop, [?] for help
Incompatible pixel format 'rgba' for codec 'mjpeg', auto-selecting format
'yuvj4
44p'
[swscaler @ 000000000281a800] deprecated pixel format used, make sure you
did se
t range correctly
Output #0, mov, to 'hibiscus1_ffmpeg_mjpeg.mov':
Metadata:
encoder : Lavf58.13.102
Stream #0:0: Video: mjpeg (jpeg / 0x6765706A), yuvj444p(pc), 1024x768
[SAR 1
:1 DAR 4:3], q=2-31, 200 kb/s, 30 fps, 15360 tbn, 30 tbc
Metadata:
encoder : Lavc58.19.101 mjpeg
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 76 fps=0.0 q=8.0 size= 4096kB time=00:00:02.43
bitrate=13789.2kbits/
frame= 157 fps=156 q=8.0 size= 8704kB time=00:00:05.13
bitrate=13890.1kbits/
frame= 200 fps=157 q=8.0 Lsize= 11530kB time=00:00:06.63
bitrate=14238.8kbits
/s speed= 5.2x
video:11528kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing
overhead: 0.014147%
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7202>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list