View Single Post
  #30  
Old 05-15-2012, 08:57 PM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: Failed to download file from rtmp link


I dont know why this works, but it does. Happy hunting.

Code:
#!/bin/sh
host_file='C:\Windows\System32\drivers\etc\hosts'
echo '127.0.0.1 media.hocmai.vn' > $host_file

# Start monitoring
cat <<EOF
Press enter to start RtmpSrv, then start video.
After capture, press "q, enter" to quit.
EOF
read
rtmpsrv > capture.sh

# Restore hosts file
echo > $host_file

# Run RtmpDump
dos2unix capture.sh
./capture.sh
Reply With Quote