edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiBe12d32fTahinli6 days ago3982 commits
| 1 | #!/usr/bin/env bash |
| 2 | # hevc-rc-bdrate.sh: BD-rate of ec-h265's bitrate-controlled sequence encoder against libx265 |
| 3 | # at the same bitrates, with x265 at bframes=0 and the same keyframe interval. |
| 4 | # |
| 5 | # The bitrate counterpart of hevc-bdrate.sh (which sweeps constant QP). Each side is encoded at |
| 6 | # the KBPS targets (ec-h265 through the hevc_rc example, x265 with -b:v at veryfast); the points |
| 7 | # are (bytes, Y and YUV PSNR against the source, from scripts/ffmpeg-psnr.sh). Positive |
| 8 | # bd_rate_pct means ec-h265 needs more bytes at the same quality. |
| 9 | # |
| 10 | # Usage: scripts/hevc-rc-bdrate.sh <clip.yuv> <width> <height> [GOP] [KBPS list] |
| 11 | # Environment: DATA (default $HOME/.cache/hevcencrc-data), FPS (default 30). |
| 12 | |
| 13 | |
| 14 | here= |
| 15 | clip= |
| 16 | w= |
| 17 | h= |
| 18 | gop= |
| 19 | kbpss= |
| 20 | fps= |
| 21 | data= |
| 22 | |
| 23 | [ || clip="/" |
| 24 | tag=-x-k-rc |
| 25 | |
| 26 | |
| 27 | target= |
| 28 | |
| 29 | rcbin="/release/examples/hevc_rc" |
| 30 | |
| 31 | anchor="/.x265.tsv" |
| 32 | test_="/.ec.tsv" |
| 33 | |
| 34 | |
| 35 | for; do |
| 36 | x265="/-.x265.hevc" |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | xdec="/-.x265.yuv" |
| 42 | |
| 43 | xline= |
| 44 | xpy= |
| 45 | xpsnr= |
| 46 | |
| 47 | |
| 48 | |
| 49 | ours="/-.ec.hevc" |
| 50 | recon="/-.ec.recon.yuv" |
| 51 | |
| 52 | oline= |
| 53 | |
| 54 | opy= |
| 55 | opsnr= |
| 56 | |
| 57 | |
| 58 | done |
| 59 | |
| 60 | |
| 61 | ; |
| 62 | ; |
| 63 | |
| 64 | |
| 65 | |
| 66 |