Skip to content

Instantly share code, notes, and snippets.

@vade
Created May 22, 2013 22:32
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 vade/5631478 to your computer and use it in GitHub Desktop.
Save vade/5631478 to your computer and use it in GitHub Desktop.
./ffmpeg -r 30 -i Sequence3/2.mp4 -vf "crop=480:480" Sequence3/2_crop.mp4
./ffmpeg -r 30 -i Sequence3/1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
./ffmpeg -r 30 -i Sequence3/2_crop.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
./ffmpeg -r 30 -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