Help me record this stream in linux

*nix specific usage questions
jb_bak
New Cone
New Cone
Posts: 5
Joined: 11 Oct 2017 13:39

Help me record this stream in linux

Postby jb_bak » 28 Oct 2017 16:58

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!

Drain Pipe
Blank Cone
Blank Cone
Posts: 23
Joined: 18 Jan 2010 13:46

Re: Help me record this stream in linux

Postby Drain Pipe » 28 Oct 2017 20:40

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.

jb_bak
New Cone
New Cone
Posts: 5
Joined: 11 Oct 2017 13:39

Re: Help me record this stream in linux

Postby jb_bak » 29 Oct 2017 14:11

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#

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Help me record this stream in linux

Postby Rémi Denis-Courmont » 29 Oct 2017 15:17

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jb_bak
New Cone
New Cone
Posts: 5
Joined: 11 Oct 2017 13:39

Re: Help me record this stream in linux

Postby jb_bak » 29 Oct 2017 22:05

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

jb_bak
New Cone
New Cone
Posts: 5
Joined: 11 Oct 2017 13:39

Re: Help me record this stream in linux

Postby jb_bak » 29 Oct 2017 22:37

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Help me record this stream in linux

Postby Rémi Denis-Courmont » 30 Oct 2017 17:12

That's RTSP, not MMS...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jb_bak
New Cone
New Cone
Posts: 5
Joined: 11 Oct 2017 13:39

Re: Help me record this stream in linux

Postby jb_bak » 30 Oct 2017 22:25

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?


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 11 guests