[FFmpeg-trac] #9998(avfilter:new): Problem with atrim and astats
FFmpeg
trac at avcodec.org
Tue Nov 1 08:28:30 EET 2022
#9998: Problem with atrim and astats
--------------------------------------+------------------------------------
Reporter: Michael Koch | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: avfilter
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+------------------------------------
Comment (by Michael Koch):
I found another problem. Use the same input file as above and trim it to a
very short duration 10us which can contain only 0 or 1 sample:
ffmpeg -i test.wav -af
atrim=start=1.00025:duration=0.00001,astats=measure_perchannel="Min_level+Max_level":measure_overall=none
-f null -
This is the output:
[Parsed_astats_1 @ 000001762b523e00] Min level: -268369920.000000
[Parsed_astats_1 @ 000001762b523e00] Max level: 268369920.000000
The measured levels are wrong, because the Min and Max levels can't be
different if the stream doesn't contain more than one sample. With
duration 30us (contains 1 or 2 samples) it works as expected.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9998#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list