Skip to content

Instantly share code, notes, and snippets.

@Tejeshwarabm
Created April 3, 2018 09:59
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 Tejeshwarabm/d437739200073ade71bebd6e243e874e to your computer and use it in GitHub Desktop.
Save Tejeshwarabm/d437739200073ade71bebd6e243e874e to your computer and use it in GitHub Desktop.
# Convert Video to audio
ffmpeg -i video.mp4 -c:a pcm_s16le audio.wav
# Concatenate 2 or more video files
ffmpeg -i concat: "part1.avi | part2.avi | part3.avi" output.avi
# Crop the video
ffmpeg -i input.avi -ss 00:00:25 -t 00:00:10 -async 1 ouput.avi
where, -i: input
-ss: start time
-t: time interval
-async: asynchronous
# Convert one form to another: avi-->mp4, dat-->avi, etc.,
ffmpeg -i input.dat -y output.avi -loglevel panic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment