Add my-scripts and docker folders
This commit is contained in:
10
my-scripts/shell/ffmpeg_get_video_resolution.sh
Executable file
10
my-scripts/shell/ffmpeg_get_video_resolution.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user