edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB7e097feTahinli2 months ago3472 commits
| 1 | #!/usr/bin/env bash |
| 2 | # What a player draws a PGS subtitle's white as, measured rather than reasoned: |
| 3 | # ffmpeg burns fixtures/subs/pgs-1080p.sup over black and the brightest red |
| 4 | # channel in the first painted frame is printed. It is 235 -- the palette's own |
| 5 | # Y', not an expansion of the 16..235 video range to 255 -- which is what |
| 6 | # `ec_pgs::rgba` matches. |
| 7 | # |
| 8 | # scripts/pgs-white-level.sh [file.sup] |
| 9 | |
| 10 | |
| 11 | sup="" |
| 12 | [ || { ; ; } |
| 13 | |
| 14 | size= |
| 15 | |
| 16 | raw= |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 |