Skip to main content

All Questions

Tagged with
28 votes
3 answers
49k views

FFMPEG / libx264: How to specify a variable frame rate but with a maximum?

Instead of providing a fixed frame rate to FFMPEG/libx264 (-r/-framerate), I would like to specify a variable frame rate with a MAXIMUM value, and allow libx264 to down the frame rate as it sees fit. ...
Mark Gerolimatos's user avatar
69 votes
3 answers
73k views

Why does preset "veryfast" in FFmpeg generate the most compressed file compared to all other presets?

The FFmpeg wiki says that the best compression rate is by preset "veryslow". But when I am trying it with my video then preset veryfast provides the best compression in my case. The following is the ...
Faisal's user avatar
  • 801
17 votes
4 answers
15k views

Can compressed videos be decoded back to their uncompresed original format?

The following is mentioned in the ffmpeg documentation. ffmpeg calls the libavformat library (containing demuxers) to read input files and get packets containing encoded data from them... ...
flipper's user avatar
  • 319
9 votes
1 answer
34k views

What archive compression makes .mp4 files the smallest?

Is there an archive-based compression format that is known to make the smallest .mp4 videos? I did a test 1080p 0:12 duration video with the only archival formats I know about: (python3) Joshs-MBP:...
O.rka's user avatar
  • 285
8 votes
1 answer
12k views

Using ffmpeg + MPDecimate to get rid of exact duplicate frames (i.e. losslessly)

According to the documentation, mpdecimate will "Drop frames that do not differ greatly from the previous frame in order to reduce frame rate." I would like to be able to remove only exact ...
JohnDoughmaker22's user avatar
3 votes
1 answer
2k views

How to compress gif effectively to reduce size?

We use gifs for our blog extensively. We used to embed tenor nano gifs(90px height maintaining aspect ratio, used for GIF previews and shares on mobile) in it. Now we wanted to create our own gifs and ...
Rohit Sai Janga's user avatar
2 votes
1 answer
976 views

Why are ffmpeg processed videos per default multiple times smaller in file size than the input file?

I have a mp4 movie of 1:15min length, made with the Sony Alpha 6400 4k camera. It has a size of 528MB. I want to cut it using ffmpeg. Although I only cut a few seconds, the new video was much smaller. ...
Lion's user avatar
  • 905
1 vote
1 answer
5k views

Video compression with ffmpeg - Constant quality

I am trying to compress videos of 10 seconds at different bitrates with ffmpeg. My aim is to obtain the same video at different qualities (from very low to very high). I don't want to touch audio part ...
MarAja's user avatar
  • 321
1 vote
1 answer
2k views

Why does FFmpeg append blank black video to the end of my MP4 files when compressed from MOV?

I have several large MOV files that I want to compress to MP4. Unfortunately, when I use FFmpeg, it appends lots of black (blank) video at the end. (The destination file is longer than the source ...
Ryan's user avatar
  • 1,976
1 vote
0 answers
445 views

FFmpeg CRF compression slower on master than old version

I use FFmpeg to compress videos (amongst other things) on Android. I have been using an FFmpeg build from 2015 for some time now and wanted to upgrade, preferably to the git master. I built FFmpeg ...
Jon G's user avatar
  • 307