Skip to content

Instantly share code, notes, and snippets.

@zymtx5g79k
Created February 20, 2018 05:36
Show Gist options
  • Save zymtx5g79k/79425d76106271fc6e48082e7801efdd to your computer and use it in GitHub Desktop.
Save zymtx5g79k/79425d76106271fc6e48082e7801efdd to your computer and use it in GitHub Desktop.
ffmpeg -y -ss 0 -i video.mp4 -i video2.mp4 -filter_complex '[0:v]concat=n=1:v=1:a=0 [v]; [1:a]concat=n=1:v=0:a=1 [a]' -map '[v]' -map '[a]' -codec:v libx264 -pix_fmt yuv420p -preset fast -strict -2 -t 736 result.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment