Skip to content

Instantly share code, notes, and snippets.

@lukehedger
Last active September 28, 2023 09:09
Star You must be signed in to star a gist
Embed
What would you like to do?
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@clairechen7
Copy link

Commands using Linux with ffmpeg to shrinking big MP4 video file to smaller sizes

  • ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 out.mp4
    • 3.6 Gb to 556 Mb, great quality 🥇
  • ffmpeg -i input.mp4 -s 1280x720 -acodec copy -y output.mp4
    • 3.6 Gb to 62 Mb, quality "good enough"/acceptable 👍
  • ffmpeg -i input.mp4 -vcodec h264 -b:v 1000k -acodec mp3 output.mp4
    • 3.6 Gb to 30 Mb, very shitty quality 💩

Thanks for sharing, really helpful!

@AD5GB
Copy link

AD5GB commented Jun 20, 2023

None of these have done anything, but give me a 30-35% INCREASE in size. I'm still determined to find a solution but attempts to compress this video by ANY means results in similar results.....

@cabiste69
Copy link

@AD5GB as i said before here, it depends on what video you have, so you need to experiment a bit

@Sothinkmedia
Copy link

A DCV file is a special encrypted format used by the video-sharing site and download service provided by DMM.com.

This file format aims to address issues such as copyright protection and illegal uploading. Additionally, DCV files offer high-quality images and sound, resolving problems like choppiness, image degradation, and sound loss during streaming playback.

However, DCV files cannot be played using anything other than dedicated players or download software; thus, they need to be converted to the MP4 format.

Converting DMM video DCV files to MP4 requires the use of dedicated software, many of which are available free of charge.

In this article, we will guide you on how to convert DMM video DCV files to MP4.
https://sothinkmedia.com/ja/convert-dmm-dcv-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment