Skip to content

Instantly share code, notes, and snippets.

@ferristseng
Created February 22, 2017 19:03
Show Gist options
  • Select an option

  • Save ferristseng/b27393be3e813b5ee48beb23d08f49c0 to your computer and use it in GitHub Desktop.

Select an option

Save ferristseng/b27393be3e813b5ee48beb23d08f49c0 to your computer and use it in GitHub Desktop.
Joining MP4 videos / Converting to WebM
ls Movie_Part_1.mp4 Movie_Part_2.mp4 | perl -ne 'print "file $_"' | ffmpeg -f concat -i - -c copy Movie_Joined.mp4
ffmpeg -i input.mp4 -ss 00:00:30.0 -c copy -t 00:00:10.0 output.mp4
ffmpeg -i in.mp4 out.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment