Problem with astats and adrawgraph

classic Classic list List threaded Threaded
19 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with astats and adrawgraph

Michael Koch
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

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Michael Koch
Am 24.11.2019 um 22:17 schrieb Michael Koch:

> 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"
>

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.

But now I have another problem. I'm simultaneously using drawgraph and
adrawgraph, but they don't run synchronously in X direction. The
adrawgraph is approximately twice as fast as drawgraph.

Michael
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Michael Koch
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?
Below is the console output.

Michael


F:\2019-10-30_Sylvia>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:mo
de=line:slide=scroll:min=-90:max=0[2];[1][2]vstack -pix_fmt yuv420p -t 5
-y test
.mp4
ffmpeg version git-2019-11-23-d65aaf8 Copyright (c) 2000-2019 the FFmpeg
develop
ers
   built with gcc 9.2.1 (GCC) 20191010
   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
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000004c0e40] 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)
   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 @ 0000000002a4ad80] 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 @ 0000000003cc6680] using SAR=1/1
[libx264 @ 0000000003cc6680] MB rate (87552000) > level limit (16711680)
[libx264 @ 0000000003cc6680] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2
AVX FMA3 BMI2 AVX2
[libx264 @ 0000000003cc6680] profile High, level 6.2, 4:2:0, 8-bit
[libx264 @ 0000000003cc6680] 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   : 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.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(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.62.100 aac
More than 1000 frames duplicated
frame= 2048 fps=1162 q=33.0 size=       0kB time=00:00:00.04 bitrate=  
9.2kbits
frame= 3072 fps=871 q=33.0 size=       0kB time=00:00:00.06 bitrate=  
6.1kbits/
frame= 4096 fps=772 q=33.0 size=       0kB time=00:00:00.08 bitrate=  
4.6kbits/
frame= 5120 fps=728 q=33.0 size=       0kB time=00:00:00.10 bitrate=  
3.6kbits/
frame= 6144 fps=705 q=33.0 size=       0kB time=00:00:00.12 bitrate=  
3.0kbits/
frame= 7168 fps=684 q=33.0 size=       0kB time=00:00:00.14 bitrate=  
2.6kbits/
frame= 8192 fps=670 q=33.0 size=       0kB time=00:00:00.16 bitrate=  
2.3kbits/
frame= 9216 fps=660 q=33.0 size=       0kB time=00:00:00.19 bitrate=  
2.0kbits/
More than 10000 frames duplicated
frame=10240 fps=654 q=33.0 size=       0kB time=00:00:00.21 bitrate=  
1.8kbits/
frame=11264 fps=648 q=33.0 size=       0kB time=00:00:00.23 bitrate=  
1.6kbits/
frame=12288 fps=641 q=33.0 size=     256kB time=00:00:00.25
bitrate=8228.3kbits/
frame=13312 fps=636 q=33.0 size=     256kB time=00:00:00.27
bitrate=7592.9kbits/
s dup=13298 drop=0 speed=0.0132x
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Paul B Mahol
On 11/25/19, Michael Koch <[hidden email]> 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.

> Below is the console output.
>
> Michael
>
>
> F:\2019-10-30_Sylvia>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:mo
> de=line:slide=scroll:min=-90:max=0[2];[1][2]vstack -pix_fmt yuv420p -t 5
> -y test
> .mp4
> ffmpeg version git-2019-11-23-d65aaf8 Copyright (c) 2000-2019 the FFmpeg
> develop
> ers
>    built with gcc 9.2.1 (GCC) 20191010
>    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
> [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000004c0e40] 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)
>    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 @ 0000000002a4ad80] 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 @ 0000000003cc6680] using SAR=1/1
> [libx264 @ 0000000003cc6680] MB rate (87552000) > level limit (16711680)
> [libx264 @ 0000000003cc6680] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2
> AVX FMA3 BMI2 AVX2
> [libx264 @ 0000000003cc6680] profile High, level 6.2, 4:2:0, 8-bit
> [libx264 @ 0000000003cc6680] 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   : 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.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(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.62.100 aac
> More than 1000 frames duplicated
> frame= 2048 fps=1162 q=33.0 size=       0kB time=00:00:00.04 bitrate=
> 9.2kbits
> frame= 3072 fps=871 q=33.0 size=       0kB time=00:00:00.06 bitrate=
> 6.1kbits/
> frame= 4096 fps=772 q=33.0 size=       0kB time=00:00:00.08 bitrate=
> 4.6kbits/
> frame= 5120 fps=728 q=33.0 size=       0kB time=00:00:00.10 bitrate=
> 3.6kbits/
> frame= 6144 fps=705 q=33.0 size=       0kB time=00:00:00.12 bitrate=
> 3.0kbits/
> frame= 7168 fps=684 q=33.0 size=       0kB time=00:00:00.14 bitrate=
> 2.6kbits/
> frame= 8192 fps=670 q=33.0 size=       0kB time=00:00:00.16 bitrate=
> 2.3kbits/
> frame= 9216 fps=660 q=33.0 size=       0kB time=00:00:00.19 bitrate=
> 2.0kbits/
> More than 10000 frames duplicated
> frame=10240 fps=654 q=33.0 size=       0kB time=00:00:00.21 bitrate=
> 1.8kbits/
> frame=11264 fps=648 q=33.0 size=       0kB time=00:00:00.23 bitrate=
> 1.6kbits/
> frame=12288 fps=641 q=33.0 size=     256kB time=00:00:00.25
> bitrate=8228.3kbits/
> frame=13312 fps=636 q=33.0 size=     256kB time=00:00:00.27
> bitrate=7592.9kbits/
> s dup=13298 drop=0 speed=0.0132x
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Michael Koch
Am 25.11.2019 um 12:04 schrieb Paul B Mahol:

> On 11/25/19, Michael Koch <[hidden email]> 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.

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Paul B Mahol
On 11/25/19, Michael Koch <[hidden email]> wrote:

> Am 25.11.2019 um 12:04 schrieb Paul B Mahol:
>> On 11/25/19, Michael Koch <[hidden email]> 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.

>
> Michael
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Michael Koch
Am 25.11.2019 um 22:46 schrieb Paul B Mahol:

> On 11/25/19, Michael Koch <[hidden email]> wrote:
>> Am 25.11.2019 um 12:04 schrieb Paul B Mahol:
>>> On 11/25/19, Michael Koch <[hidden email]> 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.

It is the latest version, downloaded today from Zeranoe. Here is the output:

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-23-d65aaf8 Copyright (c) 2000-2019 the FFmpeg
develop
ers
   built with gcc 9.2.1 (GCC) 20191010
   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 @ 00000000005d37c0] No start code is found.
[h264 @ 00000000005d37c0] Error splitting the input into NAL units.
[h264 @ 00000000005d37c0] No start code is found.
[h264 @ 00000000005d37c0] Error splitting the input into NAL units.
[h264 @ 00000000005d37c0] No start code is found.
[h264 @ 00000000005d37c0] Error splitting the input into NAL units.
[h264 @ 00000000005d37c0] No start code is found.
[h264 @ 00000000005d37c0] Error splitting the input into NAL units.
[h264 @ 00000000005d37c0] No start code is found.
[h264 @ 00000000005d37c0] Error splitting the input into NAL units.
[h264 @ 00000000005d37c0] No start code is found.
[h264 @ 00000000005d37c0] Error splitting the input into NAL units.
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c0e40] decoding for stream 0 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c0e40] 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 @ 00000000006288c0] 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 @ 0000000002f61540] using SAR=1/1
[libx264 @ 0000000002f61540] MB rate (87552000) > level limit (16711680)
[libx264 @ 0000000002f61540] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2
AVX FMA3 BMI2 AVX2
[libx264 @ 0000000002f61540] profile High, level 6.2, 4:2:0, 8-bit
[libx264 @ 0000000002f61540] 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=537 q=33.0 size=       0kB time=00:00:00.02 bitrate= 
19.0kbits/
frame= 3072 fps=832 q=33.0 size=       0kB time=00:00:00.06 bitrate=  
6.1kbits/
frame= 3072 fps=562 q=33.0 size=       0kB time=00:00:00.06 bitrate=  
6.1kbits/
frame= 5120 fps=715 q=33.0 size=       0kB time=00:00:00.10 bitrate=  
3.6kbits/
frame= 5120 fps=574 q=33.0 size=       0kB time=00:00:00.10 bitrate=  
3.6kbits/
frame= 7168 fps=670 q=33.0 size=       0kB time=00:00:00.14 bitrate=  
2.6kbits/
frame= 7168 fps=574 q=33.0 size=       0kB time=00:00:00.14 bitrate=  
2.6kbits/
frame= 9216 fps=650 q=33.0 size=       0kB time=00:00:00.19 bitrate=  
2.0kbits/
frame= 9216 fps=577 q=33.0 size=       0kB time=00:00:00.19 bitrate=  
2.0kbits/
More than 10000 frames duplicated
frame=11264 fps=635 q=33.0 size=       0kB time=00:00:00.23 bitrate=  
1.6kbits/
frame=12288 fps=629 q=33.0 size=     256kB time=00:00:00.25
bitrate=8228.3kbits/
frame=13312 fps=625 q=33.0 size=     256kB time=00:00:00.27
bitrate=7592.9kbits/
frame=14336 fps=623 q=33.0 size=     256kB time=00:00:00.29
bitrate=7048.6kbits/
frame=15360 fps=619 q=33.0 size=     256kB time=00:00:00.31
bitrate=6577.1kbits/
frame=16384 fps=616 q=33.0 size=     256kB time=00:00:00.34
bitrate=6164.7kbits/
s dup=16367 drop=0 speed=0.0128x

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Michael Koch
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 <[hidden email]> wrote:
>>> Am 25.11.2019 um 12:04 schrieb Paul B Mahol:
>>>> On 11/25/19, Michael Koch <[hidden email]> 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


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Carl Eugen Hoyos-2
In reply to this post by Michael Koch


> Am 25.11.2019 um 23:36 schrieb Michael Koch <[hidden email]>:
>
> [mp4 @ 00000000006288c0] Frame rate very high for a muxer not efficiently supporting it.
> Please consider specifying a lower framerate, a different muxer

Did you see this?
I did not read the whole thread but if your issue is a broken output file this is the explanation.
Test with mkv or -r 25.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Michael Koch
Am 26.11.2019 um 07:11 schrieb Carl Eugen Hoyos:
>
>> Am 25.11.2019 um 23:36 schrieb Michael Koch <[hidden email]>:
>>
>> [mp4 @ 00000000006288c0] Frame rate very high for a muxer not efficiently supporting it.
>> Please consider specifying a lower framerate, a different muxer
> Did you see this?
> I did not read the whole thread but if your issue is a broken output file this is the explanation.
> Test with mkv or -r 25.

The problem does only appear when I use two of the [astats,adrawgraph]
filter chains and combine the outputs with vstack (or hstack or overlay,
it's always the same problem).
If I use only one [astats,adrawgraph] chain, then it works without any
problems with the same input file.

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Carl Eugen Hoyos-2


> Am 26.11.2019 um 09:40 schrieb Michael Koch <[hidden email]>:
>
>> Am 26.11.2019 um 07:11 schrieb Carl Eugen Hoyos:
>>
>>> Am 25.11.2019 um 23:36 schrieb Michael Koch <[hidden email]>:
>>>
>>> [mp4 @ 00000000006288c0] Frame rate very high for a muxer not efficiently supporting it.
>>> Please consider specifying a lower framerate, a different muxer
>> Did you see this?
>> I did not read the whole thread but if your issue is a broken output file this is the explanation.
>> Test with mkv or -r 25.
>
> The problem does only appear when I use two of the [astats,adrawgraph] filter chains and combine the outputs with vstack (or hstack or overlay, it's always the same problem).
> If I use only one [astats,adrawgraph] chain, then it works without any problems with the same input file.

How is this related to my suggestions?

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Michael Koch
Am 26.11.2019 um 09:55 schrieb Carl Eugen Hoyos:

>
>> Am 26.11.2019 um 09:40 schrieb Michael Koch <[hidden email]>:
>>
>>> Am 26.11.2019 um 07:11 schrieb Carl Eugen Hoyos:
>>>
>>>> Am 25.11.2019 um 23:36 schrieb Michael Koch <[hidden email]>:
>>>>
>>>> [mp4 @ 00000000006288c0] Frame rate very high for a muxer not efficiently supporting it.
>>>> Please consider specifying a lower framerate, a different muxer
>>> Did you see this?
>>> I did not read the whole thread but if your issue is a broken output file this is the explanation.
>>> Test with mkv or -r 25.
>> The problem does only appear when I use two of the [astats,adrawgraph] filter chains and combine the outputs with vstack (or hstack or overlay, it's always the same problem).
>> If I use only one [astats,adrawgraph] chain, then it works without any problems with the same input file.
> How is this related to my suggestions?

Thanks for your suggestion. Adding -r 25 does indeed solve the problem.
Although I don't understand why it is required. The input framerate is
25 and it's detected correctly when I use the simpler filter chain.

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Paul B Mahol
On 11/26/19, Michael Koch <[hidden email]> wrote:

> Am 26.11.2019 um 09:55 schrieb Carl Eugen Hoyos:
>>
>>> Am 26.11.2019 um 09:40 schrieb Michael Koch
>>> <[hidden email]>:
>>>
>>>> Am 26.11.2019 um 07:11 schrieb Carl Eugen Hoyos:
>>>>
>>>>> Am 25.11.2019 um 23:36 schrieb Michael Koch
>>>>> <[hidden email]>:
>>>>>
>>>>> [mp4 @ 00000000006288c0] Frame rate very high for a muxer not
>>>>> efficiently supporting it.
>>>>> Please consider specifying a lower framerate, a different muxer
>>>> Did you see this?
>>>> I did not read the whole thread but if your issue is a broken output
>>>> file this is the explanation.
>>>> Test with mkv or -r 25.
>>> The problem does only appear when I use two of the [astats,adrawgraph]
>>> filter chains and combine the outputs with vstack (or hstack or overlay,
>>> it's always the same problem).
>>> If I use only one [astats,adrawgraph] chain, then it works without any
>>> problems with the same input file.
>> How is this related to my suggestions?
>
> Thanks for your suggestion. Adding -r 25 does indeed solve the problem.
> Although I don't understand why it is required. The input framerate is
> 25 and it's detected correctly when I use the simpler filter chain.
>

Ah, I know why this happens, you need to use settb=1/FPS filter after vstack.
This happens because adrawgraph filter it order to not drop output
frames need to have same timebase as input audio. Otherwise you would
get different metadata values.
Also note that your FPS in this case is 48000/1024. ~= 46.xxx
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Michael Koch

>> Thanks for your suggestion. Adding -r 25 does indeed solve the problem.
>> Although I don't understand why it is required. The input framerate is
>> 25 and it's detected correctly when I use the simpler filter chain.
>>
> Ah, I know why this happens, you need to use settb=1/FPS filter after vstack.
> This happens because adrawgraph filter it order to not drop output
> frames need to have same timebase as input audio. Otherwise you would
> get different metadata values.
> Also note that your FPS in this case is 48000/1024. ~= 46.xxx

48000 is the audio sample rate, but where does the 1024 come from?

I have a new example with testsrc2 and anoisesrc. There is no input file
required for reproducing.
There are two graphs: The first one uses signalstats and drawgraph, and
the second one uses astats and adrawgraph. The problem is that the two
graphs don't advance with the same speed in X direction. Do you have an
idea how to make them synchrone?The video width is the same in both
cases, otherwise vstack wouldn't work.
The speed of drawgraph is correct, 1 pixel per frame. The speed of
adrawgraph is too fast.

Other question: reset=1 in astats means that the calculation result is
reset after each frame. But how does the filter know when a frame ends,
if the input of this filter is only an audio signal?

c://ffmpeg/ffmpeg -f lavfi -i testsrc2=size=hd1080:duration=10:rate=25
-f lavfi -i anoisesrc=d=10:c=pink:r=48000 -lavfi
[0]signalstats,drawgraph=m1=lavfi.signalstats.YAVG:mode=line:slide=scroll:min=0:max=255,settb=1/25[G1];[1]astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level:mode=line:slide=scroll:min=-90:max=0,settb=1/25[G2];[G1][G2]vstack,settb=1/25
-r 25 -y test.mp4

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Paul B Mahol
On 11/26/19, Michael Koch <[hidden email]> wrote:

>
>>> Thanks for your suggestion. Adding -r 25 does indeed solve the problem.
>>> Although I don't understand why it is required. The input framerate is
>>> 25 and it's detected correctly when I use the simpler filter chain.
>>>
>> Ah, I know why this happens, you need to use settb=1/FPS filter after
>> vstack.
>> This happens because adrawgraph filter it order to not drop output
>> frames need to have same timebase as input audio. Otherwise you would
>> get different metadata values.
>> Also note that your FPS in this case is 48000/1024. ~= 46.xxx
>
> 48000 is the audio sample rate, but where does the 1024 come from?

From astats i think.

>
> I have a new example with testsrc2 and anoisesrc. There is no input file
> required for reproducing.
> There are two graphs: The first one uses signalstats and drawgraph, and
> the second one uses astats and adrawgraph. The problem is that the two
> graphs don't advance with the same speed in X direction. Do you have an
> idea how to make them synchrone?The video width is the same in both
> cases, otherwise vstack wouldn't work.
> The speed of drawgraph is correct, 1 pixel per frame. The speed of
> adrawgraph is too fast.
>
> Other question: reset=1 in astats means that the calculation result is
> reset after each frame. But how does the filter know when a frame ends,
> if the input of this filter is only an audio signal?
>
> c://ffmpeg/ffmpeg -f lavfi -i testsrc2=size=hd1080:duration=10:rate=25
> -f lavfi -i anoisesrc=d=10:c=pink:r=48000 -lavfi
> [0]signalstats,drawgraph=m1=lavfi.signalstats.YAVG:mode=line:slide=scroll:min=0:max=255,settb=1/25[G1];[1]astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level:mode=line:slide=scroll:min=-90:max=0,settb=1/25[G2];[G1][G2]vstack,settb=1/25
> -r 25 -y test.mp4
>

Use asetnsamples, to change size of audio frame to match you video FPS.

> Michael
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Michael Koch
Am 26.11.2019 um 14:26 schrieb Paul B Mahol:

>
>> I have a new example with testsrc2 and anoisesrc. There is no input file
>> required for reproducing.
>> There are two graphs: The first one uses signalstats and drawgraph, and
>> the second one uses astats and adrawgraph. The problem is that the two
>> graphs don't advance with the same speed in X direction. Do you have an
>> idea how to make them synchrone?The video width is the same in both
>> cases, otherwise vstack wouldn't work.
>> The speed of drawgraph is correct, 1 pixel per frame. The speed of
>> adrawgraph is too fast.
>>
>> Other question: reset=1 in astats means that the calculation result is
>> reset after each frame. But how does the filter know when a frame ends,
>> if the input of this filter is only an audio signal?
>>
>> c://ffmpeg/ffmpeg -f lavfi -i testsrc2=size=hd1080:duration=10:rate=25
>> -f lavfi -i anoisesrc=d=10:c=pink:r=48000 -lavfi
>> [0]signalstats,drawgraph=m1=lavfi.signalstats.YAVG:mode=line:slide=scroll:min=0:max=255,settb=1/25[G1];[1]astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level:mode=line:slide=scroll:min=-90:max=0,settb=1/25[G2];[G1][G2]vstack,settb=1/25
>> -r 25 -y test.mp4
>>
> Use asetnsamples, to change size of audio frame to match you video FPS.

At which place would you insert it? I did insert asetnsamples=n=48000/25
before astats and now I get "Error while filtering: Cannot allocate memory"
Console output is below.

Michael


F:\2019-10-30_Sylvia>c://ffmpeg/ffmpeg -f lavfi -i
testsrc2=size=hd1080:duration
=36:rate=25 -f lavfi -i anoisesrc=d=36:c=pink:r=48000 -lavfi
[0]signalstats,draw
graph=m1=lavfi.signalstats.YAVG:mode=line:slide=scroll:min=0:max=255,settb=1/25[
G1];[1]asetnsamples=n=48000/25,astats=metadata=1:reset=1,adrawgraph=m1=lavfi.ast
ats.1.RMS_level:mode=line:slide=scroll:min=-90:max=0,settb=1/25[G2];[G1][G2]vsta
ck,settb=1/25 -r 25 -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
Input #0, lavfi, from 'testsrc2=size=hd1080:duration=36:rate=25':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p,
1920x1080 [SAR 1:
1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Input #1, lavfi, from 'anoisesrc=d=36:c=pink:r=48000':
   Duration: N/A, start: 0.000000, bitrate: 3072 kb/s
     Stream #1:0: Audio: pcm_f64le, 48000 Hz, mono, dbl, 3072 kb/s
Stream mapping:
   Stream #0:0 (rawvideo) -> signalstats (graph 0)
   Stream #1:0 (pcm_f64le) -> asetnsamples (graph 0)
   settb (graph 0) -> Stream #0:0 (libx264)
   Stream #1:0 -> #0:1 (pcm_f64le (native) -> aac (native))
Press [q] to stop, [?] for help
Error while filtering: Cannot allocate memory
Failed to inject frame into filter network: Cannot allocate memory
Error while processing the decoded data for stream #1:0
[Parsed_astats_4 @ 00000000005eb6c0] Channel: 1
[Parsed_astats_4 @ 00000000005eb6c0] DC offset: nan
[Parsed_astats_4 @ 00000000005eb6c0] Min level:
17976931348623157081452742373170
43567980705675258449965989174768031572607800285387605895586327668781715404589535
14382464234321326889464182768467546703537516986049910576551282076245490090389328
94407586850845513394230458323690322294816580855933212334827479782620414472316873
8177180919299881250404026184124858368.000000
[Parsed_astats_4 @ 00000000005eb6c0] Max level:
-1797693134862315708145274237317
04356798070567525844996598917476803157260780028538760589558632766878171540458953
51438246423432132688946418276846754670353751698604991057655128207624549009038932
89440758685084551339423045832369032229481658085593321233482747978262041447231687
38177180919299881250404026184124858368.000000
[Parsed_astats_4 @ 00000000005eb6c0] Min difference:
179769313486231570814527423
73170435679807056752584499659891747680315726078002853876058955863276687817154045
89535143824642343213268894641827684675467035375169860499105765512820762454900903
89328944075868508455133942304583236903222948165808559332123348274797826204144723
168738177180919299881250404026184124858368.000000
[Parsed_astats_4 @ 00000000005eb6c0] Max difference: 0.000000
[Parsed_astats_4 @ 00000000005eb6c0] Mean difference: 0.000000
[Parsed_astats_4 @ 00000000005eb6c0] RMS difference: 0.000000
[Parsed_astats_4 @ 00000000005eb6c0] Peak level dB: nan
[Parsed_astats_4 @ 00000000005eb6c0] RMS level dB: nan
[Parsed_astats_4 @ 00000000005eb6c0] RMS peak dB: nan
[Parsed_astats_4 @ 00000000005eb6c0] RMS trough dB: nan
[Parsed_astats_4 @ 00000000005eb6c0] Crest factor: 1.000000
[Parsed_astats_4 @ 00000000005eb6c0] Flat factor: nan
[Parsed_astats_4 @ 00000000005eb6c0] Peak count: 0
[Parsed_astats_4 @ 00000000005eb6c0] Bit depth: 0/0
[Parsed_astats_4 @ 00000000005eb6c0] Dynamic range: inf
[Parsed_astats_4 @ 00000000005eb6c0] Zero crossings: 0
[Parsed_astats_4 @ 00000000005eb6c0] Zero crossings rate: nan
[Parsed_astats_4 @ 00000000005eb6c0] Number of NaNs: 0
[Parsed_astats_4 @ 00000000005eb6c0] Number of Infs: 0
[Parsed_astats_4 @ 00000000005eb6c0] Number of denormals: 0
[Parsed_astats_4 @ 00000000005eb6c0] Overall
[Parsed_astats_4 @ 00000000005eb6c0] DC offset: nan
[Parsed_astats_4 @ 00000000005eb6c0] Min level:
17976931348623157081452742373170
43567980705675258449965989174768031572607800285387605895586327668781715404589535
14382464234321326889464182768467546703537516986049910576551282076245490090389328
94407586850845513394230458323690322294816580855933212334827479782620414472316873
8177180919299881250404026184124858368.000000
[Parsed_astats_4 @ 00000000005eb6c0] Max level:
-1797693134862315708145274237317
04356798070567525844996598917476803157260780028538760589558632766878171540458953
51438246423432132688946418276846754670353751698604991057655128207624549009038932
89440758685084551339423045832369032229481658085593321233482747978262041447231687
38177180919299881250404026184124858368.000000
[Parsed_astats_4 @ 00000000005eb6c0] Min difference:
179769313486231570814527423
73170435679807056752584499659891747680315726078002853876058955863276687817154045
89535143824642343213268894641827684675467035375169860499105765512820762454900903
89328944075868508455133942304583236903222948165808559332123348274797826204144723
168738177180919299881250404026184124858368.000000
[Parsed_astats_4 @ 00000000005eb6c0] Max difference: 0.000000
[Parsed_astats_4 @ 00000000005eb6c0] Mean difference: 0.000000
[Parsed_astats_4 @ 00000000005eb6c0] RMS difference: 0.000000
[Parsed_astats_4 @ 00000000005eb6c0] Peak level dB: nan
[Parsed_astats_4 @ 00000000005eb6c0] RMS level dB: nan
[Parsed_astats_4 @ 00000000005eb6c0] RMS peak dB: nan
[Parsed_astats_4 @ 00000000005eb6c0] RMS trough dB: 3082.547156
[Parsed_astats_4 @ 00000000005eb6c0] Flat factor: nan
[Parsed_astats_4 @ 00000000005eb6c0] Peak count: 0.000000
[Parsed_astats_4 @ 00000000005eb6c0] Bit depth: 0/0
[Parsed_astats_4 @ 00000000005eb6c0] Number of samples: 0
[Parsed_astats_4 @ 00000000005eb6c0] Number of NaNs: 0.000000
[Parsed_astats_4 @ 00000000005eb6c0] Number of Infs: 0.000000
[Parsed_astats_4 @ 00000000005eb6c0] Number of denormals: 0.000000
Conversion failed!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Michael Koch
Am 26.11.2019 um 17:32 schrieb Michael Koch:

> Am 26.11.2019 um 14:26 schrieb Paul B Mahol:
>>
>>> I have a new example with testsrc2 and anoisesrc. There is no input
>>> file
>>> required for reproducing.
>>> There are two graphs: The first one uses signalstats and drawgraph, and
>>> the second one uses astats and adrawgraph. The problem is that the two
>>> graphs don't advance with the same speed in X direction. Do you have an
>>> idea how to make them synchrone?The video width is the same in both
>>> cases, otherwise vstack wouldn't work.
>>> The speed of drawgraph is correct, 1 pixel per frame. The speed of
>>> adrawgraph is too fast.
>>>
>>> Other question: reset=1 in astats means that the calculation result is
>>> reset after each frame. But how does the filter know when a frame ends,
>>> if the input of this filter is only an audio signal?
>>>
>>> c://ffmpeg/ffmpeg -f lavfi -i testsrc2=size=hd1080:duration=10:rate=25
>>> -f lavfi -i anoisesrc=d=10:c=pink:r=48000 -lavfi
>>> [0]signalstats,drawgraph=m1=lavfi.signalstats.YAVG:mode=line:slide=scroll:min=0:max=255,settb=1/25[G1];[1]astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level:mode=line:slide=scroll:min=-90:max=0,settb=1/25[G2];[G1][G2]vstack,settb=1/25
>>>
>>> -r 25 -y test.mp4
>>>
>> Use asetnsamples, to change size of audio frame to match you video FPS.
>
> At which place would you insert it? I did insert
> asetnsamples=n=48000/25 before astats and now I get "Error while
> filtering: Cannot allocate memory"

It works when I replace 48000/25 by 1920. Problem solved.

Thanks,
Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Michael Koch
Am 26.11.2019 um 17:48 schrieb Michael Koch:

> Am 26.11.2019 um 17:32 schrieb Michael Koch:
>> Am 26.11.2019 um 14:26 schrieb Paul B Mahol:
>>>
>>>> I have a new example with testsrc2 and anoisesrc. There is no input
>>>> file
>>>> required for reproducing.
>>>> There are two graphs: The first one uses signalstats and drawgraph,
>>>> and
>>>> the second one uses astats and adrawgraph. The problem is that the two
>>>> graphs don't advance with the same speed in X direction. Do you
>>>> have an
>>>> idea how to make them synchrone?The video width is the same in both
>>>> cases, otherwise vstack wouldn't work.
>>>> The speed of drawgraph is correct, 1 pixel per frame. The speed of
>>>> adrawgraph is too fast.
>>>>
>>>> Other question: reset=1 in astats means that the calculation result is
>>>> reset after each frame. But how does the filter know when a frame
>>>> ends,
>>>> if the input of this filter is only an audio signal?
>>>>
>>>> c://ffmpeg/ffmpeg -f lavfi -i testsrc2=size=hd1080:duration=10:rate=25
>>>> -f lavfi -i anoisesrc=d=10:c=pink:r=48000 -lavfi
>>>> [0]signalstats,drawgraph=m1=lavfi.signalstats.YAVG:mode=line:slide=scroll:min=0:max=255,settb=1/25[G1];[1]astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level:mode=line:slide=scroll:min=-90:max=0,settb=1/25[G2];[G1][G2]vstack,settb=1/25
>>>>
>>>> -r 25 -y test.mp4
>>>>
>>> Use asetnsamples, to change size of audio frame to match you video FPS.
>>
>> At which place would you insert it? I did insert
>> asetnsamples=n=48000/25 before astats and now I get "Error while
>> filtering: Cannot allocate memory"
>
> It works when I replace 48000/25 by 1920. Problem solved.

It seems that in some cases expressions are allowed and in other cases
they are not allowed.
For example settb=1/25 is ok, but asetnsamples=n=48000/25 gives an
unclear error message.
How can the user know for which parameters it's allowed to use
expressions and for which not?
I mean without try and error.

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with astats and adrawgraph

Gyan


On 26-11-2019 10:53 pm, Michael Koch wrote:

> Am 26.11.2019 um 17:48 schrieb Michael Koch:
>> Am 26.11.2019 um 17:32 schrieb Michael Koch:
>>> Am 26.11.2019 um 14:26 schrieb Paul B Mahol:
>>>>
>>>>> I have a new example with testsrc2 and anoisesrc. There is no
>>>>> input file
>>>>> required for reproducing.
>>>>> There are two graphs: The first one uses signalstats and
>>>>> drawgraph, and
>>>>> the second one uses astats and adrawgraph. The problem is that the
>>>>> two
>>>>> graphs don't advance with the same speed in X direction. Do you
>>>>> have an
>>>>> idea how to make them synchrone?The video width is the same in both
>>>>> cases, otherwise vstack wouldn't work.
>>>>> The speed of drawgraph is correct, 1 pixel per frame. The speed of
>>>>> adrawgraph is too fast.
>>>>>
>>>>> Other question: reset=1 in astats means that the calculation
>>>>> result is
>>>>> reset after each frame. But how does the filter know when a frame
>>>>> ends,
>>>>> if the input of this filter is only an audio signal?
>>>>>
>>>>> c://ffmpeg/ffmpeg -f lavfi -i
>>>>> testsrc2=size=hd1080:duration=10:rate=25
>>>>> -f lavfi -i anoisesrc=d=10:c=pink:r=48000 -lavfi
>>>>> [0]signalstats,drawgraph=m1=lavfi.signalstats.YAVG:mode=line:slide=scroll:min=0:max=255,settb=1/25[G1];[1]astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level:mode=line:slide=scroll:min=-90:max=0,settb=1/25[G2];[G1][G2]vstack,settb=1/25
>>>>>
>>>>> -r 25 -y test.mp4
>>>>>
>>>> Use asetnsamples, to change size of audio frame to match you video
>>>> FPS.
>>>
>>> At which place would you insert it? I did insert
>>> asetnsamples=n=48000/25 before astats and now I get "Error while
>>> filtering: Cannot allocate memory"
>>
>> It works when I replace 48000/25 by 1920. Problem solved.
>
> It seems that in some cases expressions are allowed and in other cases
> they are not allowed.
> For example settb=1/25 is ok, but asetnsamples=n=48000/25 gives an
> unclear error message.
> How can the user know for which parameters it's allowed to use
> expressions and for which not?
> I mean without try and error.

Run ffmpeg -h filter=asetnsamples to list its options. Option `n`
accepts <int> so it expects a number.

Gyan
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".