#!/bin/bash

for i in 0 1 2 3 4 5 6 7
do
    echo "i=${i}"

    ./synth1 "${i}" > "synth1.${i}.uyvy422"

    ffmpeg -f rawvideo -pixel_format uyvy422 -video_size 720x576 \
        -i "synth1.${i}.uyvy422" \
        -vf "scale=1920:1080:flags=lanczos:in_color_matrix=bt601:out_color_matrix=bt709" \
        -color_primaries bt709 -color_trc bt709 -colorspace bt709 \
        -f rawvideo -pixel_format uyvy422 \
        -y "synth1.${i}.uyvy422.hd"

done
