From 755bb6cf7f8c69898c0fb55086c0b86510a03431 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 6 Jun 2025 17:29:27 +0200 Subject: checkpoint --- bin/extra/compress_discord | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/extra/compress_discord') diff --git a/bin/extra/compress_discord b/bin/extra/compress_discord index 5e026b0..776888c 100755 --- a/bin/extra/compress_discord +++ b/bin/extra/compress_discord @@ -16,6 +16,8 @@ MEGABIT="10000" # Main input="$1" +inputDir="$(dirname "$1")" +inputName="$(basename "$1")" if [ -z "$input" ] then >&2 printf 'Usage: discord_compress \n' @@ -32,6 +34,6 @@ common_args="-hide_banner -v quiet -stats -y -hwaccel auto -i $input -c:v $video set -ex ffmpeg $common_args -pass 1 -an -f null /dev/null -ffmpeg $common_args -pass 2 -c:a "$audio_codec" -b:a "${audio_bitrate}K" compressed_"${input%.*}".mp4 +ffmpeg $common_args -pass 2 -c:a "$audio_codec" -b:a "${audio_bitrate}K" "$inputDir"/compressed_"${inputName%.*}".mp4 rm -f ffmpeg2pass*.log* -- cgit v1.2.3-70-g09d2