diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-02-20 22:10:05 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-19 23:28:09 -0600 |
commit | 119ebba54b0d4a8656b3966639d9263be370b5a7 (patch) | |
tree | 8db77cbb70f608abebe34284e1bb2a8367047c93 /vid-scratch/reschange-mkvgen.sh | |
parent | 756eb1635ba61b2888efa1ae2a25acd40cb34d11 (diff) |
vid-scratch: Add consolidated versions of my experiments from 2025-02-XXlukeshu/vid-scratch
Diffstat (limited to 'vid-scratch/reschange-mkvgen.sh')
-rwxr-xr-x | vid-scratch/reschange-mkvgen.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vid-scratch/reschange-mkvgen.sh b/vid-scratch/reschange-mkvgen.sh new file mode 100755 index 0000000..cbe637d --- /dev/null +++ b/vid-scratch/reschange-mkvgen.sh @@ -0,0 +1,19 @@ +name=${0##*/} +name=${name%.sh} + +rm -f -- "${name}.part1.mkv" "${name}.part2.mkv" "${name}.concat.txt" "${name}.mkv" + +# Create a 320x240 clip +ffmpeg -f lavfi -t 2 -i testsrc=r=30:s=320x240 -c:v vp8 -level 3 -pix_fmt yuv420p "${name}.part1.mkv" + +# Create a 640x480 clip +ffmpeg -f lavfi -t 2 -i testsrc=r=30:s=640x480 -c:v vp8 -level 3 -pix_fmt yuv420p "${name}.part2.mkv" + +# Create a text file with the list of files +{ + echo "file '${name}.part1.mkv'" + echo "file '${name}.part2.mkv'" +} > "${name}.concat.txt" + +# Concatenate the clips +ffmpeg -f concat -safe 0 -i "${name}.concat.txt" -c:v copy "${name}.mkv" |