need to make it think its a live stream, so it gets garbled

This commit is contained in:
Pedro de Oliveira 2014-07-26 14:15:24 +01:00
parent d8c94bf3eb
commit 8ed63627a4
1 changed files with 1 additions and 1 deletions

2
rtp.py
View File

@ -36,7 +36,7 @@ def parseRTMP(url,dt):
match = re.search('"file": "(.*?)","application": "(.*?)","streamer": "(.*?)"', page.read(), re.MULTILINE) match = re.search('"file": "(.*?)","application": "(.*?)","streamer": "(.*?)"', page.read(), re.MULTILINE)
if match: if match:
fn = match.group(1).split('/')[5].replace('.mp3', '.flv') fn = match.group(1).split('/')[5].replace('.mp3', '.flv')
cmd = 'rtmpdump -r "rtmp://' + match.group(3) + '/' + match.group(2) + '" -y "mp3:' + match.group(1) + '" -o "'+ dt + '.flv"' cmd = 'rtmpdump -q -v -r "rtmp://' + match.group(3) + '/' + match.group(2) + '" -y "mp3:' + match.group(1) + '" -o "'+ dt + '.flv"'
#print cmd #print cmd
if os.path.isfile(dt+'.mp3'): if os.path.isfile(dt+'.mp3'):