edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB3f482f8Tahinli1 month ago3898 commits
| 1 | #!/usr/bin/env bash |
| 2 | # ffmpeg-psnr.sh: per-plane PSNR of a decoded raw I420 file against its source, |
| 3 | # computed by ffmpeg's own psnr filter (per-frame values from its stats file). |
| 4 | # |
| 5 | # Prints `frames psnr_y psnr_u psnr_v psnr_yuv` where each plane is the mean over |
| 6 | # frames of ffmpeg's per-frame PSNR, and psnr_yuv is the JVET 6:1:1 weighting of |
| 7 | # those plane means, (6 Y + U + V) / 8. |
| 8 | # |
| 9 | # Usage: scripts/ffmpeg-psnr.sh <ref.yuv> <dec.yuv> <width> <height> |
| 10 | # Environment: PIX (default yuv420p; yuv420p10le for 10-bit files). |
| 11 | |
| 12 | |
| 13 | ref= |
| 14 | dec= |
| 15 | w= |
| 16 | h= |
| 17 | stats= |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 |