Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Audio stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=5)
-   -  

Record Clear Channel radio stations (iheartradio.com)

(http://stream-recorder.com/forum/showthread.php?t=6306)

confusedrecorder 12-19-2011 03:08 AM

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.

mocha 02-26-2012 12:05 PM

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 -
Resulting output:

Code:

Playing -.
Reading from stdin...
INFO: Connected...
ERROR: Closing connection: NetStream.Play.StreamNotFound


chap 02-26-2012 11:52 PM

Re: Record Clear Channel radio stations (iheartradio.com)


 
example
Code:

>rtmpdump
-r "rtmpt://cp19974.live.edgefcs.net:80/live/Nyo_NY_WLTW-FM_OR@s7738?auth=daEcGb
6bOdtapakbEdKcYbYamcDaudycZdN-bpsYdR-4q-NM5W0_anqDAom4ICnkvryr&aifp=1234&CHANNEL
ID=1477&CPROG=SIMULCAST&MARKET=NEWYORK-NY&REQUESTOR=WLTW-FM&SERVER_NAME=service.
ccrd.clearchannel.com&SITE_ID=1873&STATION_ID=WLTW-FM&MNM=2&TYPEOFPLAY=0&termina
lid=152&uid=1330323781234&init_id=8169&profileid=0&fb_broadcast=1&at=0&pname=Org
anicWeb&campid=&cid=&keyid=" | C:\PROGRA~1\VideoLAN\VLC\vlc.exe -
RTMPDump v2.4 GIT-2011-12-22 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  audiodatarate        64.00
INFO:  audiosamplerate      44100.00
INFO:  audiocodecid          10.00
INFO:  canSeekToEnd          FALSE
INFO:  audiodevice          Orban Optimod 1100 (224001016)
INFO:  metadatacreator      Orban Opticodec-PC PE 3.7.90 (os=Windows NT 5.1 Se
rvice Pack 3)
INFO:  description          Hi-Fi Internet Audio Stream
INFO:  name                  106.7 Lite FM - WLTW-FM
INFO:  website              http://www.wltw.com
INFO:  creationdate          Saturday, February 18, 2012 07:30:52 UTC
INFO:  artist                John Mayer
INFO:  title                Waiting On The World To Change
INFO:  url                  song_spot="M" MediaBaseId="1454803" itunesTrackId=
"278355839" amgTrackId="T 13994977" amgArtistId="0" TAID="16227" TPID="2018875"
cartcutId="0261411001" amgArtworkURL="/us/r1000/050/Music/40/51/07/mzi.rwtgmxrh.
170x170-75.jpg" length="00:03:20" unsID="224
552.416 kB / 67.48 sec


mocha 02-27-2012 01:52 AM

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.

KSV 02-27-2012 02:32 AM

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
while it should be
Code:

?auth=a7dEcmanabb0bwb.d2ahaEb3-bpsOlj-4q-NM4X2_1nuGApo1FAokxsyq&aifp=1234

mocha 02-27-2012 07:16 AM

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.

chap 02-27-2012 10:18 AM

Re: Record Clear Channel radio stations (iheartradio.com)


 
KSTE-AM
Code:

rtmpdump -r
"rtmp://cp19783.live.edgefcs.net:443/live/Sac_CA_KSTE-AM_OR@s7939?auth=daEbtdWbL
dQc7dHcjdCcccFcrcmd_brd5b9-bps7Mu-4q-UO5W7_3puGDpv4KCplwtDr&aifp=1234&CHANNELID=
229&CPROG=SIMULCAST&MARKET=SACRAMENTO-CA&REQUESTOR=KSTE-AM&SERVER_NAME=service.c
crd.clearchannel.com&SITE_ID=691&STATION_ID=KSTE-AM&MNM=1&TYPEOFPLAY=0&terminali
d=152&uid=1330360332484&init_id=8169&profileid=0&fb_broadcast=1&at=0&pname=691&c
ampid=home&cid=&keyid=" | "C:\PROGRA~1\MPlayer\mplayer2.exe" -
RTMPDump v2.4 GIT-2011-12-22 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
MPlayer2 2.0 (C) 2000-2011 MPlayer Team
parse error at line 876

Playing -.
Reading from stdin...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  audiodatarate        40.00
INFO:  audiosamplerate      32000.00
INFO:  audiocodecid          10.00
INFO:  canSeekToEnd          FALSE
INFO:  audiodevice          Orban Optimod 1101 1 31060112
INFO:  metadatacreator      Orban Opticodec-PC PE 3.7.90 (os=Windows NT 5.1 Se
rvice Pack 3)
INFO:  description          Hi-Fi Internet Audio Stream
INFO:  name                  KSTE-AM Flash
INFO:  website              http://www.kste.com
INFO:  creationdate          Saturday, February 18, 2012 11:17:15 UTC
INFO:  artist                TURI - 022312 EXCEPTIONS 3
INFO:  title                TURI - 022312 EXCEPTIONS 3
INFO:  url                  song_spot="O" MediaBaseId="0" itunesTrackId="0" am
gTrackId="0" amgArtistId="0" TAID="0" TPID="0" cartcutId="0132050004" amgArtwork
URL="" length="00:01:01" unsID="0"
2.346 kB / 0.25 secDetected file format: FLV format (libavformat)
31.954 kB / 6.00 sec[flv @ 00d84c78]max_analyze_duration reached
[flv @ 00d84c78]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: audio (aac), -aid 0
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 32000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->128000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [dsound] 32000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
33.936 kB / 6.38 secA:  0.2 (00.2) of 0.0 (unknown)  0.3%
35.243 kB / 6.64 secA:  0.5 (00.5) of 0.0 (unknown)  0.3%
37.239 kB / 7.01 secA:  0.9 (00.8) of 0.0 (unknown)  0.2%
39.308 kB / 7.41 secA:  1.2 (01.2) of 0.0 (unknown)  0.2%
62.943 kB / 12.00 secA:  5.8 (05.8) of 0.0 (unknown) 12.7%
64.870 kB / 12.38 secA:  6.2 (06.1) of 0.0 (unknown) 10.8%
66.174 kB / 12.64 secA:  6.5 (06.4) of 0.0 (unknown) 10.4%
67.492 kB / 12.89 secA:  6.7 (06.7) of 0.0 (unknown) 10.0%
69.767 kB / 13.33 secA:  6.9 (06.9) of 0.0 (unknown)  9.8%
70.124 kB / 13.39 secA:  7.2 (07.1) of 0.0 (unknown)  9.5%
71.450 kB / 13.66 secA:  7.5 (07.4) of 0.0 (unknown)  9.1%
95.788 kB / 18.38 secA:  12.2 (12.1) of 0.0 (unknown) 14.1%
97.140 kB / 18.62 secA:  12.4 (12.4) of 0.0 (unknown) 12.8%
99.069 kB / 19.02 secA:  12.8 (12.8) of 0.0 (unknown) 12.5%
101.067 kB / 19.39 secA:  13.2 (13.1) of 0.0 (unknown) 12.2%
102.426 kB / 19.66 secA:  13.5 (13.4) of 0.0 (unknown) 11.9%
103.701 kB / 19.91 secA:  13.7 (13.7) of 0.0 (unknown) 11.7%
104.018 kB / 19.97 sec (unknown)  9.4%
INFO: Metadata:
INFO:  audiodatarate        40.00
INFO:  audiosamplerate      32000.00
INFO:  audiocodecid          10.00
INFO:  canSeekToEnd          FALSE
INFO:  audiodevice          Orban Optimod 1101 1 31060112
INFO:  metadatacreator      Orban Opticodec-PC PE 3.7.90 (os=Windows NT 5.1 Se
rvice Pack 3)
INFO:  description          Hi-Fi Internet Audio Stream
INFO:  name                  KSTE-AM Flash
INFO:  website              http://www.kste.com
INFO:  creationdate          Saturday, February 18, 2012 11:17:15 UTC
INFO:  artist                KSTE :07 LINERS  ANDY DEAN1
INFO:  title                KSTE :07 LINERS  ANDY DEAN1
INFO:  url                  song_spot="O" MediaBaseId="0" itunesTrackId="0" am
gTrackId="0" amgArtistId="0" TAID="0" TPID="0" cartcutId="0006732033" amgArtwork
URL="" length="00:00:09" unsID="0"
127.413 kB / 24.38 secA:  18.2 (18.1) of 0.0 (unknown) 13.5%
129.353 kB / 24.75 secA:  18.6 (18.5) of 0.0 (unknown) 12.7%
130.646 kB / 25.00 secA:  18.8 (18.8) of 0.0 (unknown) 12.5%
132.959 kB / 25.45 secA:  19.2 (19.2) of 0.0 (unknown) 12.3%
134.392 kB / 25.72 secA:  19.5 (19.4) of 0.0 (unknown) 12.1%
136.302 kB / 26.09 sec (unknown) 10.1%
INFO: Metadata:
INFO:  audiodatarate        40.00
INFO:  audiosamplerate      32000.00
INFO:  audiocodecid          10.00
INFO:  canSeekToEnd          FALSE
INFO:  audiodevice          Orban Optimod 1101 1 31060112
INFO:  metadatacreator      Orban Opticodec-PC PE 3.7.90 (os=Windows NT 5.1 Se
rvice Pack 3)
INFO:  description          Hi-Fi Internet Audio Stream
INFO:  name                  KSTE-AM Flash
INFO:  website              http://www.kste.com
INFO:  creationdate          Saturday, February 18, 2012 11:17:15 UTC
INFO:  artist                -
INFO:  title                PSA: 60- 12 YEARS
INFO:  url                  song_spot="O" MediaBaseId="0" itunesTrackId="0" am
gTrackId="0" amgArtistId="0" TAID="0" TPID="0" cartcutId="0004904001" amgArtwork
URL="" length="00:01:00" unsID="0"
158.888 kB / 30.36 secA:  24.2 (24.1) of 0.0 (unknown) 12.9%
160.870 kB / 30.75 secA:  24.5 (24.5) of 0.0 (unknown) 12.3%
162.233 kB / 31.00 secA:  24.8 (24.8) of 0.0 (unknown) 12.2%
164.240 kB / 31.39 secA:  25.1 (25.1) of 0.0 (unknown) 12.0%
165.487 kB / 31.64 secA:  25.4 (25.4) of 0.0 (unknown) 11.9%
166.799 kB / 31.91 secA:  25.7 (25.6) of 0.0 (unknown) 11.8%
191.147 kB / 36.62 secA:  30.4 (30.3) of 0.0 (unknown) 12.7%
193.187 kB / 37.00 secA:  30.7 (30.7) of 0.0 (unknown) 12.3%
195.144 kB / 37.39 secA:  31.1 (31.1) of 0.0 (unknown) 12.2%
196.421 kB / 37.64 secA:  31.4 (31.4) of 0.0 (unknown) 12.1%
198.415 kB / 38.03 secA:  31.7 (31.7) of 0.0 (unknown) 11.9%
224.148 kB / 43.00 secA:  36.7 (36.7) of 0.0 (unknown) 13.1%
226.081 kB / 43.39 secA:  37.1 (37.1) of 0.0 (unknown) 12.7%
227.351 kB / 43.64 secA:  37.4 (37.3) of 0.0 (unknown) 12.6%
229.406 kB / 44.03 secA:  37.7 (37.7) of 0.0 (unknown) 12.5%
231.418 kB / 44.41 secA:  38.1 (38.1) of 0.0 (unknown) 12.4%
232.028 kB / 44.53 secA:  42.0 (41.9) of 0.0 (unknown) 11.3%
263.562 kB / 50.66 secA:  42.4 (42.3) of 0.0 (unknown) 11.2%
264.199 kB / 50.78 secA:  48.2 (48.1) of 0.0 (unknown)  9.8%
293.516 kB / 56.47 secA:  48.6 (48.5) of 0.0 (unknown)  9.8%
A:  49.6 (49.6) of 0.0 (unknown)  9.6%


mocha 02-27-2012 05:32 PM

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
and then grab the rtmp:// link out of that page. But for some reason I'm getting a different link than you are. Thanks.

chap 02-27-2012 10:56 PM

Re: Record Clear Channel radio stations (iheartradio.com)


 
My method-use sniff CooJah

mocha 02-28-2012 02:17 AM

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.


All times are GMT -6. The time now is 10:29 AM.