Record Clear Channel radio stations (iheartradio.com)Hi!
First, sorry for my bad English. My first language is French. I'm trying to record Clear Channel radio stations which simulcast on iheartradio.com via the RTMP protocol. First, some background. The url of their stream is updated constantly but can be found in a XML file, at URL "http://p2.STATION_NAME.ccomrcdn.com/player/player_dispatcher.html?section=radio&action=listen _live" For example, if I want to record Z100 (call letters: WHTZ-FM), the URL of the XML is "http://p2.whtz-fm.ccomrcdn.com/player/player_dispatcher.html?section=radio&action=listen _live" Then I try to record with rtmpdump with the URL given in the XML file but I have the following error: NetStream.Play.StreamNotFound If I try to listen to the stream with Applian FLV Player, it works! Could you help me? Thanks! :) |
Re: Record Clear Channel radio stations (iheartradio.com)The XML file you are linking to did not work for me, but this channel does:
_http://p2.whtz-fm.ccomrcdn.com/player/player_dispatcher.html?section=radio&action=listen _live I tried to use rtmpsuck, but strangely it does not work for that particular stream (doesn't show anything, not even with -z). Yes, iptables is properly configured. When I'm also setting the parameters Quote:
Quote:
PS: There's also a French sub-forum here. Unfortunately, with no activity so far. |
Re: Record Clear Channel radio stations (iheartradio.com)Hello,
Quote:
Quote:
Quote:
|
Re: Record Clear Channel radio stations (iheartradio.com)Thanks! Now it's working :)
|
Re: Record Clear Channel radio stations (iheartradio.com)I found all this information very helpful, I'm currently attempting to record a station from iheartradio.com and have got it all setup to download via rtmpdump (thanks to the above help)
I'm currently trying to scrape the rtmp link from the xml file that is always updated and place it in a bat file that will be executed daily at a set time (to record dave ramsey) since I hate missing his show because I'm at work.. If anyone has ideas on how to scrape the rtmp link out of the xml file and place it in a bat file I would be more than happy to know how you did it! I've tried using wget to grab the xml file but it doesn't appear to grab the file correctly. |
Re: Record Clear Channel radio stations (iheartradio.com)Anyone have any other ideas or ways on how to do this? I am trying to do the same sort of thing. I have no clue how long the RTMP link from the XML file is good for though.
Thanks! |
Re: Record Clear Channel radio stations (iheartradio.com)I'm not sure what kind of problem you have. If you have some programming skills, there shouldn't be any problem extracting URLs from XML files.
If you can't do that, you can always use GUI RTMP Flash stream recorders for Windows. And you can use rtmpsrv, rtmpsuck on Linux. |
Re: Record Clear Channel radio stations (iheartradio.com)I don't have any problems recording using RTMP Dump, it's just that clear channel seems to invalidate the link given to the XML file every so often.
So when I try to record a show in the AM, that RTMP link is invalid. I can work on creating a script or something to rip that link from the XML file, but I would need to be pointed to some resources. Any ideas on where to look to do that? |
Re: Record Clear Channel radio stations (iheartradio.com)Stream Recorder -
It actually looks like Clear Channel decided to change the way you get the RTM Link. When I try to download the XML file from _http://p2.kegl-fm.ccomrcdn.com/player/player_dispatcher.html?section=radio&action=listen _liveRemember I don't see any information in it anymore. Do you know of a program that is compatible with Clear Channel/iheartradio? |
Re: Record Clear Channel radio stations (iheartradio.com)Hey guys - I can't say much, but I just tested a program that worked BEAUTIFULLY with iheartradio - bookmark this thread, we'll have updates within a few weeks hopefully :)
|
Re: Record Clear Channel radio stations (iheartradio.com)any updates on this? I'm looking to record a live iheartradio stream at a certain time, rtmpdump cannot find a playpath.
|
Re: Record Clear Channel radio stations (iheartradio.com)I got command line recording working from a batch file using rtmpdump in Windows. Here's how I did it:
I've been wanting to record Coast To Coast AM since it comes on well after I've gone to sleep but have never been able to do it reliably. Here in Houston it comes on KTRH-AM and is also available via iheartradio, so I created a batch file that contains the following: REM Download the XML file containing the unique auth code wget "http://p2.ktrh-am.ccomrcdn.com/player/player_dispatcher.html?section=radio&action=listen _live" REM delete the existing XML file from the previous recording del ktrh-am.xml REM rename the newly-downloaded XML file from above to a usable format ren "player_dispatcher.html@section=radio&action=liste n_live" ktrh-am.xml REM Get the unique auth code from the XML file (the dots in the line below are used to get all 68 characters of the unique auth code) for /f "delims=" %%a in ('sed -n "s/.*\(auth=......................................... ...........................\).*/\1/p" ktrh-am.xml') do @set ccam=%%a REM Build the URL that will be passed to rtmpdump set ktrh="rtmp://cp20100.live.edgefcs.net/live/Hou_TX_KTRH-AM_OR@s7890?%ccam%&aifp=1234&CHANNELID=2285&CPROG= _&MARKET=HOUSTON-TX&REQUESTOR=KTRH-AM&SERVER_NAME=p2.ktrh-am.ccomrcdn.com&SITE_ID=700&STATION_ID=KTRH-AM&MNM=1&TYPEOFPLAY=0" REM Record the audio rtmpdump.exe -v -r %ktrh% -o d:\recordings\coasttocoastam.flv I had to use two Unix commands (ported to Windows): sed and wget to make everything work correctly. I noticed that each time I refreshed the XML page only the auth code changed. This allowed me to script the process using the batch commands above. This is by no means perfect but it can be run as a scheduled task and works for what I need. |
Re: Record Clear Channel radio stations (iheartradio.com)1 Attachment(s)
OK, so here's a better version of my batch file that records Coast To Coast AM on 740 KTRH here in Houston from iheartradio. You can modify the URL below to fit your own station preferences:
REM Downloads the XML file from iheartradio REM wget "http://p2.ktrh-am.ccomrcdn.com/player/player_dispatcher.html?section=radio&action=listen _live" REM REM Deletes the existing XML file del ktrh-am.xml REM REM Renames the downloaded file to the correct format ren "player_dispatcher.html@section=radio&action=liste n_live" ktrh-am.xml REM REM Gets the unique 68-character auth key from the XML file and sets it to a variable for /f "delims=" %%a in ('sed -n "s/.*\(auth=......................................... ...........................\).*/\1/p" ktrh-am.xml') do @set ccam=%%a REM REM Builds the RTMP URL that gets passed to RTMPdump later below set ktrh="rtmp://cp20100.live.edgefcs.net/live/Hou_TX_KTRH-AM_OR@s7890?%ccam%&aifp=1234&CHANNELID=2285&CPROG= _&MARKET=HOUSTON-TX&REQUESTOR=KTRH-AM&SERVER_NAME=p2.ktrh-am.ccomrcdn.com&SITE_ID=700&STATION_ID=KTRH-AM&MNM=1&TYPEOFPLAY=0" REM REM Downloads the show to an FLV file for 7200 seconds (two hours) and then stops rtmpdump.exe -v -B 7200 -r %ktrh% -o D:\MP3\CoastToCoastAM\coasttocoastam.flv REM REM Part one of the MP3 conversion process; converts the FLV file to an AAC file FLVExtractCL.exe -a -o D:\MP3\CoastToCoastAM\coasttocoastam.flv REM REM Part two of the MP3 conversion process; converts the AAC file to an MP3 file ffmpeg -y -i D:\MP3\CoastToCoastAM\coasttocoastam.aac -ar 22050 -ab 32 -map_meta_data D:\MP3\CoastToCoastAM\coasttocoastam.mp3:D:\MP3\Co astToCoastAM\coasttocoastam.aac D:\MP3\CoastToCoastAM\coasttocoastam.mp3 REM REM Deletes the leftover AAC and FLV files del D:\MP3\CoastToCoastAM\coasttocoastam.aac del D:\MP3\CoastToCoastAM\coasttocoastam.flv REM REM Builds the current date and time so the MP3 can be renamed with the unique date and time. FOR /F "TOKENS=1,2*" %%A IN ('DATE/T') DO SET DATE=%%B REM REM This changes the "/" to a "-" --- SET DATE=%DATE:/=% REM This grabs the time and sets it as a variable --- FOR /F "TOKENS=*" %%A IN ('TIME/T') DO SET TIME=%%A REM REM This removes the ":" from the time stamp variable --- SET TIME=%TIME::=% SET TIME=%TIME: =% REM REM This sets concatenates both variables --- set TODAY=%date%-%TIME% REM REM Renames the final MP3 file to an easily-recognizable format with the date appended to the filename ren "D:\MP3\CoastToCoastAM\coasttocoastam.mp3" "coasttocoastam-%TODAY%.mp3" A text copy of the batch file is also attached for convenience. Again, this method only works in Windows and is not the definitive perfect way to record iheartradio, but it works for what I need and I can schedule it to run automatically. You're all welcome to modify, improve, etc as needed. Thanks! |
Re: Record Clear Channel radio stations (iheartradio.com)I need something like this for WKSS 95.7 to record The Buzz with Randy Boyer from 12am-4am on Sundays, however it looks like some of those lines at the beginning of the file do not coincide with existing site address portions.
|
Re: Record Clear Channel radio stations (iheartradio.com)Quote:
_http://wkss-fm.akacast.akamaistream.net/7/692/19819/v1/auth.akacast.akamaistream.net/wkss-fm it looks like most of the Clear Channel stations have been solved because there is a format like this: _http://www.surfmusic.de/media/kiis-fm.m3u (KIIS-FM-102.7 Los Angeles) _http://www.surfmusic.de/media/whtz-fm.m3u (WHTZ-FM-100.3 Z100 New York) _http://www.surfmusic.de/media/kfi-am.m3u (KFI-AM-640 Los Angeles) put your station call letters in the appropriate place and run thru VLC Player and then go to "Media Information" tab and it will give you the akamai stream... ========================== for people trying to record Dave Ramsey or Coast to Coast, maybe i'm missing something but just go to StreamingRadioGuide.com or a similar site that will list the many stations that carry and stream those shows and find a station that freely gives out their URL location - for Coast to Coast there's KSFO 560 AM just off the top of my head but many more i'm sure and then use something like Tapin Radio to schedule recording...idk, maybe i'm not seeing what the problem is... |
Re: Record Clear Channel radio stations (iheartradio.com)I've been trying to use the akamai stream url to download the stream but it doesn't seem to be working. I'm not sure if I'm using it in the right format or what. Can anyone provide an example of there rtmpdump command?
|
Re: Record Clear Channel radio stations (iheartradio.com)Quote:
try Tapin Radio...recording or just listening works easy for me with that little app...i tested an Clear Channel station with the akamai stream and it worked fine... |
Re: Record Clear Channel radio stations (iheartradio.com)Code:
rtmpdump.exe -r "rtmp://cp19972.live.edgefcs.net/live/Nyo_NY_WHTZ-FM_OR@s7762?auth=daEdyaRdhaXafbkb6bCbCdhducha.brcCdp-boj8ga-4q-PL0Y7_anqEAou2KBvmCuwr&aifp=1234&CHANNELID=1469&CPROG=_&MARKET=NEWYORK-NY&REQUESTOR=WHTZ-FM&SERVER_NAME=p2.whtz-fm.ccomrcdn.com&SITE_ID=1793&STATION_ID=WHTZ-FM&MNM=2&TYPEOFPLAY=0" --live --verbose -o Test.flv Code:
RTMPDump v2.4 GIT-2011-07-11 (Compiled by KSV) |
Re: Record Clear Channel radio stations (iheartradio.com)Quote:
|
Re: Record Clear Channel radio stations (iheartradio.com)Quote:
Code:
http://www.z100.com/mediaplayer/configuration/webservices.xml Code:
<listenlive> Code:
http://p2.whtz-fm.ccomrcdn.com/player/player_dispatcher.html?section=radio&action=listen_live Code:
PlayerContent> Code:
rtmp://cp19972.live.edgefcs.net/live/Nyo_NY_WHTZ-FM_OR@s7762?auth=daEdwbOaGaLbjd_bhcLdadWbFdUdZc7axdd-botu5G-4q-NMXV2_8ouGDot3JDnmDsxs&aifp=1234&CHANNELID=1469&CPROG=_&MARKET=NEWYORK-NY&REQUESTOR=WHTZ-FM&SERVER_NAME=p2.whtz-fm.ccomrcdn.com&SITE_ID=1793&STATION_ID=WHTZ-FM&MNM=2&TYPEOFPLAY=0 |
Re: Record Clear Channel radio stations (iheartradio.com)Here's the problem with the RTMP URL in these posts (ie Coast to Coast):
The authkey in the URL is time sensitive. So you can't create a batch file, run it one day, and even run it a couple of hours later or the next day . It expires, and it won't record. There's no way I can see to get a recording beyond going to the XML file a very short while before you record, editing the batch file and then running it as you go to sleep or step out of the room. You can't feed the RTMP url to Replay Media's Scheduler either. The only thing you can do is have the scheduler load the iheartradio page via the Scheduler and record (and tell it to stop recording after a certain amount of minutes). It'll open Firefox or Chrome or whatever. You can create a batch file that takes the file Replay gives, loads FLVExtractCL, converts the FLV to AAC, then convert it to MP3 via ffmpeg. |
Re: Record Clear Channel radio stations (iheartradio.com)Was there some new change to the parameters needed for rtmpdump? Going to the xml page and using the primary_location URL no longer works as of last night.
Example command: Code:
$ rtmpdump -r "rtmp://cp19783.live.edgefcs.net/live/Sac_CA_KSTE-AM_OR@s7939?autha7dEcmanabb0bwb.d2ahaEb3-bpsOlj-4q-NM4X2_1nuGApo1FAokxsyq&aifp=1234&CHANNELID=229&CPROG=_&MARKET=SACRAMENTO-CA&REQUESTOR=KSTE-AM&SERVER_NAME=p2.kste-am.ccomrcdn.com&SITE_ID=691&STATION_ID=KSTE-AM&MNM=1&TYPEOFPLAY=0" -v | mplayer - Code:
Playing -. |
Re: Record Clear Channel radio stations (iheartradio.com)example
Code:
>rtmpdump |
Re: Record Clear Channel radio stations (iheartradio.com)Hmm... Your example doesn't work for me, probably because of an expired ID. However, where on the XML page are you obtaining the parameters after the ...TYPEOFPLAY=0 in the primary_location line?? I don't see a terminalid or uid, etc.. Thanks.
|
Re: Record Clear Channel radio stations (iheartradio.com)only auth parameter is important. in your posted command line it's
Code:
?autha7dEcmanabb0bwb.d2ahaEb3-bpsOlj-4q-NM4X2_1nuGApo1FAokxsyq&aifp=1234 Code:
?auth=a7dEcmanabb0bwb.d2ahaEb3-bpsOlj-4q-NM4X2_1nuGApo1FAokxsyq&aifp=1234 |
Re: Record Clear Channel radio stations (iheartradio.com)That must have been a paste error, because I'm definitely testing it with the equal sign and it still doesn't work. None of the stations that normally work are working for me anymore so I know it's a global issue. Maybe someone can try some of these specific stations and see what you can come up with?
kste-am kisq-fm kksf-fm kfbk-am Thanks. |
Re: Record Clear Channel radio stations (iheartradio.com)KSTE-AM
Code:
rtmpdump -r |
Re: Record Clear Channel radio stations (iheartradio.com)I guess the next question is how are you figuring out that rtmp URL? My method would be to go to:
Code:
http://p2.kste-am.ccomrcdn.com/player/player_dispatcher.html?section=radio&action=listen_live |
Re: Record Clear Channel radio stations (iheartradio.com) |
Re: Record Clear Channel radio stations (iheartradio.com)Ok, I figured out what happened. My rtmpdump 2.4 was compiled using some old libraries and then I upgraded this box but kept using that binary. I figured it out by using rtmpdump 2.3 via my distro's package manager. Sorry for the bother.
|
Re: Record Clear Channel radio stations (iheartradio.com)Hi guys,
I'm facing an interesting problem here... If I use rtmpdump with the -o switch, its all OK. I've done a "quick" test, I ended up with over 11 hours of recorded stuff in an FLV file over 300 MB. Playable with VLC. HOWEVER using piping to VLC something nasty happens. At first.. it just won't work.. VLC shows up but seem to do nothing.. If I press stop then play again.. it DOES recognise (sometimes) that it shall deal with a stream from fd://0, on the statistics page it displays the average ibtrate, etc... on the codec info page it says the stream has an MP4A stuff in there with an AAC codec... but still, no sound at all. Lists up 6,10,12,16, sometimes even 32 audio tracks, all of them seems dumb upon selection. Checking the debug messages it seems VLC has a problem on guessing what kinda codec to use.. I think it falls back to something thta is just not appropriate for decoding the stream. Having a REALLY old cellphone I really need to re-stream iHeart to it in a proper format. And I need VLC for that. So.. please help me! Thanks |
Re: Record Clear Channel radio stations (iheartradio.com)Quote:
|
All times are GMT -6. The time now is 05:56 AM. |