Skip to content

Instantly share code, notes, and snippets.

@JaimeStill
Created February 15, 2023 03:03
Show Gist options
  • Select an option

  • Save JaimeStill/34490565095f6dc371ca32b301e776b1 to your computer and use it in GitHub Desktop.

Select an option

Save JaimeStill/34490565095f6dc371ca32b301e776b1 to your computer and use it in GitHub Desktop.
Edit Screencasts with FFMPEG

Edit Screencasts in Ubuntu with FFMPEG

# optional: install ffmpeg
sudo apt install ffmpeg

# from input at start through time, copy video and audio to output
ffmpeg -i {input} -ss {hh:mm:ss} -t {hh:mm:ss} -c:v copy -c:a copy {output}

# example
ffmpeg -i sc-ng-auth.webm -ss 00:00:00 -t 00:00:20 -c:v copy -c:a copy ng-auth.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment