Last active
September 9, 2017 14:02
-
-
Save vjk2005/ce68445409e478729762734829b178e4 to your computer and use it in GitHub Desktop.
Add audio to video using FFmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#bsf filter is needed sometimes to take care of file format compatibility bullshit | |
ffmpeg -i video.mp4 -i audio.mp3 -bsf:a aac_adtstoasc -c copy -map 0:0 -map 1:0 output.mp4 | |
#if audio is webm | |
ffmpeg -i video.mp4 -i audio.webm -c:v copy -c:a libvorbis -strict experimental -map 0:0 -map 1:0 output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment