Skip to content

Instantly share code, notes, and snippets.

@lilithebowman
Created October 12, 2018 14:40
Show Gist options
  • Save lilithebowman/3ea4c1bca379394800d53315a19b04d1 to your computer and use it in GitHub Desktop.
Save lilithebowman/3ea4c1bca379394800d53315a19b04d1 to your computer and use it in GitHub Desktop.
#@echo off
#dir
ls
echo "mix-audio-ffmpeg.bat"
echo "How to use: drag audio file onto this batch file. Input MP4 must be named stabilized_1x_speed.mp4"
echo "Or run the batch file from the same directory and set the argument as the audio file you would like mixed."
echo "--------------------------------------------"
echo " " 
echo "Starting mix: $1"
str="$*"
echo ffmpeg -i ./stabilized_1x_speed_output.mp4 -i $str -filter_complex "[0:a][1:a]amix=duration=shortest[a]" -map 0:v -map "[a]" -c:v copy musical_stabilized_1x_speed.mp4
ffmpeg -i ./stabilized_1x_speed_output.mp4 -i "$str" -filter_complex "[0:a][1:a]amix=duration=shortest[a]" -map 0:v -map "[a]" -c:v copy musical_stabilized_1x_speed.mp4
echo "Mixing done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment