Skip to content

Instantly share code, notes, and snippets.

@joschuck
Last active August 6, 2016 10:18
Show Gist options
  • Select an option

  • Save joschuck/212ff4499870c7f195fb5fef916d2404 to your computer and use it in GitHub Desktop.

Select an option

Save joschuck/212ff4499870c7f195fb5fef916d2404 to your computer and use it in GitHub Desktop.
ffmpeg
# cut video
ffmpeg -i movie.mp4 -ss 00:00:03 -t 00:00:08 -async 1 cut.mp4
# convert to webm
ffmpeg -i input-file.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output-file.webm
#concat
ffmpeg -f concat -safe 0 -i mylist.txt -c copy darmstadt.mp4
ffmpeg -framerate 1/5 -i img%03d.png -c:v libx264 -r 30 out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment