How can I maximum compress video files?

58,417

Solution 1

WOW!

H264 is a high quality video codec but (as you refer), it makes "heavy" size video files.

I am not sure if your question is related to a GUI or Command Line task. But, assumming that you are using "Transmaggedon" I will write this considering the options for GUI applications.

In my case, I prefer the usage of "Mobile Media Converter" which works pretty fine in 32bit systems (both Ubuntu and MS based systems). And the creators have already released a 64 bit version nowadays.

What you wish is to make smaller size video files. Which can be done by changing the "video bit rate", which will give you the best quality, according to the video bit rate you request. In example: a 40MB video file (uncompressed, AVI) will fit in a 5MB video file (any codec) if you use a 800kbps video bit rate. But -of course- it may harm the quality.

I strongly suggest you to perform some testing using the Mobile Media Converter, which can be reached (.deb) by clicking the next link:

http://www.miksoft.net/mobileMediaConverter.htm

After installing, just drop any video files (preferably small for the test) into the drag and drop area, then open the Advanced options by clicking a small arrow that is placed at the very right of the window, below the "browse" button. "[ ... ]"

Next, click in "Advanced" and you will have all the options that you need in order to transcode your video and make small and good quality transcodification.

Remember: The higher video bit rate is, you will have better quality but the file size will become "heavier".

BTW: You can also transcode videos by using a non linear editing system, such as "Kdenlive" (http://www.kdenlive.org/) or "Openshot" (http://www.openshotvideo.com/) and many more. A non linear editing system will also be useful to edit the video (trim, crop, add text and more).

Good luck!

Here is a screenshot for you to see a few options of Mobile Media Converter in action.

enter image description here

Solution 2

[EDIT] Comments saying : As of 2017, because of new firefox extension system, this solution is not working anymore [EDIT]

The best way to compress video I found so far is Firefogg.

  • This is a firefox plugin (so it's multi-platform tool as is firefox)
  • It will compress to WebM format (open Source - Web compatible codec)
  • It offers multiple encoding sizes (really convenient to come up with best compression ratio)
  • REALLY efficient compression ratio (at least as much as H264)
  • It's super easy to use and 100% offline

enter image description here

Solution 3

My ultimate recommendation is to use HandBrak. It is cross platform, very much handy and stable. You can do anything with it (resizing, compressing,...)

or

Solution 4

From a video encoding point of view:

  1. Remove as much unwanted noise as possible trough filtering. Hobbyists wrote a lot of AviSynth filters for different kinds of material years ago. Unfortunately AviSynth is a bit difficult to setup and handle on it's target platform Windows, running Linux makes it even a bit more difficult.

    • Update: A rewrite of AviSynth that runs natively on Linux is now available named VapourSynth. Most of the filters have already been ported and improved or replaced with better alternatives.
  2. Choose a reasonable video resolution and quality level for the target device (even if there are devices with 5 inch 1080p displays out there, it's not necessary to encode with bluray settings or bluray like quality settings) or let the user decide (see YouTube).

  3. Use as less bitrate as possible (e.g. "make your videos starve bitrate") while maintaining the desired quality (modern video encoders support zones, so that you can control the bitrate and quality for manually specified scenes).

You may be asking: Is there a program that will automagically do these things for me?

Well, a program could use a certain set well defined defaults and run algorithms on the results to compute the signal to noise ratio and try to apply a lot of proven methods for the given material, but there is a certain kind of craftsmanship that a program cannot do (today). I don't know if such programs currently exist.

All in all: Video encoding can be quite difficult if you go to deep, because you want to achieve a certain result.

Some folks at video.stackexchange.com may be more of help to you with video related problem like filtering out certain artifacts.

Share:
58,417

Related videos on Youtube

JohnB
Author by

JohnB

SOreadytohelp

Updated on September 17, 2022

Comments

  • JohnB
    JohnB almost 2 years

    I received 4 .mov files from a client that they want on their mobile website via SlideShowPro. Each original file was between 200 and 400 mb. I've gotten each one down to about 30 mb using transmageddon as described here, but that's still really big for a mobile connection.

    Is there any way to shrink them even further? Maybe it's the settings; I used Output Format = MPEG4, Audio = AAC, Video = H264 (which is what is suggested by SlideShowPro.)

  • JohnB
    JohnB over 13 years
    Thanks for the very detailed answer. I'll give it a go and see if I can make it work.
  • EugeneK
    EugeneK about 11 years
    winff is just a frontend for ffmpeg - might help to say which settings/presets you used
  • Csabi Vidó
    Csabi Vidó almost 11 years
    @EmmyS Standard H.264 profiles and levels are as good as it gets for wide deployment regarding quality and compatibility. The x264 encoder that most free video programs use does a pretty good job at that. x264 also supports the so called 10-Bit mode that can further reduce bitrate at the same quality, but as with most bitrate saving features, not all decoders in various devices support them. Thus only the options to reduce resolution and/or quality remain.
  • Elder Geek
    Elder Geek over 8 years
    Adjusting the audio bitrate can also have an impact (minimal, true)
  • Fabby
    Fabby over 8 years
    This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
  • Mostafa Ahangarha
    Mostafa Ahangarha over 8 years
    You may claim it is not the desired or best answer for him. But you cannot say it is not an answer for the question. Since I use this app for getting a good compression for my videos for years.
  • Fabby
    Fabby over 8 years
    FYI: I did not downvote, but left a message informing you of a delete vote. Please read this on how to write a good answer.
  • Mostafa Ahangarha
    Mostafa Ahangarha over 8 years
    Doesn't matter to me if you downvoted or not. Thank you for sharing your comment on my answer. More thanks for the link provided. I will go through it and will try to give better answer in future. Hoping to find the answer to my question in it too.
  • reubenjohn
    reubenjohn over 7 years
    Does it work offline? Or does it require the entire video to be uploaded first?
  • Sulliwane
    Sulliwane over 7 years
    @reubenjohn 100% offline
  • Edward Torvalds
    Edward Torvalds about 7 years
    as of 2017 with newer firefox versions dont support this extension
  • Ajith R Nair
    Ajith R Nair about 7 years
    This is no longer working since Firefox moved to new extension framework.