7za.exe Command Line - mx5 for *.* but mx0 for *.mp4, *.mov, etc...

Help
heyow
2013-04-03
2013-04-04
  • heyow

    heyow - 2013-04-03

    Hi,

    I always have this problem with command line version of 7zip.
    I would like to compress an entire folder recursively, but copy all video files inside the archive without any compression.

    Is there a simple way to do this ? Something with 7zip options, native.

    I tried the -xr@excludelist.txt option, but it doesn't copy the files at all.

    If there's no solution, I think I'm gonna make a script, but before that, I search a simpler way.

    Thanks in advance

    Maxime

     
  • dos386

    dos386 - 2013-04-04

    AFAIK there is no

    "select compression method based upon file extension"

    or

    "select compression method per file as indicated in a list"

    feature. While those 2 ^^^ would be imaginable, 7-ZIP IMHO should NOT offer something like

    "autodetect videos" (by extension or content)

    or

    "autodetect incompressible files" (by extension or sigi)

    . For some compression methods (Deflate, LZMA2), it will already autodetect incompressible files by content - it will try to compress them and find out that it can't :-D

     
  • heyow

    heyow - 2013-04-04

    Arf, too bad. But thanks for reply.

    That was exactly what I wanted :
    "select compression method based upon file extension"

    "it will already autodetect incompressible files by content "
    Yep, I saw that flv / mp3 where just copied, but big mp4 / mov get compressed and it takes a long long time.

    I think I'll do a batch with two passes :
    - mx5 excluding .mp4 / .mov, etc
    - mx0 add to archive only .mp4 / mov, etc...

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks