Page 1 of 1

Help me record this stream in linux

Posted: 28 Oct 2017 16:58
by jb_bak
Can anyone help me record this mms stream from a Microsoft server?

"mms://WSHAStreamer17.shawu.edu/WSHAFM88.9 Live Stream"

Its from this site:
http://www.shawu.edu/WSHA/Listen_Live/Listen_Live.aspx

I can't get it to open in linux anymore but it does play with windows media player and also winamp on a windows desktop. I would like to be able to record it from the command line in linux using my raspberry pi. I had a script using mimms that worked great for a few years than just stopped about 6 months ago. I've tried vlc, streamripper, mencoder, ffmpeg, and others to no avail. It just keeps coming back as stream not found. The stream doesn't show protected in windows media player. Not sure why I cannot get any program to connect.

Any help would be greatly appreciated!

Re: Help me record this stream in linux

Posted: 28 Oct 2017 20:40
by Drain Pipe
Have you tried mplayer?

To record it you'd use something like:

Code: Select all

$ mplayer mms://"WSHAStreamer17.shawu.edu/WSHAFM88.9 Live Stream" -dumpstream -dumpfile recording.ts
Not sure why kind of stream it actually is.
I put it down as .TS.

Re: Help me record this stream in linux

Posted: 29 Oct 2017 14:11
by jb_bak
Thanks for your help, but I am still getting the not found error. I dont understand why it plays just fine with windows media player and winamp, but not in VLC, among other programs.

Code: Select all

root@raspberrypi:/home/pi# mplayer mms://"WSHAStreamer17.shawu.edu/WSHAFM88.9 Live Stream" -dumpstream -dumpfile recording.ts MPlayer 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team do_connect: could not connect to socket connect: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing mms://WSHAStreamer17.shawu.edu/WSHAFM88.9 Live Stream. STREAM_ASF, URL: mms://WSHAStreamer17.shawu.edu/WSHAFM88.9 Live Stream Resolving WSHAStreamer17.shawu.edu for AF_INET6... Couldn't resolve name for AF_INET6: WSHAStreamer17.shawu.edu Resolving WSHAStreamer17.shawu.edu for AF_INET... Connecting to server WSHAStreamer17.shawu.edu[152.39.4.55]: 1755... connect error: Connection refused Resolving WSHAStreamer17.shawu.edu for AF_INET6... Couldn't resolve name for AF_INET6: WSHAStreamer17.shawu.edu Resolving WSHAStreamer17.shawu.edu for AF_INET... Connecting to server WSHAStreamer17.shawu.edu[152.39.4.55]: 80... Server returned 404:Not Found Failed to parse header. Failed, exiting. Resolving WSHAStreamer17.shawu.edu for AF_INET6... Couldn't resolve name for AF_INET6: WSHAStreamer17.shawu.edu Resolving WSHAStreamer17.shawu.edu for AF_INET... Connecting to server WSHAStreamer17.shawu.edu[152.39.4.55]: 80... Server returned 404: Not Found No stream found to handle url mms://WSHAStreamer17.shawu.edu/WSHAFM88.9 Live Stream Exiting... (End of file) root@raspberrypi:/home/pi# mplayer "mms://WSHAStreamer17.shawu.edu/WSHAFM88.9 Live Stream" -dumpstream -dumpfile recording.ts MPlayer 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team do_connect: could not connect to socket connect: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing mms://WSHAStreamer17.shawu.edu/WSHAFM88.9 Live Stream. STREAM_ASF, URL: mms://WSHAStreamer17.shawu.edu/WSHAFM88.9 Live Stream Resolving WSHAStreamer17.shawu.edu for AF_INET6... Couldn't resolve name for AF_INET6: WSHAStreamer17.shawu.edu Resolving WSHAStreamer17.shawu.edu for AF_INET... Connecting to server WSHAStreamer17.shawu.edu[152.39.4.55]: 1755... connect error: Connection refused Resolving WSHAStreamer17.shawu.edu for AF_INET6... Couldn't resolve name for AF_INET6: WSHAStreamer17.shawu.edu Resolving WSHAStreamer17.shawu.edu for AF_INET... Connecting to server WSHAStreamer17.shawu.edu[152.39.4.55]: 80... Server returned 404:Not Found Failed to parse header. Failed, exiting. Resolving WSHAStreamer17.shawu.edu for AF_INET6... Couldn't resolve name for AF_INET6: WSHAStreamer17.shawu.edu Resolving WSHAStreamer17.shawu.edu for AF_INET... Connecting to server WSHAStreamer17.shawu.edu[152.39.4.55]: 80... Server returned 404: Not Found No stream found to handle url mms://WSHAStreamer17.shawu.edu/WSHAFM88.9 Live Stream Exiting... (End of file) root@raspberrypi:/home/pi#

Re: Help me record this stream in linux

Posted: 29 Oct 2017 15:17
by Rémi Denis-Courmont
Either the URL changed on the server side, or third party apps are deliberately black-listed.

You can use Wireshark if you want to debug/compare the requests from WMP and other players.

Re: Help me record this stream in linux

Posted: 29 Oct 2017 22:05
by jb_bak
Great idea! Yes your right. It looks like an rtsp stream? Hmmmm...... now how to record this. Mplayer is still throwing off errors :(

Code: Select all

Frame 324: 551 bytes on wire (4408 bits), 551 bytes captured (4408 bits) on interface 0 Ethernet II, Src: IntelCor_db:fd:3a (80:19:34:db:fd:3a), Dst: CiscoMer_90:4a:e0 (e0:55:3d:90:4a:e0) Internet Protocol Version 4, Src: 172.20.9.200, Dst: 152.39.4.55 Transmission Control Protocol, Src Port: 2281, Dst Port: 554, Seq: 1, Ack: 1, Len: 497 Real Time Streaming Protocol Request: DESCRIBE rtsp://WSHAStreamer17.shawu.edu/WSHAFM88.9%20Live%20Stream RTSP/1.0\r\n Referer: http://www.winamp.com\r\n User-Agent: WMPlayer/12.0.15063.0608 guid/3300AD50-2C39-46C0-AE0A-04ECD441E117\r\n Accept: application/sdp\r\n Accept-Charset: UTF-8, *;q=0.1\r\n X-Accept-Authentication: Negotiate, NTLM, Digest, Basic\r\n Accept-Language: en-US, *;q=0.1\r\n CSeq: 1\r\n Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch, com.microsoft.wm.eosmsg, com.microsoft.wm.predstrm, com.microsoft.wm.startupprofile\r\n \r\n

Re: Help me record this stream in linux

Posted: 29 Oct 2017 22:37
by jb_bak
Nevermind got it with this. Thanks guys!!

Code: Select all

ffmpeg -rtsp_transport tcp \ -i rtsp://WSHAStreamer17.shawu.edu/WSHAFM88.9%20Live%20Stream myFile.mp3

Re: Help me record this stream in linux

Posted: 30 Oct 2017 17:12
by Rémi Denis-Courmont
That's RTSP, not MMS...

Re: Help me record this stream in linux

Posted: 30 Oct 2017 22:25
by jb_bak
yeah its funny, it shows in winamp/windows media player as an mms link (and also on the webpage link) but wireshark showed it was translating it into an rtsp......probably a misconfigured server on their end?