Files
dotfiles/my-scripts/shell/ffmpeg-get-video-res.sh
2023-10-22 18:48:12 -03:00

11 lines
202 B
Bash
Executable File

#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: $0 <input_file>"
exit 1
fi
input_file="$1"
ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "$input_file"