[FFmpeg-trac] #9152(undetermined:new): FFmpeg doesn't stop after it has written the correct output file

FFmpeg trac at avcodec.org
Sat Jul 17 14:19:31 EEST 2021


#9152: FFmpeg doesn't stop after it has written the correct output file
-------------------------------------+-------------------------------------
             Reporter:  Michael      |                    Owner:  (none)
  Koch                               |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Michael Koch):

 I found a shorter command for reproducing the same problem:

 ffmpeg -f lavfi -i "sine=1k:b=2,channelmap=0|0" -t 20 -y sine.mp3

 ffmpeg -i sine.mp3 -lavfi
 "asplit=4[a0][a1][a2][a3];[a0]showwaves=mode=cline:s=1080x480[v0];[a1]adelay=0.2,showwaves=mode=cline:s=1080x480[v1];[a2]adelay=0.4,showwaves=mode=cline:s=1080x480[v2];[a3]showwaves=mode=cline:s=1080x480[v3];[v0][v1][v2][v3]vstack=4"
 -y out.mp4

 FFmpeg writes the correct output file with length 20s, but after it has
 written the file, FFmpeg never stops.



 C:\Users\astro\Desktop>ffmpeg -f lavfi -i "sine=1k:b=2,channelmap=0|0" -t
 20 -y sine.mp3
 ffmpeg version 2021-07-14-git-ca56299fb3-essentials_build-www.gyan.dev
 Copyright (c) 2000-2021 the FFmpeg developers
   built with gcc 10.3.0 (Rev2, 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-lzma --enable-zlib
 --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
 --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-
 libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-
 libass --enable-libfreetype --enable-libfribidi --enable-libvidstab
 --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm
 --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-
 d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt
 --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
 --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb
 --enable-libopus --enable-libspeex --enable-libvorbis --enable-
 librubberband
   libavutil      57.  0.100 / 57.  0.100
   libavcodec     59.  3.101 / 59.  3.101
   libavformat    59.  4.100 / 59.  4.100
   libavdevice    59.  0.100 / 59.  0.100
   libavfilter     8.  0.103 /  8.  0.103
   libswscale      6.  0.100 /  6.  0.100
   libswresample   4.  0.100 /  4.  0.100
   libpostproc    56.  0.100 / 56.  0.100
 Input #0, lavfi, from 'sine=1k:b=2,channelmap=0|0':
   Duration: N/A, start: 0.000000, bitrate: 1411 kb/s
   Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame))
 Press [q] to stop, [?] for help
 Output #0, mp3, to 'sine.mp3':
   Metadata:
     TSSE            : Lavf59.4.100
   Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p
     Metadata:
       encoder         : Lavc59.3.101 libmp3lame
 size=     313kB time=00:00:20.01 bitrate= 128.3kbits/s speed= 116x
 video:0kB audio:313kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.078609%

 C:\Users\astro\Desktop>ffmpeg -i sine.mp3 -lavfi
 "asplit=4[a0][a1][a2][a3];[a0]showwaves=mode=cline:s=1080x480[v0];[a1]adelay=0.2,showwaves=mode=cline:s=1080x480[v1];[a2]adelay=0.4,showwaves=mode=cline:s=1080x480[v2];[a3]showwaves=mode=cline:s=1080x480[v3];[v0][v1][v2][v3]vstack=4"
 -y out.mp4
 ffmpeg version 2021-07-14-git-ca56299fb3-essentials_build-www.gyan.dev
 Copyright (c) 2000-2021 the FFmpeg developers
   built with gcc 10.3.0 (Rev2, 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-lzma --enable-zlib
 --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
 --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-
 libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-
 libass --enable-libfreetype --enable-libfribidi --enable-libvidstab
 --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm
 --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-
 d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt
 --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
 --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb
 --enable-libopus --enable-libspeex --enable-libvorbis --enable-
 librubberband
   libavutil      57.  0.100 / 57.  0.100
   libavcodec     59.  3.101 / 59.  3.101
   libavformat    59.  4.100 / 59.  4.100
   libavdevice    59.  0.100 / 59.  0.100
   libavfilter     8.  0.103 /  8.  0.103
   libswscale      6.  0.100 /  6.  0.100
   libswresample   4.  0.100 /  4.  0.100
   libpostproc    56.  0.100 / 56.  0.100
 Input #0, mp3, from 'sine.mp3':
   Metadata:
     encoder         : Lavf59.4.100
   Duration: 00:00:20.04, start: 0.025057, bitrate: 128 kb/s
   Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s
     Metadata:
       encoder         : Lavc59.3.
 Stream mapping:
   Stream #0:0 (mp3float) -> asplit (graph 0)
   vstack (graph 0) -> Stream #0:0 (libx264)
   Stream #0:0 -> #0:1 (mp3 (mp3float) -> aac (native))
 Press [q] to stop, [?] for help
 [libx264 @ 000001da9f480bc0] using SAR=1/1
 [libx264 @ 000001da9f480bc0] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX FMA3 BMI2 AVX2
 [libx264 @ 000001da9f480bc0] profile High 4:4:4 Predictive, level 4.0,
 4:4:4, 8-bit
 [libx264 @ 000001da9f480bc0] 264 - core 164 r3065 ae03d92 - H.264/MPEG-4
 AVC codec - Copyleft 2003-2021 - 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=4 threads=12
 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=20
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'out.mp4':
   Metadata:
     encoder         : Lavf59.4.100
   Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv444p(tv, progressive),
 1080x1920 [SAR 1:1 DAR 9:16], q=2-31, 20.42 fps, 15680 tbn
     Metadata:
       encoder         : Lavc59.3.101 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
   Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo,
 fltp, 128 kb/s
     Metadata:
       encoder         : Lavc59.3.101 aac
 frame=  408 fps= 30 q=-1.0 Lsize=    4051kB time=00:00:19.99
 bitrate=1659.9kbits/s speed=1.48x
 video:3725kB audio:312kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.341681%
 [libx264 @ 000001da9f480bc0] frame I:2     Avg QP:11.95  size: 92274
 [libx264 @ 000001da9f480bc0] frame P:112   Avg QP:12.40  size: 19184
 [libx264 @ 000001da9f480bc0] frame B:294   Avg QP:28.14  size:  5037
 [libx264 @ 000001da9f480bc0] consecutive B-frames:  1.5%  6.9%  1.5% 90.2%
 [libx264 @ 000001da9f480bc0] mb I  I16..4: 45.3% 37.3% 17.3%
 [libx264 @ 000001da9f480bc0] mb P  I16..4:  1.6%  0.7%  0.6%  P16..4:
 2.9%  4.1%  5.5%  0.0%  0.0%    skip:84.6%
 [libx264 @ 000001da9f480bc0] mb B  I16..4:  0.0%  1.0%  1.1%  B16..8:
 6.9%  1.1%  0.5%  direct: 0.4%  skip:88.9%  L0:45.6% L1:44.9% BI: 9.5%
 [libx264 @ 000001da9f480bc0] 8x8 transform intra:40.1% inter:52.4%
 [libx264 @ 000001da9f480bc0] coded y,u,v intra: 42.0% 36.0% 38.9% inter:
 2.9% 0.6% 1.0%
 [libx264 @ 000001da9f480bc0] i16 v,h,dc,p: 95%  5%  0%  0%
 [libx264 @ 000001da9f480bc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31%  9% 59%
 0%  0%  0%  0%  0%  0%
 [libx264 @ 000001da9f480bc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 86%  4%  5%
 1%  1%  2%  0%  2%  0%
 [libx264 @ 000001da9f480bc0] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 000001da9f480bc0] ref P L0: 48.3% 11.6% 27.8% 12.3%
 [libx264 @ 000001da9f480bc0] ref B L0: 75.7% 21.4%  2.9%
 [libx264 @ 000001da9f480bc0] ref B L1: 94.8%  5.2%
 [libx264 @ 000001da9f480bc0] kb/s:1526.88
 [aac @ 000001da9f4a7ec0] Qavg: 702.835
 Exiting normally, received signal 2.
 Batchvorgang abbrechen (J/N)?
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9152#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list