Friday, August 14, 2015

RAR files into a multivolume set

Trick source

To compress a big video file, movie.avi and split it into multiple files, each size up to 12MB,

$  rar a -m5 -v12m myarchive.rar movie.avi

if it is a directory:

$  rar a -m5 -v12m myarchive.rar dir/*

A list of files (myarchive.part1.rar, myarchive.part2.rar, ..) will be created in current directory. You may change the compression quality, -m5 is the best and the slowest, while -m0 do no compression at all (-m3 is default). Use -v4480m in order to get 4Gb chuncks (to put in a whole DVD each one)

No comments: