[FFmpeg-user] Problem with astats and adrawgraph

Michael Koch astroelectronic at t-online.de
Sun Nov 24 23:17:38 EET 2019


Hello all,

I'd like to draw a curve of the RMS audio level with the following 
command line. The problem is that the output is a black video and no 
curve is visible.

c://ffmpeg/ffmpeg -i P1000479.mov -lavfi astats,adrawgraph=
m1="lavfi.astats.RMS level 
dB":mode=line:slide=scroll:min=-100:max=100:size=1920
x270:fg1=0xffffffff:bg=0x000000ff -pix_fmt yuv420p -t 10 -y test.mp4

However when I replace
  astats,adrawgraph=m1="lavfi.astats.RMS level dB"
for example by
  signalstats,drawgraph=m1="lavfi.signalstats.YAVG"
then a curve is shown as expected.

What's wrong in this part?
astats,adrawgraph=m1="lavfi.astats.RMS level dB"

Below is the console output.

Thanks,
Michael



F:\2019-10-30_Sylvia>c://ffmpeg/ffmpeg -i P1000479.mov -lavfi 
astats,adrawgraph=
m1="lavfi.astats.RMS level 
dB":mode=line:slide=scroll:min=-100:max=100:size=1920
x270:fg1=0xffffffff:bg=0x000000ff -pix_fmt yuv420p -t 10 -y test.mp4
ffmpeg version N-95216-ge6625ca41f Copyright (c) 2000-2019 the FFmpeg 
developers

   built with gcc 9.2.1 (GCC) 20190918
   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. 35.100 / 56. 35.100
   libavcodec     58. 59.101 / 58. 59.101
   libavformat    58. 33.100 / 58. 33.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 61.100 /  7. 61.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000120a00] decoding for stream 0 failed
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'P1000479.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 537986816
     compatible_brands: qt  pana
     creation_time   : 2019-10-29T23:33:53.000000Z
     com.panasonic.Semi-Pro.metadata.xml: <?xml version="1.0" 
encoding="UTF-8" st
andalone="no" ?>
                     : <ClipMain 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst
ance" xmlns="urn:schemas-Professional-Plug-in:Semi-Pro:ClipMetadata:v1.0">
                     :   <ClipContent>
                     : 
<GlobalClipID>060A2B340101010501010D21130000005767E053
00BB5534547F1060C1650131</GlobalClipID>
                     : <Duration>12012</Duration>
                     : <EditUnit>1/25</EditUnit>
                     :     <EssenceList>
                     :       <Video>
                     :         <Codec BitRate="200">H264_422_Intra</Codec>
                     : <ActiveLine>1080</ActiveLine>
                     : <ActivePixel>1920</ActivePixel>
                     : <BitDepth>10</BitDepth>
                     : <FrameRate>25p</FrameRate>
                     : <TimecodeType>NonDrop</TimecodeType>
                     : <StartTimecode>22:23:17:03</StartTimecode>
                     :       </Video>
                     :       <Audio>
                     : <Channel>2</Channel>
                     : <SamplingRate>48000</SamplingRate>
                     : <BitsPerSample>16</BitsPerSample>
                     :       </Audio>
                     :     </EssenceList>
                     :     <ClipMetadata>
                     :       <Rating>0</Rating>
                     :       <Access>
                     : <CreationDate>2019-10-29T23:33:53+02:00</CreationD
ate>
                     : <LastUpdateDate>2019-10-29T23:33:53+02:00</LastUpd
ateDate>
                     :       </Access>
                     :       <Device>
                     : <Manufacturer>Panasonic</Manufacturer>
                     : <ModelName>DC-GH5S</ModelName>
                     :       </Device>
                     :       <Shoot>
                     : <StartDate>2019-10-29T23:33:53+02:00</StartDate>
                     :       </Shoot>
                     :     </ClipMetadata>
                     :   </ClipContent>
                     :   <UserArea>
                     :     <AcquisitionMetadata 
xmlns="urn:schemas-Professional-P
lug-in:P2:CameraMetadata:v1.2">
                     :       <CameraUnitMetadata>
                     :         <Gamma>
                     : <CaptureGamma>STANDARD</CaptureGamma>
                     :         </Gamma>
                     :         <Gamut>
                     : <CaptureGamut>BT.709</CaptureGamut>
                     :         </Gamut>
                     :       </CameraUnitMetadata>
                     :     </AcquisitionMetadata>
                     :   </UserArea>
                     : </ClipMain>
                     :
   Duration: 00:08:00.48, start: 0.000000, bitrate: 201724 kb/s
     Stream #0:0(und): Video: h264 (High 4:2:2 Intra) (avc1 / 
0x31637661), yuv422
p10le(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 200004 kb/s, 25 fps, 25 
tbr, 90k
  tbn, 50 tbc (default)
     Metadata:
       creation_time   : 2019-10-29T23:33:53.000000Z
       timecode        : 22:23:17:03
     Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 
stereo, s1
6, 1536 kb/s (default)
     Metadata:
       creation_time   : 2019-10-29T23:33:53.000000Z
       timecode        : 22:23:17:03
     Stream #0:2(und): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
     Metadata:
       creation_time   : 2019-10-29T23:33:53.000000Z
       timecode        : 22:23:17:03
Stream mapping:
   Stream #0:1 (pcm_s16be) -> astats (graph 0)
   adrawgraph (graph 0) -> Stream #0:0 (libx264)
   Stream #0:1 -> #0:1 (pcm_s16be (native) -> aac (native))
Press [q] to stop, [?] for help
No information about the input framerate is available. Falling back to a 
default
  value of 25fps for output stream #0:0. Use the -r option if you want a 
differen
t framerate.
[libx264 @ 000000000277b740] using SAR=1/1
[libx264 @ 000000000277b740] using cpu capabilities: MMX2 SSE2Fast SSSE3 
SSE4.2
AVX FMA3 BMI2 AVX2
[libx264 @ 000000000277b740] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 000000000277b740] 264 - core 158 r2984 3759fcb - H.264/MPEG-4 
AVC cod
ec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: 
cabac=1 r
ef=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_pski
p=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 
nr=0 deci
mate=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=2
5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 
qcomp=0.6
0 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test.mp4':
   Metadata:
     major_brand     : qt
     minor_version   : 537986816
     compatible_brands: qt  pana
     com.panasonic.Semi-Pro.metadata.xml: <?xml version="1.0" 
encoding="UTF-8" st
andalone="no" ?>
                     : <ClipMain 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst
ance" xmlns="urn:schemas-Professional-Plug-in:Semi-Pro:ClipMetadata:v1.0">
                     :   <ClipContent>
                     : 
<GlobalClipID>060A2B340101010501010D21130000005767E053
00BB5534547F1060C1650131</GlobalClipID>
                     : <Duration>12012</Duration>
                     : <EditUnit>1/25</EditUnit>
                     :     <EssenceList>
                     :       <Video>
                     :         <Codec BitRate="200">H264_422_Intra</Codec>
                     : <ActiveLine>1080</ActiveLine>
                     : <ActivePixel>1920</ActivePixel>
                     : <BitDepth>10</BitDepth>
                     : <FrameRate>25p</FrameRate>
                     : <TimecodeType>NonDrop</TimecodeType>
                     : <StartTimecode>22:23:17:03</StartTimecode>
                     :       </Video>
                     :       <Audio>
                     : <Channel>2</Channel>
                     : <SamplingRate>48000</SamplingRate>
                     : <BitsPerSample>16</BitsPerSample>
                     :       </Audio>
                     :     </EssenceList>
                     :     <ClipMetadata>
                     :       <Rating>0</Rating>
                     :       <Access>
                     : <CreationDate>2019-10-29T23:33:53+02:00</CreationD
ate>
                     : <LastUpdateDate>2019-10-29T23:33:53+02:00</LastUpd
ateDate>
                     :       </Access>
                     :       <Device>
                     : <Manufacturer>Panasonic</Manufacturer>
                     : <ModelName>DC-GH5S</ModelName>
                     :       </Device>
                     :       <Shoot>
                     : <StartDate>2019-10-29T23:33:53+02:00</StartDate>
                     :       </Shoot>
                     :     </ClipMetadata>
                     :   </ClipContent>
                     :   <UserArea>
                     :     <AcquisitionMetadata 
xmlns="urn:schemas-Professional-P
lug-in:P2:CameraMetadata:v1.2">
                     :       <CameraUnitMetadata>
                     :         <Gamma>
                     : <CaptureGamma>STANDARD</CaptureGamma>
                     :         </Gamma>
                     :         <Gamut>
                     : <CaptureGamut>BT.709</CaptureGamut>
                     :         </Gamut>
                     :       </CameraUnitMetadata>
                     :     </AcquisitionMetadata>
                     :   </UserArea>
                     : </ClipMain>
                     :
     encoder         : Lavf58.33.100
     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), 
yuv420p(progressive)
, 1920x270 [SAR 1:1 DAR 64:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
     Metadata:
       encoder         : Lavc58.59.101 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 
stereo, flt
p, 128 kb/s (default)
     Metadata:
       creation_time   : 2019-10-29T23:33:53.000000Z
       timecode        : 22:23:17:03
       encoder         : Lavc58.59.101 aac
frame=   76 fps=0.0 q=28.0 size=       0kB time=00:00:02.94 bitrate=   
0.1kbits/
frame=  168 fps=167 q=28.0 size=       0kB time=00:00:06.61 bitrate=   
0.1kbits/
frame=  250 fps=162 q=-1.0 Lsize=     172kB time=00:00:10.00 bitrate= 
140.8kbits
/s dup=0 drop=227 speed= 6.5x
video:8kB audio:155kB subtitle:0kB other streams:0kB global headers:0kB 
muxing o
verhead: 5.398129%
[Parsed_astats_0 @ 0000000000127380] Channel: 1
[Parsed_astats_0 @ 0000000000127380] DC offset: 0.000000
[Parsed_astats_0 @ 0000000000127380] Min level: -3266.000000
[Parsed_astats_0 @ 0000000000127380] Max level: 3716.000000
[Parsed_astats_0 @ 0000000000127380] Min difference: 0.000000
[Parsed_astats_0 @ 0000000000127380] Max difference: 5097.000000
[Parsed_astats_0 @ 0000000000127380] Mean difference: 83.588320
[Parsed_astats_0 @ 0000000000127380] RMS difference: 113.481511
[Parsed_astats_0 @ 0000000000127380] Peak level dB: -18.907220
[Parsed_astats_0 @ 0000000000127380] RMS level dB: -44.201681
[Parsed_astats_0 @ 0000000000127380] RMS peak dB: -38.603942
[Parsed_astats_0 @ 0000000000127380] RMS trough dB: -47.296429
[Parsed_astats_0 @ 0000000000127380] Crest factor: 18.395987
[Parsed_astats_0 @ 0000000000127380] Flat factor: 0.000000
[Parsed_astats_0 @ 0000000000127380] Peak count: 2
[Parsed_astats_0 @ 0000000000127380] Bit depth: 16/16
[Parsed_astats_0 @ 0000000000127380] Dynamic range: 77.422114
[Parsed_astats_0 @ 0000000000127380] Zero crossings: 82173
[Parsed_astats_0 @ 0000000000127380] Zero crossings rate: 0.170738
[Parsed_astats_0 @ 0000000000127380] Channel: 2
[Parsed_astats_0 @ 0000000000127380] DC offset: 0.000000
[Parsed_astats_0 @ 0000000000127380] Min level: -1921.000000
[Parsed_astats_0 @ 0000000000127380] Max level: 1854.000000
[Parsed_astats_0 @ 0000000000127380] Min difference: 0.000000
[Parsed_astats_0 @ 0000000000127380] Max difference: 3236.000000
[Parsed_astats_0 @ 0000000000127380] Mean difference: 75.278038
[Parsed_astats_0 @ 0000000000127380] RMS difference: 102.692564
[Parsed_astats_0 @ 0000000000127380] Peak level dB: -24.638186
[Parsed_astats_0 @ 0000000000127380] RMS level dB: -45.224523
[Parsed_astats_0 @ 0000000000127380] RMS peak dB: -39.317501
[Parsed_astats_0 @ 0000000000127380] RMS trough dB: -48.075579
[Parsed_astats_0 @ 0000000000127380] Crest factor: 10.698351
[Parsed_astats_0 @ 0000000000127380] Flat factor: 0.000000
[Parsed_astats_0 @ 0000000000127380] Peak count: 2
[Parsed_astats_0 @ 0000000000127380] Bit depth: 16/16
[Parsed_astats_0 @ 0000000000127380] Dynamic range: 71.691147
[Parsed_astats_0 @ 0000000000127380] Zero crossings: 82475
[Parsed_astats_0 @ 0000000000127380] Zero crossings rate: 0.171366
[Parsed_astats_0 @ 0000000000127380] Overall
[Parsed_astats_0 @ 0000000000127380] DC offset: 0.000000
[Parsed_astats_0 @ 0000000000127380] Min level: -3266.000000
[Parsed_astats_0 @ 0000000000127380] Max level: 3716.000000
[Parsed_astats_0 @ 0000000000127380] Min difference: 0.000000
[Parsed_astats_0 @ 0000000000127380] Max difference: 5097.000000
[Parsed_astats_0 @ 0000000000127380] Mean difference: 79.433179
[Parsed_astats_0 @ 0000000000127380] RMS difference: 108.221569
[Parsed_astats_0 @ 0000000000127380] Peak level dB: -18.907220
[Parsed_astats_0 @ 0000000000127380] RMS level dB: -44.683059
[Parsed_astats_0 @ 0000000000127380] RMS peak dB: -38.603942
[Parsed_astats_0 @ 0000000000127380] RMS trough dB: -48.075579
[Parsed_astats_0 @ 0000000000127380] Flat factor: 0.000000
[Parsed_astats_0 @ 0000000000127380] Peak count: 2.000000
[Parsed_astats_0 @ 0000000000127380] Bit depth: 16/16
[Parsed_astats_0 @ 0000000000127380] Number of samples: 481280
[libx264 @ 000000000277b740] frame I:1     Avg QP: 9.00 size:   140
[libx264 @ 000000000277b740] frame P:63    Avg QP: 9.14 size:    35
[libx264 @ 000000000277b740] frame B:186   Avg QP:12.67 size:    27
[libx264 @ 000000000277b740] consecutive B-frames:  0.8% 0.0%  0.0% 99.2%
[libx264 @ 000000000277b740] mb I  I16..4: 100.0%  0.0% 0.0%
[libx264 @ 000000000277b740] mb P  I16..4:  0.0%  0.0% 0.0%  P16..4:  
0.0%  0.0
%  0.0%  0.0%  0.0%    skip:100.0%
[libx264 @ 000000000277b740] mb B  I16..4:  0.0%  0.0% 0.0%  B16..8:  
0.0%  0.0
%  0.0%  direct: 0.0%  skip:100.0%
[libx264 @ 000000000277b740] 8x8 transform intra:0.0%
[libx264 @ 000000000277b740] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% 
inter: 0.0%
  0.0% 0.0%
[libx264 @ 000000000277b740] i16 v,h,dc,p: 94%  0%  6%  0%
[libx264 @ 000000000277b740] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 000000000277b740] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000000000277b740] kb/s:5.84
[aac @ 0000000000125280] Qavg: 1588.201



More information about the ffmpeg-user mailing list