def __init__(self, bytestream="False", profile=DefaultEncodingProfile()): self.description = "h264 encoder" self.type = "video" sbin = "x264enc bitrate=%s threads=%s byte-stream=%s" %(profile.video_bitrate, profile.encoding_threads, bytestream) VideoEncoder.__init__(self, sbin, profile)
def __init__(self, profile): self.description = "Theora encoder" self.type = "video" sbin = "theoraenc bitrate=%s keyframe-auto=False keyframe-force=%s keyframe-freq=%s" %(profile.video_bitrate, profile.keyframe_freq, profile.keyframe_freq) VideoEncoder.__init__(self, sbin, profile=profile)