|
|
|
@ -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
|
|
|
|
|