Results 1 to 24 of 24

Thread: HELP! movie compression

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member Lone_Wolf236's Avatar
    Join Date
    Aug 2009
    Location
    Canada
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HELP! movie compression

    hey all!
    over the past months, i've tried a lot of compressors but couldn't find any that was able to compress an .avi movie to an acceptable ratio for the time spent.
    i've been unable to gain more than 2% of the file size...

    i dont understand why because the codecs are supposed to work only with the frames and pixel blocks, not re-arrange bits so its uncompressable!
    why isn't my cpu working at 100% while playing a movie if its already compressed?

    or maybe the compressors out there dont have the required filters...?

    P.S.: i dont want to reencode my movies to other formats because i will loose quality. (and if i want to keep the same quality it will end up being the same size)


    Thanks a lot!!!

  2. #2
    Member
    Join Date
    Sep 2007
    Location
    Denmark
    Posts
    926
    Thanks
    58
    Thanked 116 Times in 93 Posts
    your data is already compressed witch makes it hard to compress it anymore.

    did you also think you could zip a zip file?

    depending on cpu codec yuo might find some special tools to enhance the compression on you file og maybe compress it sligtly more. but consider this a rare chance

  3. #3
    Expert
    Matt Mahoney's Avatar
    Join Date
    May 2008
    Location
    Melbourne, Florida, USA
    Posts
    3,257
    Thanks
    307
    Thanked 798 Times in 489 Posts
    All video formats (MPEG, MPEG2, H.264, etc) are already compressed so you can't compress them further (not much, anyway). It might be possible to write a specialized compressor to squeeze a bit more out, like stuffit or paq8 for JPEG or soundslimmer for MP3. But nobody has done that for video yet. It would likely be much slower than playing the video and I doubt you could squeeze out more than 30%.

  4. #4
    Member
    Join Date
    Jun 2009
    Location
    Puerto Rico
    Posts
    277
    Thanks
    164
    Thanked 64 Times in 49 Posts
    I've managed to compress videos and save at least 10MB using RZM Compression. 10MB is just 10MB of free space!

  5. #5
    Member
    Join Date
    Sep 2007
    Location
    Denmark
    Posts
    926
    Thanks
    58
    Thanked 116 Times in 93 Posts
    Quote Originally Posted by moisesmcardona View Post
    I've managed to compress videos and save at least 10MB using RZM Compression. 10MB is just 10MB of free space!
    i manage to compress a video with 7-zip and save several gigabytes.
    but the input files was in tereabytes

    measuring compression gains in bytes without giving af full size doesn't really tell anything

    if you save 10mb if a 11mb file thats impressive. but if you save 10mb of a 8gb file, then its not so impressive

  6. #6
    Member
    Join Date
    Jun 2009
    Location
    Puerto Rico
    Posts
    277
    Thanks
    164
    Thanked 64 Times in 49 Posts
    Quote Originally Posted by SvenBent View Post
    i manage to compress a video with 7-zip and save several gigabytes.
    but the input files was in tereabytes

    measuring compression gains in bytes without giving af full size doesn't really tell anything

    if you save 10mb if a 11mb file thats impressive. but if you save 10mb of a 8gb file, then its not so impressive
    I saved 10MB of really low quality Xvid Movies (from 100MB to 400MB each video of 1 hour to 3 hours).

    It seems that compressing Slideshows will save a lot of MB since I compressed a 600MB Slideshow and the result was 200MB only.

  7. #7
    Member
    Join Date
    Sep 2007
    Location
    Denmark
    Posts
    926
    Thanks
    58
    Thanked 116 Times in 93 Posts
    about the cpu usage.
    its the simple facts you don decompress AS FAST as possible but only as fast as needs to playback the video.

    a 2 hours movie its ok to decompress in only 2 hours thereby not needing to use the entire cpu for the two hours


    if you decompressed the movie you would se the cpu usage climb as the decompression now goes as fast as possible and it will be done faster then playback time.

  8. #8
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    4,131
    Thanks
    319
    Thanked 1,395 Times in 800 Posts
    > over the past months, i've tried a lot of compressors but
    > couldn't find any that was able to compress an .avi movie
    > to an acceptable ratio for the time spent.

    Yeah, obviously

    > i've been unable to gain more than 2% of the file size...

    Now, this is worse than usual

    > i dont understand why because the codecs are supposed to
    > work only with the frames and pixel blocks, not re-arrange
    > bits so its uncompressable!

    Still, all these codecs not only do the lossy media processing,
    but also apply some (inefficient, but fast) compression algorithms.

    > why isn't my cpu working at 100% while playing a movie if its already compressed?

    That's unrelated

    > or maybe the compressors out there dont have the required filters...?

    Yeah, in a way.
    The main problem is that to apply better compression we need to
    remove the existing one first - and then reapply it
    back without any loss.
    And then there're containter formats (avi in this case) and multiple video
    codecs (most of which are not open-source), and audio codecs.
    Anyway, the fashion changes much faster than one could write a working
    recompressor for a specific video format.

    > P.S.: i dont want to reencode my movies to other formats
    > because i will loose quality. (and if i want to keep the
    > same quality it will end up being the same size)

    You can try this:
    http://shelwien.googlepages.com/avip_demo_1.rar
    (its an avi parser; its output files should be more compressible
    than original file).
    Then you can additionally compress the audio track with this:
    http://soundslimmer.com/
    if its in mp3 though.

  9. #9
    Member
    Join Date
    Sep 2009
    Location
    APITRC
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Shelwien View Post
    >
    You can try this:
    http://shelwien.googlepages.com/avip_demo_1.rar
    (its an avi parser; its output files should be more compressible
    than original file).
    Then you can additionally compress the audio track with this:
    http://soundslimmer.com/
    if its in mp3 though.

    Am very much interested in putting back the splitted parts. this avip_demo does perfect withy many avi videos that I tested on, when compressed the splitted parts (.mp3 files) it produced very nice results.

    Question: Can you kindly direct how to put back these parts to an AVI file?

    Thanks

  10. #10
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    4,131
    Thanks
    319
    Thanked 1,395 Times in 800 Posts
    Just read the test.bat there.
    Code:
    @echo off
    rmdir /s /q temp
    mkdir temp
    cd temp
    ..\avi ..\Semi256.avi 
    ..\avi -d ..\Semi256.unp
    cd ..
    fc /b Semi256.unp Semi256.avi 
    rar a -m5 -mdg -s 1.rar Semi256.avi 
    rar m -m5 -mdg -s 2.rar temp
    del Semi256.unp
    Specifically, the line
    Code:
    ..\avi -d ..\Semi256.unp
    merges the 6 streams into single Semi256.unp

    (..\ paths there are due to temp subdirectory used
    to store the files)

  11. #11
    Member Fallon's Avatar
    Join Date
    May 2008
    Location
    Europe - The Netherlands
    Posts
    164
    Thanks
    15
    Thanked 12 Times in 6 Posts

    Post

    Avi is still popular in peer2peer, but it's on the way out, because .mkv is also up and coming for music videos.
    Mkv is flexible and not tied to old uncle Gates' rules. Microsoft is planning mediaplayer support for .mov files now.
    As usual they will have to be dragged to the blessing of supporting an open format.

    (edited short - because it's getting off topic)
    VLC-player has excellent .mkv support.
    http://www.videolan.org/
    Another cross platform free and open source player:
    http://www.getmiro.com/download/
    Last edited by Fallon; 1st November 2009 at 07:44.

  12. #12
    Member Vacon's Avatar
    Join Date
    May 2008
    Location
    Germany
    Posts
    523
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello everyone,

    reading 7-zip's forum, I just stumbled upon that one:
    http://ck.kolivas.org/apps/lrzip/README
    Anyone tested it? Seems as if there are no windows-binaries. Possibly it can be compiled by one of our gurus

    Best regards!

  13. #13
    Member Lone_Wolf236's Avatar
    Join Date
    Aug 2009
    Location
    Canada
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i tried the avi parser, it gave me a 500mb file and 5 others that are 0kb
    i used my test file that is 25mb

    how do you put the files back together now?

    (compressing with kgb now... 1,4%)
    (winrar gave me an archive larger by a couple Kb)

  14. #14
    Member Lone_Wolf236's Avatar
    Join Date
    Aug 2009
    Location
    Canada
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    freearc gave me a file 40kb larger than original

  15. #15
    Member
    Join Date
    Jun 2009
    Location
    Puerto Rico
    Posts
    277
    Thanks
    164
    Thanked 64 Times in 49 Posts
    try RZM.
    for simplicity, I would recommend my software, PerfectCompress, which can compress to a lot of formats. That way, you can choose which format compresses the best for you.

    http://moises-studios.110mb.com/perfectcompress

  16. #16
    Member Lone_Wolf236's Avatar
    Join Date
    Aug 2009
    Location
    Canada
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    nanozip ended 202kb smaller or 0,788% smaller not worth it...
    kgb was bigger than nanozip so i stopped it

    i guess i will have to leave them as avi...
    i dont know if its the right forum for this but...
    any good codec i could use to save space without visible loss of quality?
    it also depends of the program... any suggestion?

    thanks guys!

  17. #17
    Member Fu Siyuan's Avatar
    Join Date
    Apr 2009
    Location
    Mountain View, CA, US
    Posts
    176
    Thanks
    10
    Thanked 17 Times in 2 Posts
    You are on the right forum. But I really think there hardly be software can achieve your goals, especially for the "without loose quality".

  18. #18
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    4,131
    Thanks
    319
    Thanked 1,395 Times in 800 Posts
    unfortunately my avi parser only works with valid avi files.
    Certainly not 25m parts of avi files or something like that.
    Its purpose is to split the avi container into video, audio,
    and index streams, which are better compressed when not
    interleaved.

    As an alternative, you can use this:
    http://www.bunkus.org/videotools/mkv...icode-2.9.8.7z
    to convert your avi (but only if that was really my avi parser bug,
    and the avi is valid) to mkv format without reencoding the media streams.

    Mkv files are usually a little more compact than avi files,
    so you can expect to shrink the size of your files by a few megabytes.
    But that difference is only caused by a more compact index
    representation in mkv, so you shouldn't expect much.

Similar Threads

  1. Borat Movie
    By encode in forum Forum Archive
    Replies: 2
    Last Post: 4th May 2007, 22:31

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •