New submission from Eric Pardee <[email protected]>:
Source video is Avid MXF 15:1s, which has been stripped to it's essence using
aafextract from AAF (1.1.3).
During decode, I see:
[mjpeg @ 0x2262800] No JPEG data found in image=81.20 bitrate=1074.1kbits/s
Error while decoding stream #0.0
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s 10774kB time=81.98 bitrate=1076.6kbits/s
Error while decoding stream #0.0s
Error while decoding stream #0.0s 10870kB time=82.73 bitrate=1076.3kbits/s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0es 11277kB time=85.23 bitrate=1083.9kbits/s
This "Error while decoding stream #0.0" occurs 69 times in this particular
clip.
The result is a video with the same number of frames as the source mxf, but the
video is 69 frames behind the original picture towards the end.
If I export this clip from the Avid to QuickTime, the resulting QuickTime is
okay.
I believe that problem lies with libavcodec/mjpegdec.c
Complete, uncut output of ffmpeg (I left the audio elements in for completeness,
but it is the video which I'm concerned with):
/usr/local/bin/ffmpeg -f mjpeg -r 29.97 -s 352x248 -i
SP20728BV01.4C5267DD.FE8770.mxf -f s16le -acodec pcm_s16le -ar 48000 -i
SP20728BA01.4C5267DD.FE86F0.mxf -f s16le -acodec pcm_s16le -ar 48000 -i
SP20728BA02.4C5267DD.FE8670.mxf -f s16le -acodec pcm_s16le -ar 48000 -i
SP20728BA03.4C5267DD.FE85E0.mxf -f s16le -acodec pcm_s16le -ar 48000 -i
SP20728BA04.4C5267DD.FE8560.mxf -map 0:0 -map 1:0 -map 2:0 -map 3:0 -map 4:0 -b
800k -s 352x248 -vcodec libx264 -vpre default -acodec libfaac -y
~/SP20728B13_test10.mkv -acodec libfaac -newaudio -acodec libfaac -newaudio
-acodec libfaac -newaudio 2>&1
FFmpeg version SVN-r24613, Copyright (c) 2000-2010 the FFmpeg developers
built on Jul 30 2010 18:22:59 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree
--enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
--enable-runtime-cpudetect --enable-libgsm
libavutil 50.23. 0 / 50.23. 0
libavcore 0. 2. 0 / 0. 2. 0
libavcodec 52.84. 2 / 52.84. 2
libavformat 52.77. 0 / 52.77. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.27. 0 / 1.27. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mjpeg @ 0x2259470] max_analyze_duration reached
[mjpeg @ 0x2259470] Estimating duration from bitrate, this may be inaccurate
Input #0, mjpeg, from 'SP20728BV01.4C5267DD.FE8770.mxf':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj422p, 352x248, 29.97 fps, 29.97 tbr, 1200k
tbn, 29.97 tbc
[s16le @ 0x2284170] Estimating duration from bitrate, this may be inaccurate
Input #1, s16le, from 'SP20728BA01.4C5267DD.FE86F0.mxf':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #1.0: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
[s16le @ 0x227f300] Estimating duration from bitrate, this may be inaccurate
Input #2, s16le, from 'SP20728BA02.4C5267DD.FE8670.mxf':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #2.0: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
[s16le @ 0x2280340] Estimating duration from bitrate, this may be inaccurate
Input #3, s16le, from 'SP20728BA03.4C5267DD.FE85E0.mxf':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #3.0: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
[s16le @ 0x2281380] Estimating duration from bitrate, this may be inaccurate
Input #4, s16le, from 'SP20728BA04.4C5267DD.FE8560.mxf':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #4.0: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
[buffer @ 0x2477210] w:352 h:248 pixfmt:yuvj422p
[ffmpeg_output @ 0x227ce20] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'src' and the filter 'out'
[scale @ 0x227d000] w:352 h:248 fmt:yuvj422p -> w:352 h:248 fmt:yuv420p
flags:0x4
[libx264 @ 0x2457b60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle
SSE4.1 Cache64
[libx264 @ 0x2457b60] profile High, level 2.0
[libx264 @ 0x2457b60] 264 - core 104 r1688 0b36c6d - H.264/MPEG-4 AVC codec -
Copyleft 2003-2010 - http://www.videolan.org/x264.html - options: cabac=1 ref=3
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1
interlaced=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=1 b_bias=0
direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=800 ratetol=5.0
qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.41 aq=1:1.00
Output #0, matroska, to '/home/pw/SP20728B13_test10.mkv':
Metadata:
encoder : Lavf52.77.0
Stream #0.0: Video: libx264, yuv420p, 352x248, q=10-51, 800 kb/s, 1k tbn,
29.97 tbc
Stream #0.1: Audio: libfaac, 48000 Hz, 1 channels, s16, 64 kb/s
Stream #0.2: Audio: libfaac, 48000 Hz, 1 channels, s16, 64 kb/s
Stream #0.3: Audio: libfaac, 48000 Hz, 1 channels, s16, 64 kb/s
Stream #0.4: Audio: libfaac, 48000 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
Stream #2.0 -> #0.2
Stream #3.0 -> #0.3
Stream #4.0 -> #0.4
Press [q] to stop encoding
[mjpeg @ 0x2262800] No JPEG data found in image=81.20 bitrate=1074.1kbits/s
Error while decoding stream #0.0
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s 10774kB time=81.98 bitrate=1076.6kbits/s
Error while decoding stream #0.0s
Error while decoding stream #0.0s 10870kB time=82.73 bitrate=1076.3kbits/s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0es 11277kB time=85.23 bitrate=1083.9kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es 11405kB time=85.95 bitrate=1087.0kbits/s
Error while decoding stream #0.0es 15345kB time=112.21 bitrate=1120.2kbits/s
Error while decoding stream #0.0es 16179kB time=118.64 bitrate=1117.2kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es 17389kB time=128.13 bitrate=1111.8kbits/s
Error while decoding stream #0.0es 19532kB time=143.89 bitrate=1112.0kbits/s
Error while decoding stream #0.0es 19628kB time=144.66 bitrate=1111.5kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es 20409kB time=150.10 bitrate=1113.9kbits/s
Error while decoding stream #0.0es 20515kB time=150.89 bitrate=1113.8kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es 20867kB time=153.19 bitrate=1115.9kbits/s
Error while decoding stream #0.0es 20995kB time=153.96 bitrate=1117.1kbits/s
Error while decoding stream #0.0es 21091kB time=154.73 bitrate=1116.6kbits/s
Error while decoding stream #0.0es 21202kB time=155.46 bitrate=1117.3kbits/s
Error while decoding stream #0.0es 21882kB time=160.11 bitrate=1119.6kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es 25565kB time=189.82 bitrate=1103.3kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es 25693kB time=190.63 bitrate=1104.1kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es 25789kB time=191.42 bitrate=1103.7kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es 25917kB time=192.30 bitrate=1104.1kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es 26025kB time=193.24 bitrate=1103.3kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es 26121kB time=194.13 bitrate=1102.3kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es 26249kB time=195.24 bitrate=1101.4kbits/s
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es
Error while decoding stream #0.0es 26377kB time=196.20 bitrate=1101.3kbits/s
frame=17215 fps= 47 q=29.0 Lsize= 71074kB time=572.99 bitrate=1016.1kbits/s
video:52317kB audio:17903kB global headers:0kB muxing overhead 1.215698%
Last message repeated 68 times
[libx264 @ 0x2457b60] frame I:77 Avg QP:26.04 size: 11238
[libx264 @ 0x2457b60] frame P:8865 Avg QP:29.20 size: 5288
[libx264 @ 0x2457b60] frame B:8273 Avg QP:33.31 size: 704
[libx264 @ 0x2457b60] consecutive B-frames: 5.4% 89.0% 5.2% 0.4%
[libx264 @ 0x2457b60] mb I I16..4: 2.2% 95.7% 2.1%
[libx264 @ 0x2457b60] mb P I16..4: 0.4% 10.4% 0.3% P16..4: 32.7% 27.9% 20.7%
0.0% 0.0% skip: 7.5%
[libx264 @ 0x2457b60] mb B I16..4: 0.1% 0.2% 0.0% B16..8: 27.2% 4.7% 1.6%
direct: 3.8% skip:62.5% L0:34.9% L1:34.8% BI:30.3%
[libx264 @ 0x2457b60] final ratefactor: 25.24
[libx264 @ 0x2457b60] 8x8 transform intra:93.5% inter:80.7%
[libx264 @ 0x2457b60] coded y,uvDC,uvAC intra: 90.3% 78.8% 32.6% inter: 35.5%
21.6% 3.9%
[libx264 @ 0x2457b60] i16 v,h,dc,p: 43% 40% 5% 12%
[libx264 @ 0x2457b60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 24% 29% 3% 3% 3% 5%
4% 8%
[libx264 @ 0x2457b60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 33% 16% 3% 5% 4% 6%
4% 5%
[libx264 @ 0x2457b60] i8c dc,h,v,p: 60% 21% 16% 3%
[libx264 @ 0x2457b60] Weighted P-Frames: Y:1.4%
[libx264 @ 0x2457b60] ref P L0: 60.2% 15.9% 15.8% 7.9% 0.1%
[libx264 @ 0x2457b60] ref B L0: 87.6% 12.4%
[libx264 @ 0x2457b60] kb/s:743.13
----------
messages: 11541
priority: normal
status: new
substatus: new
title: mjpeg decode problem resulting out of sync video to audio
topic: avcodec, avformat
type: bug
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2143>
________________________________________________