Patent ID: 8370404

Claim:
A method, comprising: determining, by at least one computing device including at least one processor, an unused amount of a target set size for a set of media files; computing a target size range for a media file of the set of media files based at least on the determined unused amount of the target set size of the set of media files and a measure of complexity of the media file; computing a compression quality for the media file based at least on the computed target size range; reducing the determined unused amount of the target set size by a size computed for the media file, wherein the computed size is based on the computed compression quality for the media file; and repeating, by the employed at least one processor, the acts of determining the unused amount, computing the target size range, computing the compression quality, and reducing the unused amount for each of other media files in the set of media files for which compression quality has not been computed.