Skip to content

Check if w and h are divisible by 2

-check if video_size=$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "$input") is divisible by 2 and if not add video filter to chain

  • this is the video filter: -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2"

brain go brrrr