Skip to content

Instantly share code, notes, and snippets.

@mungi
Created May 14, 2019 15:55
Show Gist options
  • Save mungi/787e41bfe8b96b20e59ee16df75af760 to your computer and use it in GitHub Desktop.
Save mungi/787e41bfe8b96b20e59ee16df75af760 to your computer and use it in GitHub Desktop.
download some series using rtmpdump
import subprocess
def down_flv():
for i in range(1, 17):
for j in range(2, 7):
filename = "{:02d}_{:02d}".format(i, j)
url = "rtmpdump -i rtmp://rtmp.domain.com:9080/LMS-APP/INST01/service/1005922/FLV/{} -o {}.flv".format(filename, filename)
print(url)
subprocess.call(url, shell=True)
print("Done {}".format(filename))
if __name__ == "__main__":
down_flv()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment