Skip to content

Instantly share code, notes, and snippets.

@47ronin
Created October 1, 2017 23:31
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 47ronin/a97f552f3377c9d0dc8025c1992eebe2 to your computer and use it in GitHub Desktop.
Save 47ronin/a97f552f3377c9d0dc8025c1992eebe2 to your computer and use it in GitHub Desktop.
Offsets video track by a specific duration to properly sync with embedded audio, creates a remuxed output file
#!/bin/bash
ffmpeg -i ScrewedUpVideo.mp4 -itsoffset 0.33 -i ScrewedUpVideo.mp4 -vcodec copy -acodec copy -map 0:1 -map 1:0 FixedVideo.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment