PDA

View Full Version : Question rtmpdump on python works on bash not works on python ...


gaaara
01-22-2015, 10:17 PM
Hello

i test rtmpdump on shell script it works no probleme an i try to intégrate this on python and i test = not works
i need help to get and solve the probleme

bash shell line =works
rtmpdump -v -T 'token' -r "$link1" -a "vod" -f "WIN 13,0,0,182" -W "http://website.com/components/com_vodvideo/mediaplayer/player-licensed.swf" -p "http://website.com" -y "mp4:$link2" -o "$namevid.mp4"

python line = not works (freezing)

# /!\ note: need to use os.chdir first to get to the folder with rtmpdump!
command = './module/rtmpdump -v -T "token" -r "' + vodlinks + '" -a "vod" -f "WIN 13,0,0,182" -W "http://website.com/components/com_vodvideo/mediaplayer/player-licensed.swf" -p "http://website.com" -y "mp4:' + url + '" -o "test.mp4"'
split_command = shlex.split(command)
subprocess.call(split_command)



ty in advence