Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "svtplay-ripper 0.0.4"
- read -p 'URL: ' lonk
- read -p 'Output filename: ' fout
- echo 'Format'
- echo '1. - FLV'
- echo '2. - AVI'
- read -p "Select(1/2):" format
- foo=`wget -qO- $lonk | egrep -o 'rtmp[^,]*\.mp4+' | sort -ur | head -n 1`
- kul=`echo ${foo} | egrep -o 'rtmp[^,]*\.mp4+' | sort -ur | head -n 1`
- if [ "$kul" = "" ]
- then
- echo "Sorry no URL found\n"
- else
- rtmpdump --hashes -r $kul -o "${fout}"'.flv'
- fi
- if [ "$format" -eq 1 ]
- then
- clear
- echo "Done!"
- fi
- if [ "$format" -eq 2 ]
- then
- ffmpeg -y -i "${fout}"'.flv' -vcodec msmpeg4 -b 400k -acodec libmp3lame -ar 44100 "${fout}"'.avi'
- rm "${fout}"'.flv'
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement