diff --git a/resample_all_audio.sh b/resample_all_audio.sh index b53b9f2..2197171 100644 --- a/resample_all_audio.sh +++ b/resample_all_audio.sh @@ -1,6 +1,6 @@ #!/bin/bash ## -#Resamples audio and adds compensation where needed. Useful if on normal concat audio goes out of sync. +#Resamples audio to 48000 stereo and adds compensation where needed. Useful if on normal concat audio goes out of sync. ## ##CONFIG - START converted_video_path="videos/converted/" @@ -11,7 +11,6 @@ do base_filename=$(basename $file) -ffmpeg -i $file -c:v copy -c:a aac -af "aresample=async=1000" "${converted_video_path}resampled_${base_filename}" -hide_banner +ffmpeg -i $file -c:v copy -c:a aac -ar 48000 -ac 2 -af "aresample=async=1000" "${converted_video_path}resampled_${base_filename}" -hide_banner done -