From 7968c4c2873c92c310c23625b7ac690df03e619b Mon Sep 17 00:00:00 2001 From: Levon Date: Mon, 13 May 2024 20:08:00 -0500 Subject: [PATCH] only propedit mkv --- scripts/recc_encode.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/recc_encode.sh b/scripts/recc_encode.sh index b1a8643..b53fa37 100755 --- a/scripts/recc_encode.sh +++ b/scripts/recc_encode.sh @@ -29,9 +29,11 @@ encode() { "$FFMPEG_PARAMS" -svtav1-params \ $NL "\"$SVT_PARAMS\" \"$OUTPUT\"" >> "$ENCODE_FILE" - echo "mkvpropedit \"$OUTPUT\" --add-track-statistics-tags" >> "$ENCODE_FILE" - echo "mkvpropedit \"$OUTPUT\" --edit info --set \"title=\"" >> "$ENCODE_FILE" - + if [[ "$EXT" == "mkv" ]]; then + echo "mkvpropedit \"$OUTPUT\" --add-track-statistics-tags" >> "$ENCODE_FILE" + echo "mkvpropedit \"$OUTPUT\" --edit info --set \"title=\"" >> "$ENCODE_FILE" + fi + if [[ "$PRINT_OUT" == "true" ]]; then cat "$ENCODE_FILE"