FFmpeg command list for video conversion
- Qayyum
- March 24, 2017
- 26,739
This is a list of FFmpeg commands to convert videos to other formats to overcome the following issue. There are many video formats available and there are many devices which play those video formats, but sometimes device accepts only specific video format and we need to convert our video to meet that need. FFmpeg is command line tool which help to do just that. Few of the many FFmpeg commands are listed below. If you can improve any command please do tell us in comments, we will update it with your credits.
Interested in audio conversion? Here's FFmpeg command list for audio conversion
FFmpeg commands for 3GP
FFmpeg 3GP to AVIffmpeg -y -i in.3gp out.avi
ffmpeg -y -i in.3gp -f flv -ar 44100 out.flv
ffmpeg -y -i in.3gp out.webm
ffmpeg -y -i in.3gp out.mp4
ffmpeg -y -i in.3gp -f dvd out.mpg
ffmpeg -y -i in.3gp out.mov
ffmpeg -y -i in.3gp -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.3gp out.mkv
ffmpeg -y -i in.3gp out.m4v
ffmpeg -y -i in.3gp -f dvd out.mpeg
ffmpeg -y -i in.3gp -vcodec wmv2 out.wmv
ffmpeg -y -i in.3gp out.vob
FFmpeg commands for AVI
FFmpeg AVI to 3GPffmpeg -y -i in.avi -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.avi -f flv -ar 44100 out.flv
ffmpeg -y -i in.avi out.webm
ffmpeg -y -i in.avi out.mp4
ffmpeg -y -i in.avi -f dvd out.mpg
ffmpeg -y -i in.avi out.mov
ffmpeg -y -i in.avi -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.avi out.mkv
ffmpeg -y -i in.avi out.m4v
ffmpeg -y -i in.avi -f dvd out.mpeg
ffmpeg -y -i in.avi -vcodec wmv2 out.wmv
ffmpeg -y -i in.avi out.vob
FFmpeg commands for FLV
FFmpeg FLV to 3GPffmpeg -y -i in.flv -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.flv out.avi
ffmpeg -y -i in.flv out.webm
ffmpeg -y -i in.flv out.mp4
ffmpeg -y -i in.flv -f dvd out.mpg
ffmpeg -y -i in.flv out.mov
ffmpeg -y -i in.flv -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.flv out.mkv
ffmpeg -y -i in.flv out.m4v
ffmpeg -y -i in.flv -f dvd out.mpeg
ffmpeg -y -i in.flv -vcodec wmv2 out.wmv
ffmpeg -y -i in.flv out.vob
FFmpeg commands for WEBM
FFmpeg WEBM to 3GPffmpeg -y -i in.webm -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.webm out.avi
ffmpeg -y -i in.webm -f flv -ar 44100 out.flv
ffmpeg -y -i in.webm out.mp4
ffmpeg -y -i in.webm -f dvd out.mpg
ffmpeg -y -i in.webm out.mov
ffmpeg -y -i in.webm -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.webm out.mkv
ffmpeg -y -i in.webm out.m4v
ffmpeg -y -i in.webm -f dvd out.mpeg
ffmpeg -y -i in.webm -vcodec wmv2 out.wmv
ffmpeg -y -i in.webm out.vob
FFmpeg commands for MP4
FFmpeg MP4 to 3GPffmpeg -y -i in.mp4 -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.mp4 out.avi
ffmpeg -y -i in.mp4 -f flv -ar 44100 out.flv
ffmpeg -y -i in.mp4 out.webm
ffmpeg -y -i in.mp4 -f dvd out.mpg
ffmpeg -y -i in.mp4 out.mov
ffmpeg -y -i in.mp4 -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.mp4 out.mkv
ffmpeg -y -i in.mp4 out.m4v
ffmpeg -y -i in.mp4 -f dvd out.mpeg
ffmpeg -y -i in.mp4 -vcodec wmv2 out.wmv
ffmpeg -y -i in.mp4 out.vob
FFmpeg commands for MPG
FFmpeg MPG to 3GPffmpeg -y -i in.mpg -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.mpg out.avi
ffmpeg -y -i in.mpg -f flv -ar 44100 out.flv
ffmpeg -y -i in.mpg out.webm
ffmpeg -y -i in.mpg out.mp4
ffmpeg -y -i in.mpg out.mov
ffmpeg -y -i in.mpg -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.mpg out.mkv
ffmpeg -y -i in.mpg out.m4v
ffmpeg -y -i in.mpg -f dvd out.mpeg
ffmpeg -y -i in.mpg -vcodec wmv2 out.wmv
ffmpeg -y -i in.mpg out.vob
FFmpeg commands for MOV
FFmpeg MOV to 3GPffmpeg -y -i in.mov -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.mov out.avi
ffmpeg -y -i in.mov -f flv -ar 44100 out.flv
ffmpeg -y -i in.mov out.webm
ffmpeg -y -i in.mov out.mp4
ffmpeg -y -i in.mov -f dvd out.mpg
ffmpeg -y -i in.mov -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.mov out.mkv
ffmpeg -y -i in.mov out.m4v
ffmpeg -y -i in.mov -f dvd out.mpeg
ffmpeg -y -i in.mov -vcodec wmv2 out.wmv
ffmpeg -y -i in.mov out.vob
FFmpeg commands for MTS
FFmpeg MTS to 3GPffmpeg -y -i in.mts -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.mts out.avi
ffmpeg -y -i in.mts -f flv -ar 44100 out.flv
ffmpeg -y -i in.mts out.webm
ffmpeg -y -i in.mts out.mp4
ffmpeg -y -i in.mts -f dvd out.mpg
ffmpeg -y -i in.mts out.mov
ffmpeg -y -i in.mts out.mkv
ffmpeg -y -i in.mts out.m4v
ffmpeg -y -i in.mts -f dvd out.mpeg
ffmpeg -y -i in.mts -vcodec wmv2 out.wmv
ffmpeg -y -i in.mts out.vob
FFmpeg commands for MKV
FFmpeg MKV to 3GPffmpeg -y -i in.mkv -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.mkv out.avi
ffmpeg -y -i in.mkv -f flv -ar 44100 out.flv
ffmpeg -y -i in.mkv out.webm
ffmpeg -y -i in.mkv out.mp4
ffmpeg -y -i in.mkv -f dvd out.mpg
ffmpeg -y -i in.mkv out.mov
ffmpeg -y -i in.mkv -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.mkv out.m4v
ffmpeg -y -i in.mkv -f dvd out.mpeg
ffmpeg -y -i in.mkv -vcodec wmv2 out.wmv
ffmpeg -y -i in.mkv out.vob
FFmpeg commands for M4V
FFmpeg M4V to 3GPffmpeg -y -i in.m4v -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.m4v out.avi
ffmpeg -y -i in.m4v -f flv -ar 44100 out.flv
ffmpeg -y -i in.m4v out.webm
ffmpeg -y -i in.m4v out.mp4
ffmpeg -y -i in.m4v -f dvd out.mpg
ffmpeg -y -i in.m4v out.mov
ffmpeg -y -i in.m4v -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.m4v out.mkv
ffmpeg -y -i in.m4v -f dvd out.mpeg
ffmpeg -y -i in.m4v -vcodec wmv2 out.wmv
ffmpeg -y -i in.m4v out.vob
FFmpeg commands for MPEG
FFmpeg MPEG to 3GPffmpeg -y -i in.mpeg -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.mpeg out.avi
ffmpeg -y -i in.mpeg -f flv -ar 44100 out.flv
ffmpeg -y -i in.mpeg out.webm
ffmpeg -y -i in.mpeg out.mp4
ffmpeg -y -i in.mpeg -f dvd out.mpg
ffmpeg -y -i in.mpeg out.mov
ffmpeg -y -i in.mpeg -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.mpeg out.mkv
ffmpeg -y -i in.mpeg out.m4v
ffmpeg -y -i in.mpeg -vcodec wmv2 out.wmv
ffmpeg -y -i in.mpeg out.vob
FFmpeg commands for WMV
FFmpeg WMV to 3GPffmpeg -y -i in.wmv -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.wmv out.avi
ffmpeg -y -i in.wmv -f flv -ar 44100 out.flv
ffmpeg -y -i in.wmv out.webm
ffmpeg -y -i in.wmv out.mp4
ffmpeg -y -i in.wmv -f dvd out.mpg
ffmpeg -y -i in.wmv out.mov
ffmpeg -y -i in.wmv -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.wmv out.mkv
ffmpeg -y -i in.wmv out.m4v
ffmpeg -y -i in.wmv -f dvd out.mpeg
ffmpeg -y -i in.wmv out.vob
FFmpeg commands for VOB
FFmpeg VOB to 3GPffmpeg -y -i in.vob -vcodec h263 -ar 8000 -b:a 12.20k -ac 1 -s 176x144 out.3gp
ffmpeg -y -i in.vob out.avi
ffmpeg -y -i in.vob -f flv -ar 44100 out.flv
ffmpeg -y -i in.vob -af aformat=channel_layouts="7.1|5.1|stereo" out.webm
ffmpeg -y -i in.vob out.mp4
ffmpeg -y -i in.vob -f dvd out.mpg
ffmpeg -y -i in.vob out.mov
ffmpeg -y -i in.vob -vcodec libx264 -r 30000/1001 -b:v 21M -acodec ac3 out.mts
ffmpeg -y -i in.vob out.mkv
ffmpeg -y -i in.vob out.m4v
ffmpeg -y -i in.vob -f dvd out.mpeg
ffmpeg -y -i in.vob -acodec copy -vcodec wmv2 out.wmv