View Single Post
  #1  
Old 01-22-2015, 10:17 PM
gaaara gaaara is offline
Member
 
Join Date: Nov 2013
Posts: 63
gaaara is on a distinguished road
Default

Question rtmpdump on python works on bash not works on python ...


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
Code:
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)
Code:
    # /!\ 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
Reply With Quote