From 6ffcdd37c4936cfb7292d601f3e1633b8198a0a6 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Mon, 18 Mar 2024 20:10:59 +0100 Subject: [PATCH] mp4concat: strip metadata after running --- home/programs/scripts/mp4concat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/programs/scripts/mp4concat b/home/programs/scripts/mp4concat index cd7d57d..c3ab97d 100755 --- a/home/programs/scripts/mp4concat +++ b/home/programs/scripts/mp4concat @@ -12,9 +12,12 @@ done concat_files=$(printf "|%s" "${TMP_FILES[@]}") concat_files=${concat_files:1} +out_file="mp4concat_${RANDOM}.mp4" -ffmpeg -i "concat:$concat_files" -c copy -bsf:a aac_adtstoasc "mp4concat_${RANDOM}.mp4" +ffmpeg -i "concat:$concat_files" -c copy -bsf:a aac_adtstoasc "$out_file" for f in "${TMP_FILES[@]}"; do rm "$f" done + +strip-metadata "$out_file"