Opened 21 months ago
Last modified 9 months ago
#11299 open defect
Audio PSNR values have strange range
| Reported by: | Jing Lu | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | avfilter |
| Version: | 6.1.1 | Keywords: | psnr |
| Cc: | Jing Lu | Blocked By: | |
| Blocking: | Reproduced by developer: | yes | |
| Analyzed by developer: | no |
Description
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.
Change History (1)
Note:
See TracTickets
for help on using tickets.



Well, see this https://mplayerhq.hu/pipermail/ffmpeg-devel/2024-October/334533.html
"Therefore, when the error is larger, the final logarithm result will be
lower."