Exemplo n.º 1
0
    def _check_video_samplerate(self):
        video1 = VideoFile(unicode(self.cmbRenderedVideo.itemText(self.cmbRenderedVideo.currentIndex())))
        video2 = VideoFile(unicode(self.cmbSlideVideo.itemText(self.cmbSlideVideo.currentIndex())))

        if video1.get_info().audio_samplerate != video2.get_info().audio_samplerate:
            msgbox = QMessageBox(QMessageBox.Critical, "Bad videos", "Audio samplerate must be the same for both videos!")
            msgbox.setDetailedText("Sample rate of audio tracks in both video has to be the same, e.g. 48000Hz for both.")
            msgbox.exec_()
            return False

        return True