Esempio n. 1
0
    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
Esempio n. 2
0
    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()
Esempio n. 3
0
    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()
Esempio n. 4
0
    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()