#!/bin/sh
# Generate 10-bit 4:2:0 VP9 Profile 2 test clips whose width % 128 == 64.
# These are software-decoded to PIXEL_FORMAT_YUV420P10 in the renderer.
#
# (HEVC Main10 / AV1 10-bit would also work; VP9 P2 has the broadest
# software-decode coverage and very small resolutions are commonly rejected
# by hardware decoders, forcing the libvpx software path.)
set -e
for W in 192 320; do
  H=128
  ffmpeg -y -f lavfi -i "testsrc2=size=${W}x${H}:rate=30,format=yuv420p10le" \
         -t 5 -pix_fmt yuv420p10le \
         -c:v libvpx-vp9 -profile:v 2 -b:v 200k \
         "clip${W}.webm"
done
