class Profile(object):
def __init__(self, CommandClass, **kwargs):
+ self.extra = []
+
self.CommandClass = CommandClass
self.__dict__.update(kwargs)
+ def __contains__(self, keyname):
+ return hasattr(self, keyname)
profiles = {
"qt7" :
acodec="faac",
aopts="br=%(abitrate)d:mpeg=4:object=2",
),
+ "ipod264" :
+ Profile(
+ CommandClass=MencoderCommand,
+ vcodec="x264",
+ vopts="bitrate=%(vbitrate)d:me=umh:threads=auto:partitions=all:trellis=1:subq=7:bframes=1:direct_pred=auto",
+ acodec="faac",
+ aopts="br=%(abitrate)d:mpeg=4:object=2",# "-channels", "2", "-srate", "48000",
+ ),
}