DEV Community

Brisbane Web Developer
Brisbane Web Developer

Posted on

How to reduce the size for MP4 file

Command

In my case, my MP4 file became 1.1MB from 16MB with this:

ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4
Enter fullscreen mode Exit fullscreen mode

Reference

How can I reduce a video's size with ffmpeg?

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay