Skip to content

Instantly share code, notes, and snippets.

@lilithebowman
Last active October 1, 2018 18:03
Show Gist options
  • Save lilithebowman/7e81088e2a41621ea9c2d93cd6008a03 to your computer and use it in GitHub Desktop.
Save lilithebowman/7e81088e2a41621ea9c2d93cd6008a03 to your computer and use it in GitHub Desktop.
@echo off
dir
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:
ffmpeg -i ./stabilized_1x_speed.mp4 -i %1 -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. Press any key to exit."
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment