Skip to content

Instantly share code, notes, and snippets.

@ViktorNova
Created September 28, 2017 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ViktorNova/3e43ab948fcc6c0bfe7f60a6fa0fda3c to your computer and use it in GitHub Desktop.
Save ViktorNova/3e43ab948fcc6c0bfe7f60a6fa0fda3c to your computer and use it in GitHub Desktop.
FFMPEG Stuff
# Boost volume of all videos in directory
# This ONLY works in BASH. (maybe others, but it does NOT work in Fish shell)
# This is meant to be done by first moving all the videos into a subdirectory
# Then the output files with boosted volume are dumped one directory up
for i in *.avi; do ffmpeg -i $i -vcodec copy -af "volume=10dB" ../$i; done
# ____________________________________________________________________________________
# Combine video from first video with audio from anthe second video.
# Youtube Karaoke times!
# To add a time offset to either one, adjust "-itoffset"
ffmpeg -itsoffset 00:00:00.000 -i lyrics.mp4 -itsoffset 00:00:00.000 -i instrumental.mp4 -c copy -map 0:0 -map 1:1 -shortest KaraokeVideo.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment