Skip to content

Instantly share code, notes, and snippets.

@ststeiger
Created April 2, 2024 15:06
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 ststeiger/e902232c63acbe1e609d26f1a0b22592 to your computer and use it in GitHub Desktop.
Save ststeiger/e902232c63acbe1e609d26f1a0b22592 to your computer and use it in GitHub Desktop.
Split all screens video into single screen
Simply convert:
ffmpeg -i input.avi output.mp4
Simply convert, but only the left half of the screen(s):
ffmpeg -i input.avi -filter_complex "[0:v]crop=iw/2:ih:0:0,scale=iw:ih[out]" -map "[out]" output.mp4
Simply convert, but only the right half of the screen(s):
ffmpeg -i input.avi -filter_complex "[0:v]crop=iw/2:ih:ow:0,scale=iw:ih[out]" -map "[out]" output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment