Saturday, August 22, 2015
ffmpeg is the swiss army knife of video and audio processing tools.
This post will be an ever growing list of useful ffmpeg commands.
ffmpeg -i INPUT
Assuming the source video codec is compatible with the MP4 container, no re-encoding will be necessary. There won’t be any loss in quality.
ffmpeg -i INPUT.mov -c:v copy -c:a copy OUTPUT.mp4
ffmpeg -i INPUT -target ntsc-dvd OUTPUT.mp4
Adding faststart flags to a video file will allow the video file to begin playing as soon as possible instead of waiting for the entire video file to download in a compatible web browser.
ffmpeg -i INPUT -c:a libfaac -c:v copy -movflags faststart OUTPUT
ffmpeg -i INPUT -vn -c:a copy OUTPUT
ffmpeg -i INPUT -an -c:v copy OUTPUT
Refer to this post.