1
0
Files
scripts/utils/testdata.sh
T
2024-12-04 07:48:12 +01:00

14 lines
334 B
Bash
Executable File

#!/bin/bash
create_file() {
dd if=/dev/urandom iflag=fullblock of="testdata/$1" bs=1M count=1 status=none
}
rm -rf testdata
mkdir testdata
ffmpeg -f lavfi -i testsrc -t 30 -pix_fmt yuv420p testdata/a.mp4
create_file "a.gif"
create_file "b.gif"
create_file "b.jpeg"
ffmpeg -f lavfi -i testsrc -t 30 -pix_fmt yuv420p testdata/b.mp4