ffmpeg

Video conversion tool. More information: https://ffmpeg.org.

ffmpeg -i path/to/video.mp4 -vn path/to/sound.mp3

ffmpeg -i path/to/input_audio.flac -ar 44100 -sample_fmt s16 path/to/output_audio.wav

ffmpeg -i path/to/video.mp4 -vf 'scale=-1:1000' -r 15 path/to/output.gif

ffmpeg -i path/to/frame_%d.jpg -f image2 video.mpg|video.gif

ffmpeg -ss mm:ss -to mm2:ss2 -i path/to/input_video.mp4 -codec copy path/to/output_video.mp4

ffmpeg -i path/to/input_video.avi -codec:a aac -b:a 128k -codec:v libx264 -crf 23 path/to/output_video.mp4

ffmpeg -i path/to/input_video.mkv -codec copy path/to/output_video.mp4

ffmpeg -i path/to/input_video.mp4 -codec:v libvpx-vp9 -crf 30 -b:v 0 -codec:a libopus -vbr on -threads number_of_threads path/to/output_video.webm