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 | # gen-hevc-rext-fixtures.sh — regenerate crates/ec-h265/tests/data/rext/*.265 and their .md5. |
| 3 | # |
| 4 | # Each stream is synthetic (ffmpeg lavfi testsrc2 plus temporal noise, no personal media), |
| 5 | # encoded by libx265 in one RExt pixel format with one set of tool switches. The sidecar .md5 |
| 6 | # is the MD5 of ffmpeg's own decode of the stream as raw planar samples (8-bit: 1 byte, |
| 7 | # above 8 bits: 2 bytes little endian). The ec-h265 test `rext_generated` decodes the stream |
| 8 | # and must match that MD5. |
| 9 | # |
| 10 | # Usage: scripts/gen-hevc-rext-fixtures.sh [outdir] (needs ffmpeg with libx265) |
| 11 | |
| 12 | ROOT= |
| 13 | OUT= |
| 14 | |
| 15 | SRC=(-f lavfi -i "testsrc2=size=128x96:rate=25,noise=alls=8:allf=t" -frames:v 6) |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | BASE="keyint=8:bframes=2:weightp=1:weightb=1:qp=22" |
| 27 | for; do |
| 28 | |
| 29 | done |
| 30 | # Tool switches on the formats that matter. |
| 31 | for; do |
| 32 | |
| 33 | |
| 34 | |
| 35 | done |