edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | #!/usr/bin/env bash |
| 2 | # hevc10-hdr-check.sh: ffprobe/ffmpeg check of ec-h265 Main 10 HDR output. Encodes a |
| 3 | # synthetic 10-bit clip (testsrc2, mandelbrot, gradients) as intra and GOP with PQ and |
| 4 | # HLG tags, then asserts ffprobe reports profile=Main 10, pix_fmt=yuv420p10le and the |
| 5 | # colour tags, and that ffmpeg's decode equals the encoder reconstruction byte for byte. |
| 6 | # Usage (on a host with ffmpeg and cargo): scripts/hevc10-hdr-check.sh |
| 7 | |
| 8 | here= |
| 9 | data= |
| 10 | |
| 11 | |
| 12 | target= |
| 13 | |
| 14 | bin="/release/examples/hevc_gop" |
| 15 | |
| 16 | fail=0 |
| 17 | for; do |
| 18 | case in |
| 19 | gradients) lavfi="gradients=s=416x240:r=30" ;; |
| 20 | *) lavfi="=s=416x240:r=30" ;; |
| 21 | esac |
| 22 | yuv="/.yuv" |
| 23 | |
| 24 | for; do |
| 25 | for; do |
| 26 | bs="/--.h265"; rec="/--.rec"; dec="/--.dec" |
| 27 | EC_H265_HDR= EC_H265_FULL_RANGE= \ |
| 28 | |
| 29 | info= |
| 30 | |
| 31 | |
| 32 | want_tr= |
| 33 | want_rg= |
| 34 | for |
| 35 | ; do |
| 36 | case "" in *""*) ;; *) ; fail=1 ;; esac |
| 37 | done |
| 38 | |
| 39 | if ; then ; else ; fail=1; fi |
| 40 | done |
| 41 | done |
| 42 | done |
| 43 |