Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save felippe-regazio/abe3f36957666cf8541a0a543794feb6 to your computer and use it in GitHub Desktop.
Save felippe-regazio/abe3f36957666cf8541a0a543794feb6 to your computer and use it in GitHub Desktop.
# 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
# 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