Create Test videos at given resolutions and colors
This go
package is essentially a shell wrapper. You need to ensure both imagemagick
and ffmpeg
are installed and in your $PATH before running this file
The colors and resolutions are read from YAML files by default. Create a colors.yml
and resolutions.yml
. You can copy the included sample files as a good starting point, and edit them as necessary.
Download the latest built version from releases
git clone [email protected]:ehowe/create_test_videos
cd create_test_videos
make
Usage of ./create-test-videos:
-c, --colors string Required: Path to colors YAML file
-d, --dry-run Dont actually create anything
-h, --help Show help text
-o, --output-dir string Output path for generated videos (default `pwd`)
-r, --resolutions string Required: Path to resolutions YAML file
-v, --verbose Verbose output
In practice, this looks like this:
./create-test-videos -c colors.yml -r resolutions.yml -o <some directory> -v
If you use the sample files that I provided, this will take a long time. The larger the resolutions, the longer it takes. Good luck.