def cmdline(self, out=None): cmd = CommandLine("rtmpdump") for key, value in self.params.items(): if key == "live": if value == 1: cmd.args[key] = True cmd.args[key] = value if out: cmd.args["flv"] = out return cmd
def stream_cmdline(self, stream, filename): cmd = CommandLine("rtmpdump") cmd.arg("rtmp", ("{0}/{1}").format(stream["base"], stream["playpath"])) cmd.arg("live", True) cmd.arg("flv", filename) return cmd.format()
def stream_cmdline(self, stream, filename): cmd = CommandLine("rtmpdump") cmd.arg("rtmp", ("{0}/{1}").format(stream["rtmp"], stream["playpath"])) cmd.arg("swfUrl", self.SWFURL) cmd.arg("pageUrl", stream["url"]) cmd.arg("live", True) cmd.arg("flv", filename) return cmd.format()
def stream_cmdline(self, stream, filename): swfhash, swfsize = swfverify(self.SWFURL) cmd = CommandLine("rtmpdump") cmd.arg("rtmp", ("{0}/{1}").format(stream["connect"], stream["play"])) cmd.arg("swfUrl", self.SWFURL) cmd.arg("swfhash", swfhash) cmd.arg("swfsize", swfsize) cmd.arg("live", True) cmd.arg("flv", filename) if "token" in stream: cmd.arg("jtv", stream["token"]) return cmd.format()