[FFmpeg-user] Problem with astats and adrawgraph

Michael Koch astroelectronic at t-online.de
Tue Nov 26 00:54:48 EET 2019


Am 25.11.2019 um 23:36 schrieb Michael Koch:
> Am 25.11.2019 um 22:46 schrieb Paul B Mahol:
>> On 11/25/19, Michael Koch <astroelectronic at t-online.de> wrote:
>>> Am 25.11.2019 um 12:04 schrieb Paul B Mahol:
>>>> On 11/25/19, Michael Koch <astroelectronic at t-online.de> wrote:
>>>>> Am 25.11.2019 um 00:08 schrieb Michael Koch:
>>>>>> I just found the solution to this problem myself:
>>>>>> astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level
>>>>>>
>>>>>> The underline character is missing in the documentation, where the
>>>>>> option is called "RMS level dB". Same problem for most other options
>>>>>> too.
>>>>> This command line works as expected:
>>>>>
>>>>> c://ffmpeg/ffmpeg -i P1000479.mov -lavfi
>>>>> astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level:mode=line:slide=scroll:min=-90:max=0 
>>>>>
>>>>> -pix_fmt yuv420p -t 5 -y test.mp4
>>>>>
>>>>>
>>>>> However when I try to do exactly the same thing two times and combine
>>>>> the videos with vstack, then I get warnings "More than 1000 frames
>>>>> duplicated" "More than 10000 frames duplicated" and FFmpeg becomes
>>>>> extremely slow:
>>>>>
>>>>> c://ffmpeg/ffmpeg -i P1000479.mov -lavfi
>>>>> [0]astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level:mode=line:slide=scroll:min=-90:max=0[1];[0]astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level:mode=line:slide=scroll:min=-90:max=0[2];[1][2]vstack 
>>>>>
>>>>> -pix_fmt yuv420p -t 5 -y test.mp4
>>>>>
>>>>> What's wrong with this command line?
>>>> Can not reproduce.
>>>> Please provide input files.
>>> www.astro-electronic.de/P479_1s.mov
>>>
>>> This is a one second segment of my video (and is produces the same
>>> warnings as above), made with
>>> ffmpeg -i P1000479.mov -c:v copy -c:a copy -t 1 -y P479_1s.mov
>>> It's normal that the content is mostly black (with a few stars) and
>>> audio is only background noise.
>> Still can not reproduce it. Make sure you use latest ffmpeg version.

I just downloaded it again, now it's a version from today. But the 
problem is the same as before.


F:\2019-10-30_Sylvia>c://ffmpeg/ffmpeg -i P479_1s.mov -lavfi 
[0]astats=metadata=
1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level:mode=line:slide=scroll:min=-90:
max=0[1];[0]astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level:mod
e=line:slide=scroll:min=-90:max=0[2];[1][2]vstack -pix_fmt yuv420p -t 5 
-y test.
mp4
ffmpeg version git-2019-11-25-d5e3d8e Copyright (c) 2000-2019 the FFmpeg 
develop
ers
   built with gcc 9.2.1 (GCC) 20191125
   configuration: --enable-gpl --enable-version3 --enable-sdl2 
--enable-fontconfi
g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d 
--enable-libb
luray --enable-libfreetype --enable-libmp3lame 
--enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus 
--enable-libshine --e
nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame 
--enable
-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
--enable-libx265 -
-enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib 
--enable-gmp --enab
le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc 
--enable-libmysofa --en
able-libspeex --enable-libxvid --enable-libaom --enable-libmfx 
--enable-ffnvcode
c --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec 
--enable-dxva2 -
-enable-avisynth --enable-libopenmpt --enable-amf
   libavutil      56. 36.100 / 56. 36.100
   libavcodec     58. 62.100 / 58. 62.100
   libavformat    58. 35.100 / 58. 35.100
   libavdevice    58.  9.101 / 58.  9.101
   libavfilter     7. 67.100 /  7. 67.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
[h264 @ 00000000001337c0] No start code is found.
[h264 @ 00000000001337c0] Error splitting the input into NAL units.
[h264 @ 00000000001337c0] No start code is found.
[h264 @ 00000000001337c0] Error splitting the input into NAL units.
[h264 @ 00000000001337c0] No start code is found.
[h264 @ 00000000001337c0] Error splitting the input into NAL units.
[h264 @ 00000000001337c0] No start code is found.
[h264 @ 00000000001337c0] Error splitting the input into NAL units.
[h264 @ 00000000001337c0] No start code is found.
[h264 @ 00000000001337c0] Error splitting the input into NAL units.
[h264 @ 00000000001337c0] No start code is found.
[h264 @ 00000000001337c0] Error splitting the input into NAL units.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000120e40] decoding for stream 0 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000120e40] Could not find codec 
parameters for
  stream 0 (Video: h264 (ai12 / 0x32316961), none, 1920x1080, 198685 
kb/s): unspe
cified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' 
options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'P479_1s.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 512
     compatible_brands: qt
     encoder         : Lavf58.35.100
   Duration: 00:00:01.00, start: 0.000000, bitrate: 199645 kb/s
     Stream #0:0: Video: h264 (ai12 / 0x32316961), none, 1920x1080, 
198685 kb/s,
SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 90k tbn, 180k tbc (default)
     Metadata:
       handler_name    : VideoHandler
       timecode        : 22:23:17:03
     Stream #0:1: Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 
stereo, s16, 15
36 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
     Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s
     Metadata:
       handler_name    : TimeCodeHandler
       timecode        : 22:23:17:03
Stream mapping:
   Stream #0:1 (pcm_s16be) -> astats (graph 0)
   Stream #0:1 (pcm_s16be) -> astats (graph 0)
   vstack (graph 0) -> Stream #0:0 (libx264)
   Stream #0:1 -> #0:1 (pcm_s16be (native) -> aac (native))
Press [q] to stop, [?] for help
[mp4 @ 00000000001888c0] Frame rate very high for a muxer not 
efficiently suppor
ting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2
[libx264 @ 0000000002e41540] using SAR=1/1
[libx264 @ 0000000002e41540] MB rate (87552000) > level limit (16711680)
[libx264 @ 0000000002e41540] using cpu capabilities: MMX2 SSE2Fast SSSE3 
SSE4.2
AVX FMA3 BMI2 AVX2
[libx264 @ 0000000002e41540] profile High, level 6.2, 4:2:0, 8-bit
[libx264 @ 0000000002e41540] 264 - core 158 - H.264/MPEG-4 AVC codec - 
Copyleft
2003-2019 - 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_rang
e=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 
chroma_qp_
offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 
interla
ced=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=25 
scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 
qpmin=0 qpma
x=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test.mp4':
   Metadata:
     major_brand     : qt
     minor_version   : 512
     compatible_brands: qt
     encoder         : Lavf58.35.100
     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), 
yuv420p(progressive)
, 900x512 [SAR 1:1 DAR 225:128], q=-1--1, 48k tbn, 48k tbc (default)
     Metadata:
       encoder         : Lavc58.62.100 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), 48000 Hz, stereo, 
fltp, 12
8 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
       encoder         : Lavc58.62.100 aac
More than 1000 frames duplicated
frame= 1024 fps=554 q=33.0 size=       0kB time=00:00:00.02 bitrate=  
19.0kbits/
frame= 3072 fps=845 q=33.0 size=       0kB time=00:00:00.06 bitrate=   
6.1kbits/
frame= 3072 fps=570 q=33.0 size=       0kB time=00:00:00.06 bitrate=   
6.1kbits/
frame= 5120 fps=723 q=33.0 size=       0kB time=00:00:00.10 bitrate=   
3.6kbits/
frame= 5120 fps=581 q=33.0 size=       0kB time=00:00:00.10 bitrate=   
3.6kbits/
frame= 7168 fps=678 q=33.0 size=       0kB time=00:00:00.14 bitrate=   
2.6kbits/
frame= 7168 fps=582 q=33.0 size=       0kB time=00:00:00.14 bitrate=   
2.6kbits/
frame= 9216 fps=655 q=33.0 size=       0kB time=00:00:00.19 bitrate=   
2.0kbits/
frame= 9216 fps=585 q=33.0 size=       0kB time=00:00:00.19 bitrate=   
2.0kbits/
More than 10000 frames duplicated
frame=11264 fps=644 q=33.0 size=       0kB time=00:00:00.23 bitrate=   
1.6kbits/
frame=12288 fps=638 q=33.0 size=     256kB time=00:00:00.25 
bitrate=8228.3kbits/
s dup=12275 drop=0 speed=0.0132x




More information about the ffmpeg-user mailing list