Last active
July 13, 2021 16:13
-
-
Save adrienjoly/e5b2db9c9a61f454ed08f56c32999f17 to your computer and use it in GitHub Desktop.
This file contains 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
# use this command to add 5-seconds delay to the audio track of a video | |
# | |
ffmpeg -i input.mp4 -itsoffset 5 -i input.mp4 -map 0:v -map 1:a -vcodec copy -acodec copy delayed.mp4 |
This file contains 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
# successfully tested on mac os' bash terminal | |
# if needed, you can download ffmpeg from http://www.ffmpeg.org/download.html | |
# | |
ffmpeg -f concat -safe 0 -i <(for f in ./*.mp4; do echo "file '$PWD/$f'"; done) -c copy output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For reference, on video recordings of Chapelle des Lombards:
ffmpeg -i harissa.mp4 -vn -acodec copy harissa.audio.aac
, or in pcm/wave format (for audacity):ffmpeg -i harissa.mp4 harissa.audio.wav
,ffmpeg -i harissa.mp4 -itsoffset 0.1 -i harissa.mix.m4a -c:v copy -map 0:v:0 -map 1:a:0 harissa.mix.mp4