---
title: "Discussion on \"How to compress a video to an exact file size with ffmpeg\" | Hashnode"
description: "Discussion on \"How to compress a video to an exact file size with ffmpeg\". \"Make this video 20 MB\" sounds like a simple request until you try it with a quality slider. CRF and other quality based modes give you a nice picture but an unpredictable size. When the limit is hard"
url: "https://hashnode.com/posts/how-to-compress-a-video-to-an-exact-file-size-with-ffmpeg/6b08defba37068ad08a7175e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to compress a video to an exact file size with ffmpeg](https://vidlify.hashnode.dev/how-to-compress-a-video-to-an-exact-file-size-with-ffmpeg?utm_source=hashnode&utm_medium=feed)

"Make this video 20 MB" sounds like a simple request until you try it with a quality slider. CRF and other quality based modes give you a nice picture but an unpredictable size. When the limit is hard

1d ago · 4 min read · vidlify.hashnode.dev  
Read the article

-   [#ffmpeg](https://hashnode.com/tag/ffmpeg)
-   [#video](https://hashnode.com/tag/video)
-   [#python](https://hashnode.com/tag/python)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Vidlify](https://hashnode.com/@vidlify)

@vidlify

  
[View profile](https://hashnode.com/@vidlify)

Building Vidlify, a file and video host: share by link, embed videos with one iframe. vidlify.to

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
