Opened 2 months ago

Closed 7 weeks ago

#7780 closed defect (fixed)

Can not write moov atom to the beginning of the file if audio is eac3

Reported by: Nomis101 Owned by:
Priority: important Component: avformat
Version: git-master Keywords: eac3 mov regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

Its not possible anymore to use -movflags faststart if the audio stream is eac3 since commit 2b8458fcc5d503d0587f14d1fe9107878691cbae. This will result in an invalid file.
https://github.com/FFmpeg/FFmpeg/commit/2b8458fcc5d503d0587f14d1fe9107878691cbae


$ ffmpeg -i /Volumes/Macintosh?\ HD\ 3/Misc/RIP/WONDER_WOMAN/title_t03.mkv -vcodec copy -acodec eac3 -movflags faststart /Volumes/Macintosh?\ HD\ 3/Misc/RIP/WONDER_WOMAN/title_t03.mp4
ffmpeg version N-93283-gb819472995 Copyright (c) 2000-2019 the FFmpeg developers

built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
configuration: --pkg-config-flags=--static --enable-swscale --enable-avfilter --enable-fontconfig --enable-gpl --enable-version3 --enable-libass --enable-libbluray --enable-libfreetype --enable-libsoxr --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwavpack --disable-ffplay --disable-debug --enable-libmysofa --enable-libx264 --enable-libx265 --enable-libxvid --enable-nonfree --enable-libfdk-aac --enable-muxer=mov --enable-muxer=mp4 --enable-muxer=ipod --enable-encoder=eac3 --enable-encoder=ac3 --enable-encoder=flac --enable-librtmp --enable-libsmbclient --enable-opencl --enable-libssh --enable-openssl --enable-encoder=truehd --enable-bsf=aac_adtstoasc --enable-encoder=h264_videotoolbox --enable-encoder=hevc_videotoolbox --disable-sdl2 --extra-cflags='-fPIE -pie -fstack-protector-strong -march=native -mtune=native -fvectorize -fslp-vectorize -D_FORTIFY_SOURCE=2 -mfpmath=sse' --extra-cxxflags='-fstack-protector-strong -march=native -mtune=native -fvectorize -fslp-vectorize -D_FORTIFY_SOURCE=2 -mfpmath=sse' --extra-ldflags=-L/opt/local/lib --extra-ldexeflags='-fPIE -pie -fstack-protector-strong -D_FORTIFY_SOURCE=2'
libavutil 56. 26.100 / 56. 26.100
libavcodec 58. 47.102 / 58. 47.102
libavformat 58. 26.101 / 58. 26.101
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 48.100 / 7. 48.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100

[matroska,webm @ 0x7fa78d001200] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x7fa78d001200] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from '/Volumes/Macintosh? HD 3/Misc/RIP/WONDER_WOMAN/title_t03.mkv':

Metadata:

encoder : libmakemkv v1.14.2 (1.3.5/1.4.7) darwin(x64-release)
creation_time : 2019-03-07T18:57:58.000000Z

Duration: 00:16:26.40, start: 0.000000, bitrate: 11275 kb/s

Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Metadata:

BPS-eng : 10941997
DURATION-eng : 00:16:26.402083333
NUMBER_OF_FRAMES-eng: 23650
NUMBER_OF_BYTES-eng: 1349150997
SOURCE_ID-eng : 001011
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 darwin(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-03-07 18:57:58
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID

Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:

title : Stereo
BPS-eng : 192000
DURATION-eng : 00:16:26.432000000
NUMBER_OF_FRAMES-eng: 30826
NUMBER_OF_BYTES-eng: 23674368
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 darwin(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-03-07 18:57:58
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID

Stream #0:2(deu): Subtitle: hdmv_pgs_subtitle
Metadata:

BPS-eng : 71007
DURATION-eng : 00:16:04.734604166
NUMBER_OF_FRAMES-eng: 594
NUMBER_OF_BYTES-eng: 8562946
SOURCE_ID-eng : 001201
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 darwin(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-03-07 18:57:58
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID

Stream #0:3(deu): Subtitle: hdmv_pgs_subtitle
Metadata:

BPS-eng : 71007
DURATION-eng : 00:16:04.734604166
NUMBER_OF_FRAMES-eng: 594
NUMBER_OF_BYTES-eng: 8562946
SOURCE_ID-eng : 001202
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 darwin(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-03-07 18:57:58
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID

Stream mapping:

Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (ac3 (native) -> eac3 (native))

Press [q] to stop, ? for help
Output #0, mp4, to '/Volumes/Macintosh? HD 3/Misc/RIP/WONDER_WOMAN/title_t03.mp4':

Metadata:

encoder : Lavf58.26.101
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 16k tbn, 1k tbc
Metadata:

BPS-eng : 10941997
DURATION-eng : 00:16:26.402083333
NUMBER_OF_FRAMES-eng: 23650
NUMBER_OF_BYTES-eng: 1349150997
SOURCE_ID-eng : 001011
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 darwin(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-03-07 18:57:58
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID

Stream #0:1(eng): Audio: eac3 (ec-3 / 0x332D6365), 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:

title : Stereo
BPS-eng : 192000
DURATION-eng : 00:16:26.432000000
NUMBER_OF_FRAMES-eng: 30826
NUMBER_OF_BYTES-eng: 23674368
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 darwin(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-03-07 18:57:58
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
encoder : Lavc58.47.102 eac3

frame= 223 fps=0.0 q=-1.0 size= 15616kB time=00:00:09.27 bitrate=13793.1kbitsframe= 396 fps=363 q=-1.0 size= 27392kB time=00:00:16.47 bitrate=13620.6kbitsframe= 542 fps=334 q=-1.0 size= 37888kB time=00:00:22.58 bitrate=13741.7kbitsframe= 729 fps=342 q=-1.0 size= 48128kB time=00:00:30.33 bitrate=12998.9kbitsframe= 950 fps=357 q=-1.0 size= 57856kB time=00:00:39.61 bitrate=11965.4kbitsframe= 1160 fps=367 q=-1.0 size= 67072kB time=00:00:48.31 bitrate=11372.4kbitsframe= 1380 fps=377 q=-1.0 size= 76544kB time=00:00:57.53 bitrate=10899.4kbitsframe= 1524 fps=366 q=-1.0 size= 84480kB time=00:01:03.61 bitrate=10879.6kbitsframe= 1758 fps=375 q=-1.0 size= 94208kB time=00:01:13.21 bitrate=10541.5kbitsframe= 1908 fps=368 q=-1.0 size= 103680kB time=00:01:19.51 bitrate=10681.6kbitsframe= 2112 fps=369 q=-1.0 size= 113664kB time=00:01:28.02 bitrate=10577.9kbitsframe= 2325 fps=374 q=-1.0 size= 123904kB time=00:01:36.92 bitrate=10472.5kbitsframe= 2519 fps=374 q=-1.0 size= 133376kB time=00:01:44.98 bitrate=10407.2kbitsframe= 2720 fps=376 q=-1.0 size= 143872kB time=00:01:53.37 bitrate=10396.0kbitsframe= 2852 fps=368 q=-1.0 size= 153088kB time=00:01:58.93 bitrate=10544.1kbitsframe= 3039 fps=367 q=-1.0 size= 162816kB time=00:02:06.68 bitrate=10528.6kbitsframe= 3221 fps=367 q=-1.0 size= 172032kB time=00:02:14.26 bitrate=10496.2kbitsframe= 3418 fps=368 q=-1.0 size= 182016kB time=00:02:22.52 bitrate=10462.0kbitsframe= 3617 fps=370 q=-1.0 size= 191232kB time=00:02:30.81 bitrate=10387.7kbitsframe= 3804 fps=370 q=-1.0 size= 201216kB time=00:02:38.65 bitrate=10389.9kbitsframe= 3979 fps=367 q=-1.0 size= 210944kB time=00:02:45.94 bitrate=10413.3kbitsframe= 4142 fps=364 q=-1.0 size= 221184kB time=00:02:52.69 bitrate=10491.9kbitsframe= 4306 fps=362 q=-1.0 size= 231168kB time=00:02:59.54 bitrate=10547.3kbitsframe= 4481 fps=361 q=-1.0 size= 240640kB time=00:03:06.87 bitrate=10548.9kbitsframe= 4647 fps=360 q=-1.0 size= 251136kB time=00:03:13.78 bitrate=10616.3kbitsframe= 4777 fps=356 q=-1.0 size= 260352kB time=00:03:19.16 bitrate=10708.9kbitsframe= 4951 fps=355 q=-1.0 size= 270592kB time=00:03:26.39 bitrate=10740.1kbitsframe= 5103 fps=353 q=-1.0 size= 280576kB time=00:03:32.73 bitrate=10804.6kbitsframe= 5280 fps=353 q=-1.0 size= 290816kB time=00:03:40.15 bitrate=10821.3kbitsframe= 5413 fps=350 q=-1.0 size= 300032kB time=00:03:45.65 bitrate=10891.9kbitsframe= 5575 fps=349 q=-1.0 size= 309504kB time=00:03:52.53 bitrate=10903.4kbitsframe= 5736 fps=348 q=-1.0 size= 319232kB time=00:03:59.19 bitrate=10933.1kbitsframe= 5845 fps=343 q=-1.0 size= 328704kB time=00:04:03.70 bitrate=11049.1kbitsframe= 5981 fps=341 q=-1.0 size= 339456kB time=00:04:09.37 bitrate=11151.4kbitsframe= 6139 fps=340 q=-1.0 size= 349696kB time=00:04:15.99 bitrate=11190.5kbitsframe= 6258 fps=337 q=-1.0 size= 359424kB time=00:04:20.98 bitrate=11281.8kbitsframe= 6417 fps=336 q=-1.0 size= 369664kB time=00:04:27.57 bitrate=11317.4kbitsframe= 6579 fps=336 q=-1.0 size= 378880kB time=00:04:34.36 bitrate=11312.7kbitsframe= 6718 fps=334 q=-1.0 size= 388608kB time=00:04:40.15 bitrate=11363.3kbitsframe= 6858 fps=333 q=-1.0 size= 398592kB time=00:04:46.01 bitrate=11416.6kbitsframe= 6986 fps=330 q=-1.0 size= 408576kB time=00:04:51.25 bitrate=11491.7kbitsframe= 7176 fps=331 q=-1.0 size= 418304kB time=00:04:59.22 bitrate=11452.0kbitsframe= 7342 fps=331 q=-1.0 size= 428800kB time=00:05:06.10 bitrate=11475.5kbitsframe= 7466 fps=329 q=-1.0 size= 437248kB time=00:05:11.35 bitrate=11504.4kbitsframe= 7621 fps=328 q=-1.0 size= 447488kB time=00:05:17.78 bitrate=11535.5kbitsframe= 7786 fps=328 q=-1.0 size= 457728kB time=00:05:24.69 bitrate=11548.3kbitsframe= 7980 fps=329 q=-1.0 size= 466944kB time=00:05:32.76 bitrate=11495.3kbitsframe= 8322 fps=336 q=-1.0 size= 476160kB time=00:05:47.06 bitrate=11239.1kbitsframe= 8583 fps=339 q=-1.0 size= 486400kB time=00:05:57.91 bitrate=11132.8kbitsframe= 8840 fps=343 q=-1.0 size= 496640kB time=00:06:08.66 bitrate=11035.6kbitsframe= 9143 fps=348 q=-1.0 size= 506112kB time=00:06:21.24 bitrate=10875.1kbitsframe= 9359 fps=349 q=-1.0 size= 516096kB time=00:06:30.26 bitrate=10833.3kbitsframe= 9489 fps=348 q=-1.0 size= 526080kB time=00:06:35.77 bitrate=10889.3kbitsframe= 9622 fps=345 q=-1.0 size= 534528kB time=00:06:41.24 bitrate=10913.2kbitsframe= 9784 fps=345 q=-1.0 size= 545280kB time=00:06:48.05 bitrate=10946.8kbitsframe= 9918 fps=343 q=-1.0 size= 553984kB time=00:06:53.59 bitrate=10972.7kbitsframe=10052 fps=342 q=-1.0 size= 563200kB time=00:06:59.22 bitrate=11005.3kbitsframe=10176 fps=340 q=-1.0 size= 572416kB time=00:07:04.37 bitrate=11049.6kbitsframe=10313 fps=338 q=-1.0 size= 581632kB time=00:07:10.07 bitrate=11078.8kbitsframe=10464 fps=337 q=-1.0 size= 589824kB time=00:07:16.37 bitrate=11072.6kbitsframe=10606 fps=336 q=-1.0 size= 598016kB time=00:07:22.29 bitrate=11076.1kbitsframe=10785 fps=337 q=-1.0 size= 607232kB time=00:07:29.75 bitrate=11060.4kbitsframe=10965 fps=337 q=-1.0 size= 616704kB time=00:07:37.24 bitrate=11048.9kbitsframe=11185 fps=339 q=-1.0 size= 626176kB time=00:07:46.52 bitrate=10995.5kbitsframe=11401 fps=340 q=-1.0 size= 635904kB time=00:07:55.48 bitrate=10955.9kbitsframe=11565 fps=339 q=-1.0 size= 646400kB time=00:08:02.33 bitrate=10978.6kbitsframe=11720 fps=338 q=-1.0 size= 656384kB time=00:08:08.76 bitrate=11001.5kbitsframe=11867 fps=338 q=-1.0 size= 666624kB time=00:08:14.90 bitrate=11034.4kbitsframe=12065 fps=338 q=-1.0 size= 676096kB time=00:08:23.09 bitrate=11008.9kbitsframe=12241 fps=338 q=-1.0 size= 686080kB time=00:08:30.49 bitrate=11009.7kbitsframe=12447 fps=339 q=-1.0 size= 696320kB time=00:08:39.06 bitrate=10989.4kbitsframe=12677 fps=340 q=-1.0 size= 706304kB time=00:08:48.69 bitrate=10943.9kbitsframe=12825 fps=340 q=-1.0 size= 716544kB time=00:08:54.87 bitrate=10974.4kbitsframe=12979 fps=339 q=-1.0 size= 726016kB time=00:09:01.30 bitrate=10987.3kbitsframe=13108 fps=338 q=-1.0 size= 736256kB time=00:09:06.68 bitrate=11032.7kbitsframe=13192 fps=335 q=-1.0 size= 746496kB time=00:09:10.20 bitrate=11114.6kbitsframe=13332 fps=335 q=-1.0 size= 756224kB time=00:09:15.99 bitrate=11142.2kbitsframe=13497 fps=334 q=-1.0 size= 765952kB time=00:09:22.84 bitrate=11148.2kbitsframe=13614 fps=333 q=-1.0 size= 776192kB time=00:09:27.73 bitrate=11199.8kbitsframe=13799 fps=333 q=-1.0 size= 785408kB time=00:09:35.51 bitrate=11179.7kbitsframe=13983 fps=334 q=-1.0 size= 794624kB time=00:09:43.09 bitrate=11163.7kbitsframe=14232 fps=336 q=-1.0 size= 804352kB time=00:09:53.56 bitrate=11101.2kbitsframe=14379 fps=335 q=-1.0 size= 814336kB time=00:09:59.67 bitrate=11124.4kbitsframe=14557 fps=335 q=-1.0 size= 823296kB time=00:10:07.09 bitrate=11109.3kbitsframe=14720 fps=335 q=-1.0 size= 833792kB time=00:10:13.91 bitrate=11126.0kbitsframe=14903 fps=335 q=-1.0 size= 843008kB time=00:10:21.49 bitrate=11111.7kbitsframe=15139 fps=337 q=-1.0 size= 853248kB time=00:10:31.35 bitrate=11071.1kbitsframe=15356 fps=338 q=-1.0 size= 862976kB time=00:10:40.41 bitrate=11039.0kbitsframe=15534 fps=338 q=-1.0 size= 872448kB time=00:10:47.83 bitrate=11032.3kbitsframe=15700 fps=337 q=-1.0 size= 882688kB time=00:10:54.71 bitrate=11044.5kbitsframe=15942 fps=339 q=-1.0 size= 892416kB time=00:11:04.85 bitrate=10995.8kbitsframe=16128 fps=339 q=-1.0 size= 902144kB time=00:11:12.60 bitrate=10987.7kbitsframe=16349 fps=340 q=-1.0 size= 912384kB time=00:11:21.78 bitrate=10962.7kbitsframe=16521 fps=340 q=-1.0 size= 921856kB time=00:11:29.05 bitrate=10959.8kbitsframe=16648 fps=339 q=-1.0 size= 932096kB time=00:11:34.29 bitrate=10997.8kbitsframe=16824 fps=339 q=-1.0 size= 941568kB time=00:11:41.72 bitrate=10992.0kbitsframe=16978 fps=339 q=-1.0 size= 951296kB time=00:11:48.09 bitrate=11005.7kbitsframe=17154 fps=339 q=-1.0 size= 961280kB time=00:11:55.38 bitrate=11007.8kbitsframe=17360 fps=339 q=-1.0 size= 970752kB time=00:12:03.99 bitrate=10984.1kbitsframe=17507 fps=339 q=-1.0 size= 979968kB time=00:12:10.17 bitrate=10994.6kbitsframe=17696 fps=339 q=-1.0 size= 990208kB time=00:12:18.04 bitrate=10990.9kbitsframe=17821 fps=338 q=-1.0 size= 1000704kB time=00:12:23.25 bitrate=11029.5kbitsframe=17971 fps=338 q=-1.0 size= 1009920kB time=00:12:29.53 bitrate=11037.9kbitsframe=18142 fps=338 q=-1.0 size= 1020160kB time=00:12:36.60 bitrate=11045.6kbitsframe=18248 fps=336 q=-1.0 size= 1030144kB time=00:12:41.08 bitrate=11088.1kbitsframe=18382 fps=335 q=-1.0 size= 1040384kB time=00:12:46.65 bitrate=11117.0kbitsframe=18509 fps=335 q=-1.0 size= 1049600kB time=00:12:51.96 bitrate=11138.3kbitsframe=18699 fps=335 q=-1.0 size= 1059584kB time=00:12:59.89 bitrate=11129.8kbitsframe=18862 fps=335 q=-1.0 size= 1069056kB time=00:13:06.65 bitrate=11132.9kbitsframe=19008 fps=334 q=-1.0 size= 1079296kB time=00:13:12.69 bitrate=11153.8kbitsframe=19144 fps=334 q=-1.0 size= 1088768kB time=00:13:18.39 bitrate=11171.4kbitsframe=19288 fps=333 q=-1.0 size= 1099008kB time=00:13:24.41 bitrate=11192.1kbitsframe=19409 fps=332 q=-1.0 size= 1107968kB time=00:13:29.49 bitrate=11212.5kbitsframe=19578 fps=332 q=-1.0 size= 1118208kB time=00:13:36.50 bitrate=11219.0kbitsframe=19667 fps=331 q=-1.0 size= 1127424kB time=00:13:40.25 bitrate=11259.8kbitsframe=19780 fps=330 q=-1.0 size= 1135616kB time=00:13:44.95 bitrate=11276.9kbitsframe=19934 fps=329 q=-1.0 size= 1144832kB time=00:13:51.35 bitrate=11280.9kbitsframe=20065 fps=329 q=-1.0 size= 1154048kB time=00:13:56.79 bitrate=11297.8kbitsframe=20193 fps=328 q=-1.0 size= 1163264kB time=00:14:02.10 bitrate=11316.2kbitsframe=20334 fps=328 q=-1.0 size= 1171456kB time=00:14:08.12 bitrate=11315.1kbitsframe=20480 fps=327 q=-1.0 size= 1180928kB time=00:14:14.10 bitrate=11326.6kbitsframe=20624 fps=327 q=-1.0 size= 1190912kB time=00:14:20.12 bitrate=11342.5kbitsframe=20813 fps=327 q=-1.0 size= 1201152kB time=00:14:27.99 bitrate=11336.3kbitsframe=20962 fps=327 q=-1.0 size= 1210368kB time=00:14:34.26 bitrate=11341.3kbitsframe=21117 fps=326 q=-1.0 size= 1220608kB time=00:14:40.69 bitrate=11353.7kbitsframe=21268 fps=326 q=-1.0 size= 1230336kB time=00:14:47.03 bitrate=11362.5kbitsframe=21440 fps=326 q=-1.0 size= 1239040kB time=00:14:54.13 bitrate=11351.9kbitsframe=21648 fps=327 q=-1.0 size= 1249280kB time=00:15:02.87 bitrate=11335.0kbitsframe=21907 fps=328 q=-1.0 size= 1258752kB time=00:15:13.65 bitrate=11286.2kbitsframe=22080 fps=329 q=-1.0 size= 1268736kB time=00:15:20.85 bitrate=11286.7kbitsframe=22213 fps=328 q=-1.0 size= 1277952kB time=00:15:26.45 bitrate=11300.0kbitsframe=22440 fps=329 q=-1.0 size= 1289216kB time=00:15:35.89 bitrate=11284.6kbitsframe=22673 fps=330 q=-1.0 size= 1298944kB time=00:15:45.62 bitrate=11252.8kbitsframe=22845 fps=330 q=-1.0 size= 1308672kB time=00:15:52.79 bitrate=11251.8kbitsframe=23030 fps=330 q=-1.0 size= 1318912kB time=00:16:00.47 bitrate=11249.2kbitsframe=23265 fps=331 q=-1.0 size= 1328640kB time=00:16:10.29 bitrate=11217.4kbitsframe=23398 fps=330 q=-1.0 size= 1338368kB time=00:16:15.86 bitrate=11235.1kbits[matroska,webm @ 0x7fa78d001200] Invalid length 0x57a1 > 0x52dde31a in parent
[mp4 @ 0x7fa78e000400] Starting second pass: moving the moov atom to the beginning of the file
Cannot write moov atom before EAC3 packets parsed.
Error writing trailer of /Volumes/Macintosh? HD 3/Misc/RIP/WONDER_WOMAN/title_t03.mp4: Invalid argument
frame=23650 fps=333 q=-1.0 Lsize= 1340650kB time=00:16:26.42 bitrate=11133.7kbits/s speed=13.9x
video:1317530kB audio:23120kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000003%

Change History (4)

comment:1 Changed 2 months ago by cehoyos

  • Keywords mov regression added; moov atom removed
  • Priority changed from normal to important

comment:2 Changed 2 months ago by Nomis101

By the way, this also breaks HandBrake? if it is build against current FFmpeg master. Then the encode will fail, it the "web optimized" box is checked and the audio is EAC3. So I hope this will be fixed, before the release of FFmpeg 4.2

comment:3 Changed 8 weeks ago by jamrial

  • Status changed from new to open

The commit you link as the start of this regression is one that propagates errors instead of ignoring them. If you get the "Cannot write moov atom before EAC3 packets parsed." error then it means the output file prior to that commit was potentially non spec compliant, as it'd be missing a valid dec3 atom. Lovely :/

Patch in the ml, thanks for the report.

comment:4 Changed 7 weeks ago by jamrial

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.