Beispiel #1
0
 def __init__(self, parent, subList):
     super(cSubCheckerDialog, self).__init__()
     self.parent = parent
     self.set_title('Checking Subtitles')
     self.set_modal(True)
     self.set_transient_for(parent)
     self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
     self.set_size_request(400, -1)
     self.progressBar = cProgressBar()
     self.add(self.progressBar)
     self.subChecker = cSubChecker()
     self.subList = subList
     self.set_resizable(False)
     self.show_all()
     window = self.get_window()
     if window:
         window.set_functions(0)
Beispiel #2
0
 def __init__(self, parent, filename, new_filename):
     super(cRecodeDialog, self).__init__()
     self.parent = parent
     self.set_title("Generating a fixed b-frame video")
     self.set_modal(True)
     self.set_transient_for(parent)
     self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
     self.set_size_request(400, -1)
     self.progressBar = cProgressBar()
     self.add(self.progressBar)
     self.set_resizable(False)
     self.show_all()
     window = self.get_window()
     if window:
         window.set_functions(0)
     self.new_filename = new_filename.decode('utf-8')
     self.filename = filename.decode('utf-8')
     self.ffmpeg = cffmpeg('ffmpeg -y -fflags +genpts -i "' + self.filename + '" -c:a aac -strict -2 -c:v copy "' + self.new_filename + '"')
     self.ffmpeg.connect('progress', self.ffmpeg_progress)
     self.result = False
 def __init__(self, parent, video_file, audio_file, video_duration, audio_rate):
     super(cWaveformGenerationDialog, self).__init__()
     self.parent = parent
     self.set_title("Waveform Generation Progress")
     self.set_modal(True)
     self.set_transient_for(parent)
     self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
     self.set_size_request(400, -1)
     self.videoFile = video_file.decode('utf-8')
     self.audioFile = audio_file.decode('utf-8')
     self.videoDuration = video_duration
     self.audioRate = audio_rate
     self.progressBar = cProgressBar()
     self.add(self.progressBar)
     self.set_resizable(False)
     self.show_all()
     window = self.get_window()
     if window:
         window.set_functions(0)
     self.ffmpeg = cffmpeg('ffmpeg -y -i "' + self.videoFile + '" -vn -ar ' + str(self.audioRate) + ' -ac 1 -c:a pcm_u8 "' + self.audioFile + '.wav"')
     self.ffmpeg.connect('progress', self.ffmpeg_progress)