Exemple #1
0
 def command(cls, session):
     command = []
     if session.options.get("ffmpeg-ffmpeg"):
         command.append(session.options.get("ffmpeg-ffmpeg"))
     for cmd in command or cls.__commands__:
         if which(cmd):
             return cmd
Exemple #2
0
 def command(cls, session):
     command = []
     if session.options.get("ffmpeg-ffmpeg"):
         command.append(session.options.get("ffmpeg-ffmpeg"))
     for cmd in command or cls.__commands__:
         if which(cmd):
             return cmd
    def _check_cmd(self):
        if not self.cmd:
            raise StreamError("`cmd' attribute not set")

        cmd = which(self.cmd)

        if not cmd:
            raise StreamError("Unable to find `{0}' command".format(self.cmd))

        return cmd
Exemple #4
0
    def _check_cmd(self):
        if not self.cmd:
            raise StreamError("`cmd' attribute not set")

        cmd = which(self.cmd)

        if not cmd:
            raise StreamError("Unable to find `{0}' command".format(self.cmd))

        return cmd
Exemple #5
0
    def is_usable(cls, session):
        cmd = session.options.get("rtmp-rtmpdump")

        return which(cmd) is not None
Exemple #6
0
    def is_usable(cls, session):
        cmd = session.options.get("rtmp-rtmpdump")

        return which(cmd) is not None