def __init__(self, device_id="0", filename="/tmp/test", profile=DefaultDVProfile()): filename = "%s.%s" %(filename, profile.extension) FileEncoder.__init__(self, filename) self.profile = profile self.enc = DVVideoSource(device_id=device_id, filename=filename) self.add(self.enc) self.tags = ["dv_src"] self.type = "audio-video" self.description = "DV Source File Dumper" self.sbin = self.pipeline_desc
def __init__(self, filename="/tmp/test.ogg",profile=OggDefaultRecordingProfile()): FileEncoder.__init__(self, filename) self.venc = TheoraEncoder(profile) self.aenc = VorbisEncoder(profile) self.muxer = OggMuxer() self.add_many(self.venc, self.aenc, self.muxer) self.tags = ["a_src", "v_src"] self.type = "audio-video" self.description = "Ogg to File Encoder" self.sbin = "%s muxer_tee. ! filesink location=%s" %(self.pipeline_desc, filename)