Skip to content

Commit

Permalink
Update resample_all_audio.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
askrejans authored Feb 25, 2018
1 parent b4c3028 commit b6db325
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions resample_all_audio.sh
Original file line number Diff line number Diff line change
@@ -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/"
Expand All @@ -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

0 comments on commit b6db325

Please sign in to comment.