|
|
|
@ -49,7 +49,8 @@ for basedir in "${@:-.}"; do
|
|
|
|
|
mp4_filepath="${filepath%.mkv}.mp4"
|
|
|
|
|
#if [ -n "${FORCE_OVERWRITE:-}" ] ||
|
|
|
|
|
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"
|
|
|
|
|
if [ -n "${QUICK:-}" ]; then
|
|
|
|
|
time nice ffmpeg -i "$filepath" -vcodec copy -acodec copy -scodec mov_text -movflags +faststart "$mp4_filepath" < /dev/null # don't let the ffmpeg command eat the incoming filenames
|
|
|
|
|