Skip to content

Instantly share code, notes, and snippets.

@daramkun
Created October 20, 2014 14:13
Show Gist options
  • Select an option

  • Save daramkun/c99c3b1fa6f1ca12e71a to your computer and use it in GitHub Desktop.

Select an option

Save daramkun/c99c3b1fa6f1ca12e71a to your computer and use it in GitHub Desktop.
ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.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