FFMPEG MP4 Command Generator

Fill the form and you can find the generated ffmpeg command below.

Input file
Output file

Video Settings

Trim

Cut video using start and end time.

Start (hh:mm:ss) : :

End  (hh:mm:ss) : :

Copy video stream

Copies video stream from the file. If you check this box, all of the video encoding settings below will be disabled.

Threads

Limit the CPU threads during conversion.

no limit
1
2
3
4
6
8
custom:
CRF

Constant Rate Factor keeps the best quality of the video file using as much bits per frame as needed - rather than fixed bits per frame. This method allows the encoder to attempt to achieve a certain output quality for the whole file when output file size is of less importance. This provides maximum compression efficiency with a single pass. Lower values means better quality.

The range is exponential, so increasing the CRF value +6 results in roughly half the file size

Selected CRF:

Resolution

Set the width and height of the video.

original
144p
240p
360p
480p
720p (HD)
1080p (FullHD)
1440p
2160p (2K)
custom:
Frame rate

FPS = frame per second

original
1 fps
5 fps
10 fps
20 fps
23.976 fps (movies)
24 fps
25 fps
29.97 fps (NTSC)
30 fps
custom:
Video codec

H264 and H265 are a block-oriented motion-compensation-based video compression standards. H264 is widely used H265 is the successor of H264.

H.264
H.265 - To achieve same visual quality of H264 AND half the file size use CRF 28.
Preset

A preset is a collection of options that will provide a certain encoding speed to compression ratio. The faster the encoding speed the worse the compression is.

ultrafast
superfast
veryfast
faster
fast
medium (default)
slow
slower
veryslow
placebo
Tune

Tune changes settings based upon the specifics of your input, like deblocking and keyframe count

none
film - use for high quality movie content; lowers deblocking
animation - good for cartoons; uses higher deblocking and more reference frames
grain - preserves the grain structure in old, grainy film material
stillimage - good for slideshow-like content
fastdecode - allows faster decoding by disabling certain filters
zerolatency - good for fast encoding and low-latency streaming
Web video

If your videos are going to be viewed in a browser this will move some information to the beginning of your file and allow the video to begin playing before it is completely downloaded by the viewer.

Web video

Audio Settings

Disable audio stream

Disablesaudio stream from the file.

Copy audio stream

Copies audio stream from the file. If you check this box, all of the audio encoding settings below will be disabled.

Audio codec

Used compression method

aac
mp3
Audio sample rate

Samples per second

8 kHz
16 kHz
22.05 kHz
32 kHz
44.1 kHz
48 kHz
Audio bitrate

Bits per second

16k
32k
48k
64k
128k
160k
192k
224k
256k
320k
384k
448k
500k
FFMPEG Command

Made with ♥ by hlorand