dotfiles/dot_local/bin/executable_ffmpeg.bars

4 lines
205 B
Plaintext
Raw Normal View History

2023-09-15 15:46:04 -04:00
#!/bin/sh
output_file="$(echo "$1" | sed 's,.mp4,.bars.mp4,')"
ffmpeg -i "$1" -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1" -c:a copy "$output_file"