Skip to content

Instantly share code, notes, and snippets.

@Crydust
Created October 4, 2022 19:08
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 Crydust/09a550e27d2b5cef79bcbe9560a5e522 to your computer and use it in GitHub Desktop.
Save Crydust/09a550e27d2b5cef79bcbe9560a5e522 to your computer and use it in GitHub Desktop.
Trim video and convert to codec known by powerpoint
ffmpeg -i input.webm -ss 00:02:11 -t 00:01:40 -c:v libx264 -c:a aac output.mp4
# PowerPoint supports .mp4 files encoded with H.264 video and AAC audio
# -ss = start time
# -t = duration (after start time)
# -c:v = video codec for output
# -c:a = audio codec for output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment