I am using a video editing software to edit my videos for YouTube. The scenario is as below:

Input file size: 80mb.
Input type: webm.

My expectation after editing :

Video size: around 100mb. (Any format can do)

I have a wide range of options to select for the video output (Such as video output type, codec, quality, etc). Currently I am outputting in mp4 format with some other options selected. However, I am getting a very bulky file of 600mb in the output.

I want to know what output options (format, codec, quality etc.) can I select so that the output I get is smaller in size. (I can compromise with the video quality to some extent).

I can give more info if asked.

Thanks in advance.

  • You might want to mention what software you're using. – stib Aug 18 at 12:39
  • @stib I am using OpenShot Video Editor – Praneet Dixit Aug 18 at 19:17

Webm and mp4 are container formats. Those itself don't have any relevant influence on the file size.

The codec with a set bitrate determines the filesize. For YouTube uploads, follow the current recommendations and you'll see, you should use h264 as video codec.

First, make sure the export has the same resolution and frame rate as the input, unless you intend to change it anyway. If that's fine, my guess is that the bitrate was set too high. The above mentioned recommendations for YouTube show you how high the bitrate needs to be to get excellent quality. However, if your source material is far below that, you should use a bitrate that's closer to its quality.

To calculate a suitable bitrate in advance is difficult, when the codec of the source is different from the codec of the export. It's good to have a higher bitrate than strictly necessary because YouTube will re-encode the video anyway. Chained re-encodings with lossy codecs will reduce quality further and should be generally avoided, but in this case you cannot do anything against that.

WebM uses VP8 or VP9, both need slightly higher bitrates to achieve the same quality as h264. This means as a rough estimate, set your maximum target bitrate to something like 90% of the bitrate of the source material. Make sure it's a variable bitrate, not a constant bitrate, because the variable bitrate is almost always the better choice for quality. Then you should get a file size roughly the same as the source video.

And then there's audio. It makes up a smaller percentage of the filesize. However you should check that your editor is not accidentally using much higher bitrates for audio as the source.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.