[FFmpeg-trac] #9998(avfilter:reopened): Problem with atrim and astats

FFmpeg trac at avcodec.org
Thu Dec 1 19:52:35 EET 2022


#9998: Problem with atrim and astats
--------------------------------------+------------------------------------
             Reporter:  Michael Koch  |                    Owner:  (none)
                 Type:  defect        |                   Status:  reopened
             Priority:  normal        |                Component:  avfilter
              Version:  git-master    |               Resolution:
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+------------------------------------
Changes (by Michael Koch):

 * status:  closed => reopened
 * resolution:  invalid =>

Comment:

 It's still not working. Now astats gives no output at all for a 5s audio
 stream. Can be reproduced as follows:

 ffmpeg -f lavfi -i sine -c:a pcm_s24le -t 5 -y test.wav

 ffmpeg -i test.wav -af
 astats=measure_perchannel="Min_level+Max_level":measure_overall=none -f
 null -

 Console output for the second command line:

 C:\Users\astro\Desktop\crazy_colors>ffmpeg -i test.wav -af
 astats=measure_perchannel="Min_level+Max_level":measure_overall=none -f
 null -
 ffmpeg version 2022-12-01-git-45ab5307a6-essentials_build-www.gyan.dev
 Copyright (c) 2000-2022 the FFmpeg developers
   built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
   configuration: --enable-gpl --enable-version3 --enable-static --disable-
 w32threads --disable-autodetect --enable-fontconfig --enable-iconv
 --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma
 --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-
 avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265
 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx
 --enable-mediafoundation --enable-libass --enable-libfreetype --enable-
 libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-
 amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec
 --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-
 libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
 --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-
 libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis
 --enable-librubberband
   libavutil      57. 43.100 / 57. 43.100
   libavcodec     59. 54.100 / 59. 54.100
   libavformat    59. 34.102 / 59. 34.102
   libavdevice    59.  8.101 / 59.  8.101
   libavfilter     8. 51.100 /  8. 51.100
   libswscale      6.  8.112 /  6.  8.112
   libswresample   4.  9.100 /  4.  9.100
   libpostproc    56.  7.100 / 56.  7.100
 Input #0, wav, from 'test.wav':
   Metadata:
     encoder         : Lavf59.34.102
   Duration: 00:00:05.00, bitrate: 1058 kb/s
   Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 44100 Hz, mono,
 s32 (24 bit), 1058 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (pcm_s24le (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf59.34.102
   Stream #0:0: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
     Metadata:
       encoder         : Lavc59.54.100 pcm_s16le
 size=N/A time=00:00:04.98 bitrate=N/A speed= 613x    A
 video:0kB audio:431kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9998#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list