Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 3
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
Exemplo n.º 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
Exemplo n.º 5
0
    def is_usable(cls, session):
        cmd = session.options.get("rtmp-rtmpdump")

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

        return which(cmd) is not None