init
This commit is contained in:
commit
189e5564e1
11
ffpr_rm.sh
Normal file
11
ffpr_rm.sh
Normal file
@ -0,0 +1,11 @@
|
||||
counter=0
|
||||
for i in *.mp4
|
||||
do
|
||||
# ffprobe -show_entries stream=width,height -v error "$i" | grep width
|
||||
resol=$(ffprobe -show_entries stream=width -select_streams v:0 -v error "$i" | grep width | sed 's/width=//g')
|
||||
echo $resol - $i
|
||||
[[ resol -gt 1280 ]] && echo '== Converting ' $i && ffmpeg -y -i "$i" -vf scale=1280:720 -framerate 30 "$(echo $i | sed 's/.mp4/_720p30.mp4/')" && echo 'RM!!!' && sleep 3 && rm "$i"
|
||||
echo $i
|
||||
echo '=='
|
||||
done
|
||||
echo $counter
|
Loading…
Reference in New Issue
Block a user