Skip to content

Instantly share code, notes, and snippets.

@Brianvdb
Created March 13, 2018 13:02
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 Brianvdb/8433e5df411aa8cccfe3c7830d348874 to your computer and use it in GitHub Desktop.
Save Brianvdb/8433e5df411aa8cccfe3c7830d348874 to your computer and use it in GitHub Desktop.
ffmpeg -i video1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts video1.ts
ffmpeg -i video2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts video2.ts
ffmpeg -i "concat:video1.ts|video2.ts" -c copy -bsf:a aac_adtstoasc output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment