updated avi_to_mp4.sh

pull/4/merge
Hari Sekhon 1 year ago
parent 037dadcc88
commit b9e5d1f095

@ -48,7 +48,8 @@ for basedir in "${@:-.}"; do
while read -r filepath; do
mp4_filepath="${filepath%.avi}.mp4"
if ! [ -s "$mp4_filepath" ]; then
trap_cmd "echo; echo 'removing partially done file:'; rm -fv '$mp4_filepath'; untrap"
# shellcheck disable=SC2016
trap_cmd 'echo; echo "removing partially done file:"; rm -fv "$mp4_filepath"; untrap'
timestamp "converting $filepath => $mp4_filepath"
#time nice ffmpeg -i "$filepath" "$mp4_filepath" < /dev/null # don't let the ffmpeg command eat the incoming filenames
time nice ffmpeg -i "$filepath" -vcodec copy -acodec copy -scodec mov_text -movflags +faststart "$mp4_filepath" < /dev/null

Loading…
Cancel
Save