Trying to compress some media files


Garrett

Advanced Member
Joined
Aug 24, 2011
Messages
1,255
Location
Workington, Cumbria, UK
Don't know if it makes any difference but they are all .mp4's of around 300mb.. I'm most probably missing something really obvious, but just assumed I could archive them with Winrar/best compression method but that just results in a .rar of exactly the same size as does sending to a compressed zipped folder.

Am doing something wrong or do I need a specific utility for this..?

Thanks.
 
Are you trying to compress them for storage...or for actual play with a media player on Pandy?

It might be well to know this...and if so, which media player you want to use them on.

Then we would be able to know what audio formats work on what players...and how to better help you.

I am pretty sure that a .rar file isn't going to work with a media player.  although .rar is fine if what you want to do is store them.

I think THIS...may be what you're after...

http://www.freemake.com/free_video_converter/

This will convert into other formats which may be more compact...and will still play on whatever media player you choose to use...as long as the player supports whatever file format you finish at.  It can convert into .avi .flv, and many other formats.
 
Last edited by a moderator:
Bear in mind that media files like mp4, mp3 etc are already compressed file formats - so there will be limited scope for compressing them further without any loss. As Kumaki says, if you just want them to be smaller files and don't care about a drop in quality, you could re-encode them, selecting a lower bitrate/resolution/file size, but 'archiving' compression like zip or rar will find there simply isn't anything much left to compress in these files.
 
EDIT: Ninja'd by Asmo!

Don't know if it makes any difference but they are all .mp4's of around 300mb.. I'm most probably missing something really obvious, but just assumed I could archive them with Winrar/best compression method but that just results in a .rar of exactly the same size as does sending to a compressed zipped folder.

Am doing something wrong or do I need a specific utility for this..?

Thanks.
MP4s are already compressed, thus there is little a lossless compression algorithm like those employed by Zip can remove to reduce the size. To make them smaller you need to re-encode the MP4 files at a lower quality (i.e. more compressed as MP4 is a lossy compression algorithm that throws data away to make the file smaller).
A quick example:

If my data is as below, where each piece of data is a number (which I have separated by a space:

214 0 26 54 17 99 0 0 0 0 112 88 37 0 0 0 0 0 0 0 59 62 173 225

Then I can losslessly compress that by writing out in my compressed file:

214 0_1 26 54 17 99 0_4 112 88 37 0_7 59 62 173 225

What I've done here is replace consecutive zeros with token that represents a zero (the '0_') followed by the number of zeros that it replaces, which is 4 in the first case, and 7 in the second. This enables me to replace those symbols when I decompress it. I reduced the amount of data I wrote to the file by 9 zeros. Although there were 12 zeros I had to write out the three symbols in order to be able to recover them later.

In the case of a lossy compression (where we've decided zeros are not needed for the fidelity we require and we can throw them away permanently), I write out:

214 26 54 17 99 112 88 37 59 62 173 225

Which saves us the full 12 zeros, which is an improvement over the lossless compression of a saving of 9 zeros, but has reduced the fidelity (quality) of the data.

Hope this helps, apologies if I'm teaching you to suck eggs!
 
Last edited by a moderator:
Stick 'em on a file sharing site (whatever the alternative to megaupload might be these days) and link to them?
 
In my youth I tried zipping a zipped zip file. Infinite storage was my thinking! Eventually the file started getting a few bytes larger with each iteration as headers were stacked upon headers that just wouldn't compress further. I learned a lot about computers by doing very stupid things between the ages of 8 and 12. I learn a lot about computers by doing very stupid things NOW. ;)

edit: except this time I keep backups, so I guess less stupid things. :p
 
Last edited by a moderator:
Back
Top