commit e83d22e64738d568148603cc21d9bafd6c3d89f6
parent 3fd4cb2db7dfb92f34c3ddc7853881f2bb079f68
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 9 Feb 2021 16:07:48 +0100
mediapres: fix merge with audio track
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.local/bin/mediapres b/.local/bin/mediapres
@@ -99,11 +99,12 @@ ffmpeg -y \
if test "${audiofile}"; then
ffmpeg -y \
- -i "$outvideofile" \
+ -i "${outvideofile}" \
-i "${audiofile}" \
-filter_complex amix=inputs=2:duration=longest \
$ffmpegcodec \
- "$outvideofile"
+ "audio-${outvideofile}"
+ mv "audio-${outvideofile}" "${outvideofile}"
fi
rm -rf "${tmpdir}"