Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 02-25-2012, 03:54 AM
zvhotboxru zvhotboxru is offline
Junior Member
 
Join Date: Jan 2012
Posts: 2
zvhotboxru is on a distinguished road
Default

samurai.fm script & new option request


I wrote a small bash script to automate downloading from samurai.fm:

Code:
#!/bin/bash 
#ver.6
Error() { read -p "Press enter to continue"; }
# -----uncomment following strings for first run:
#sudo add-apt-repository ppa:jon-hedgerows/get-iplayer
#sudo apt-get update
#sudo apt-get install rtmpdump
#sudo apt-get install ffmpeg libavcodec-extra-53

mkdir -p ~/Music/SamuraiFM
cd ~/Music/SamuraiFM/
link="link not captured!"
sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT || Error
echo refresh browser and press PLAY then press here "q" and hit ENTER
link=`sudo rtmpsrv | grep rtmpdump -r `  || Error
fname=`echo $link | sed 's/.*-o //' |  sed 's/.flv//'`
sudo echo $link | sed 's/-o.*/--live -o - | ffmpeg -i - -vn -y -ab 320 "SFM_'$fname'.mp3"/' > samurai_link.sh  || Error
sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT  || Error

sudo bash samurai_link.sh || Error
rm -f $fname.flv
U start script, refresh samurai.fm page, hit play & pause on desired track, back to terminal, hit Q and Enter. Download starts.

As i need to make some changes to link & to make it fully automatic (to skip mess with Q and Enter) it would be great to have an option for rtmpsrv just to output download link and exit quietly, without autostart of rtmpdump.

Anyway it's a great tool, thanks.
Reply With Quote
  #2  
Old 02-26-2012, 04:28 AM
malikron7 malikron7 is offline
Junior Member
 
Join Date: Feb 2012
Posts: 9
malikron7 is on a distinguished road
Default

Re: samurai.fm script & new option request


hi is there a script for www.aljazeerasport.tv ?
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 01:37 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons