How do I compress my video without compromising it too much

1

1

Alright, i'm down to crunch time. I have a video that I have rendered out for something I have to turn in. The submission requires that it be At Most: 200 MB and be one of the following formats:

  • .avi
  • .dv
  • .mov
  • .qt
  • .mp4
  • .mpeg
  • .3pg
  • .asf
  • .wmv
  • .mpg

It's my goal (as is many peoples goal) to preserve as much quality as possible. The problem is, my video is currently 721.99707 MB! Out of the formats, which are the best for me to try? What other methods can I apply to shrink the file size while still trying to keep as much as possible of the original quality.

I'm sure I'll have to use something lossy (as much as I would prefer not). I'm just looking for a best solution, not a God solution if you know what I mean.

Thanks so much!

EDIT

Sorry, a commenter pointed out some good questions.

  • Current Format: .mov
  • Current Bit Rate: 1135kbps
  • Current Framerate: 30fps
  • Current Resolution: 720 x 480
  • Length: 3 Minutes, 22 Seconds

I would prefer that the resolution not go down any more. It will be viewed in a box about the size of its current resolution, however, if it is necessary, then I will shrink it...

Freesnöw

Posted 2012-04-13T07:06:24.167

Reputation: 836

What format and codec is the 722MB file? Is it currently in a lossless format or has it already been lossily compressed? What's the resolution, framerate, A/V bitrate? What are the output requirements? Can you reduce the resolution or does it have to be in its current resolution? – Lèse majesté – 2012-04-13T07:13:48.677

@Lèsemajesté Touche - I've edited my post with the new details. – Freesnöw – 2012-04-13T07:19:51.327

How long is that video? – Daniel Beck – 2012-04-13T07:39:01.177

@DanielBeck 3 Minutes, 22 Seconds. – Freesnöw – 2012-04-13T07:40:51.907

That's 3.5MB per second. Are you really sure about those numbers? Also, this might be relevant reading (slhck isn't just incredibly helpful, but also studies this stuff — you might find him in the Root Access chat room).

– Daniel Beck – 2012-04-13T08:15:54.290

@DanielBeck Yes, they are correct. – Freesnöw – 2012-04-13T08:17:25.500

I assume by .avi, it means some sort of divx codec. Try that. – Pygar – 2012-04-13T07:15:08.727

I'll come back to you later once I have access to my computer, but basically the answers below are correct. It's a matter of using the correct encoding settings. What's your OS? – slhck – 2012-04-13T09:51:47.077

1Yep, AVC is a good video codec, though you should have no problem compressing your video into the desired range using almost any modern codec without sacrificing much quality. I've seen 1280x688 video files compressed down to an overall bitrate of 626 Kbps, which is only 0.0764 MB/s. That was using AVC & AAC. If you achieved the same compression ratio, your video would only be about 5.84 MB. Tack on a 96 Kbps audio stream, and you'd just barely top 8.2MB. – Lèse majesté – 2012-04-13T10:18:39.033

Answers

4

The formats listed there are simply containers, they have nothing to do with the size of the encoded video.

A container needs to contain video that has been encoded with some kind of codec (and it can then be muxed with audio as well, and maybe some subtitles for good measure depending on the container).

In your case however I would suggest looking at using H264 as your codec inside the mp4 container. H264 (and to some extent MPEG 4 Visual as well) has a very good reputation for retaining video quality even at low bitrates.

The most famous encoder for H264 is x264, which is included in many video encoding applications such as Handbrake, SUPER or even FFmpeg. When you set the quality, don't go for "average bitrate" (since x264 performs poorly there), but rather change the "constant rate factor" setting to get the desired file size.

Turix

Posted 2012-04-13T07:06:24.167

Reputation: 691

1

Good advice! I just added some more practical info about what tools exist. I wrote about that on the Super User Blog. See also: What parameters should I be looking at to reduce the size of a .MOV file?

– slhck – 2012-04-13T13:53:42.320

3

I would recommend you try to use the video transcoder Handbrake as it is a very good video encoder, and what internet sources I can find state that it is capable of taking in .mov files. It is also an excellent piece of freeware.

Hand brake has a good series of presents and you can play around with settings to get the filesize right with as little loss of quality as possible.

As Turix mentioned h264 is currently the "standard" compression algorithm used and achieves high compression with very good quality video output.

Hand brake can be set to output h264 in an mp4 file so you should be able to use it to do what you are after.

Mokubai

Posted 2012-04-13T07:06:24.167

Reputation: 64 434