コード例 #1
0
 def ImportPlay(self, filepath):
     """
     Redirect input file clicked at stream_play for playback feature.
     This feature is available by context menu in drag n drop panel only.
     """
     IO_tools.stream_play(
         filepath,
         self.time_seq,
         '',  # parameters
     )
コード例 #2
0
ファイル: main_frame.py プロジェクト: jeanslack/Videomass
 def ImportPlay(self):
     """
     Redirect input file clicked at stream_play for playback feature.
     This feature is available by context menu in drag n drop panel only.
     """
     filepath = self.import_clicked
     IO_tools.stream_play(filepath, 
                          self.time_seq, 
                          self.ffplay_link, 
                          self.loglevel_type, 
                          self.OS,
                          )
コード例 #3
0
 def ImportPlay(self):
     """
     Redirect input file clicked at stream_play for playback feature.
     This feature is available by context menu in drag n drop panel only.
     """
     filepath = self.import_clicked
     IO_tools.stream_play(
         filepath,
         self.time_seq,
         self.ffplay_link,
         self.loglevel_type,
         self.OS,
     )
コード例 #4
0
ファイル: main_frame.py プロジェクト: jeanslack/Videomass
    def ExportPlay(self, event):
        """
        Playback functionality for exported files, useful for result 
        testing. The first one exported of the list will be reproduced.
        """
        if not self.post_process:
            wx.MessageBox(_("No files exported with `Start Encoding` yet"), 
                          'Videomass', wx.ICON_EXCLAMATION, self)
            return

        IO_tools.stream_play(self.post_process,
                             '', 
                             self.ffplay_link, 
                             self.loglevel_type,
                             self.OS,
                             )
コード例 #5
0
    def ExportPlay(self, event):
        """
        Playback functionality for exported files, useful for result 
        testing. The first one exported of the list will be reproduced.
        """
        if not self.post_process:
            wx.MessageBox(_("No files exported with `Start Encoding` yet"),
                          'Videomass', wx.ICON_EXCLAMATION, self)
            return

        IO_tools.stream_play(
            self.post_process,
            '',
            self.ffplay_link,
            self.loglevel_type,
            self.OS,
        )
コード例 #6
0
    def ExportPlay(self, event):
        """
        Playback with FFplay
        
        """
        with wx.FileDialog(
                self,
                "Videomass: Open a file to playback",
                defaultDir=self.file_destin,
                #wildcard="Audio source (%s)|%s" % (f, f),
                style=wx.FD_OPEN | wx.FD_FILE_MUST_EXIST) as fileDialog:

            if fileDialog.ShowModal() == wx.ID_CANCEL:
                return
            pathname = fileDialog.GetPath()

        IO_tools.stream_play(
            pathname,
            '',  # time_seq is useless for the exported file
            '',  # no others parameters are needed
        )