1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 02:29:06 -08:00

fix some broken stuff in cutv

This commit is contained in:
Connor Olding 2021-09-11 10:38:30 -07:00
parent 17dfc77fba
commit 70ea90f81f

View file

@ -14,7 +14,7 @@ cutv() { ### @-
ffmpeg -hide_banner -i "$f" 2>&1 \
| grep Duration \
| grep -Eo '[0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9]' | awk -F: '{print (($1*60+$2)*60+$3)+$4/100}' | read len
[ "$len" -gt 0 ] || return 1
[ "$((len>0))" -eq 1 ] || return 1
echo "$g"
ffmpeg \
-hide_banner -loglevel warning -stats -stats_period 5 \
@ -27,4 +27,6 @@ cutv() { ### @-
# -maxrate 9600k -bufsize 12000k -vcodec libx264 -preset medium -crf 22 -vf scale=1280:720
}
[ -n "${preload+-}" ] || . ~/sh/preload || exit 2
eval ${preload:-preload} argc
[ -n "${preload+-}" ] || cutv "$@"