Opened 4 months ago
Last modified 4 months ago
#11091 new defect
FFmpeg 7.0.1-full output grows to infinite size and duration when combining two files with Concat demuxer
Reported by: | degradox | Owned by: | |
---|---|---|---|
Priority: | important | Component: | undetermined |
Version: | unspecified | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug: output file grows to infinite file size and duration, conversion never stops. Using concat demuxer with two sample files. The bug occurs after the first file is converted (Duration: 01:09:53.80) seems to not recover and continue forever. FFmpeg has to be force closed and output file is unplayable. Attachment below.
How to reproduce:
% ffmpeg -f concat -safe 0 -i input.txt -map 0:a -map 0:v -c:a aac -b:a 80k -c:v libx264 -b:v 500k -nostdin -preset ultrafast -y -avoid_negative_ts make_zero infinite.mp4 ffmpeg version 7.0.1-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers built with gcc 13.2.0 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 59. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 libpostproc 58. 1.100 / 58. 1.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 000001dc7b9889c0] Auto-inserting h264_mp4toannexb bitstream filter Input #0, concat, from 'input.txt': Duration: N/A, start: 0.000000, bitrate: 47 kb/s Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 21 kb/s Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:1(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 kb/s, 60 fps, 60 tbr, 15360 tbn Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (aac (native) -> aac (native)) Stream #0:1 -> #0:1 (h264 (native) -> h264 (libx264)) [libx264 @ 000001dc7b98cc00] using SAR=1/1 [libx264 @ 000001dc7b98cc00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 000001dc7b98cc00] profile Constrained Baseline, level 4.2, 4:2:0, 8-bit [libx264 @ 000001dc7b98cc00] 264 - core 164 r3191 4613ac3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2024 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=abr mbtree=0 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0 Output #0, mp4, to 'infinite.mp4': Metadata: encoder : Lavf61.1.100 Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 80 kb/s Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 aac Stream #0:1(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 500 kb/s, 60 fps, 15360 tbn Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/500000 buffer size: 0 vbv_delay: N/A frame= 118 fps=0.0 q=13.0 size= 0KiB time=00:00:01.96 bitrate= 0.2kbits/s dup=1 drop=0 speed=3.85x more log frame=251410 fps=274 q=0.0 size= 140800KiB time=01:09:50.16 bitrate= 275.3kbits/s dup=1 drop=0 speed=4.57x frame=251557 fps=275 q=0.0 size= 140800KiB time=01:09:52.61 bitrate= 275.1kbits/s dup=1 drop=0 speed=4.58x [h264 @ 000001dc0d5011c0] Increasing reorder buffer to 2 [in#0/concat @ 000001dc7b97ecc0] New data stream with index 2 at pos:376 and DTS:4193.842367s [h264 @ 000001dc7bf6dd00] Increasing reorder buffer to 1 [h264 @ 000001dc7c362d00] Increasing reorder buffer to 2 frame=251720 fps=275 q=0.0 size= 141056KiB time=01:09:55.33 bitrate= 275.4kbits/s dup=1222776 drop=0 speed=4.58x frame=251926 fps=275 q=0.0 size= 141056KiB time=01:09:58.76 bitrate= 275.2kbits/s dup=1222776 drop=0 speed=4.58x more log
Note:
See TracTickets
for help on using tickets.
zip file 26MB attachments
https://mega.nz/file/BTpGDI5L#sjhvosnhlpdLhk3_9Tll81jl3p1wkOWI1E0OJN8QUlc