[FFmpeg-trac] #11299(avfilter:new): Audio PSNR values have strange range
FFmpeg
trac at avcodec.org
Thu Nov 14 03:12:44 EET 2024
#11299: Audio PSNR values have strange range
----------------------------------+----------------------------------
Reporter: Jing Lu | Type: defect
Status: new | Priority: normal
Component: avfilter | Version: 6.1.1
Keywords: psnr | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
----------------------------------+----------------------------------
An example:
{{{
ffmpeg -f lavfi -i 'sine=frequency=1000:sample_rate=44100:duration=1s'
-c:a pcm_u8 ~/sineu8.wav
ffmpeg -f lavfi -i 'sine=frequency=1000:sample_rate=44100:duration=1s'
-c:a pcm_s16le ~/sines16le.wav
ffmpeg -i ~/sineu8.wav -i ~/sines16le.wav -filter_complex apsnr -f null
/dev/null
}}}
Outputs:
> [Parsed_apsnr_0 @ 0x5562352d60c0] PSNR ch0: 166.661 dB
This issue is reproducible at v6.1.1 (and many versions before it).
The value of 166.661 dB is rather high (over 100); I'd expect the PSNR to
be around ~53 dB.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11299>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list