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)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more