www.smartbusinesschoices.com

Leading Business and Technology,
News and information


Part of the Identityscape.com network...

getxfactor.com jmoodmusic.com smartbusinesschoices.com mintdepot.com lowfaresalways.com evangelicalview.com shoppingpodder.com soproudlywehail.com webnews.ws currenthumor.com

 

 

Problem playing mms stream using mplayer or other players
Goto page Previous  1, 2
   Smart Linux Business Choices! - the Best of UseNet Postings! Forum Index -> Linux - Suse Forum  
View previous topic :: View next topic  
Author Message
kiwanuka
Guest






PostPosted: Sat Nov 08, 2008 9:23 am    Post subject: Re: Problem playing mms stream using mplayer or other player Reply with quote

On Nov 8, 8:55 am, graham <graham.marsd...@ntlworld.com> wrote:
Quote:
On Sat, 08 Nov 2008 08:45:34 +0000, graham wrote:
On Fri, 07 Nov 2008 04:29:38 -0800, kiwanuka wrote:

 However, I still cannot listen to classicfm.co.uk because it
will not let me chose a player other than totem

When I access the site and choose to listen live, I get a message saying
that as I'm using linux I need a windows compatible player such as
mplayer, and if it is installed click here to listen. I do so and it
plays.
using openSUSE 11.0 kde 3.5 MPlayer-1.0rc2-4.pm.1 and firefox 3.0.3

I should have quoted mplayerplug-in-3.50-0.pm.2

You are a genius! Thanks! The problem was the lack of the plugin. I
installed the plugin and updated both mplayer and mplayerplugin;
revisited the site and did as you've just described and... MUSIC!!!
Back to top
houghi
Guest






PostPosted: Sat Nov 08, 2008 3:12 pm    Post subject: Re: Problem playing mms stream using mplayer or other player Reply with quote

graham wrote:
Quote:
When I access the site and choose to listen live, I get a message saying
that as I'm using linux I need a windows compatible player such as
mplayer, and if it is installed click here to listen. I do so and it
plays.
using openSUSE 11.0 kde 3.5 MPlayer-1.0rc2-4.pm.1 and firefox 3.0.3

I should have quoted mplayerplug-in-3.50-0.pm.2

The page you get send to that pops up is
http://mediaweb.musicradio.com/player/default.asp?s=2&e=0
It then even points to the site for mplayer and the link points to
http://mediaweb.musicradio.com/Playlist.asx?StreamID=2

If I copy and paste that last URL into Firefox, I get to hear the music
with the mplayer plug in.

Things I do when I install openSUSE on somebody elses machine.
1) Add Packman as repo from the Community Repositories
2) Seach and select to install the following
MPlayer
MPlayer-plugin
Codecs32

I also do the Amarok installation from Packman, as that includes the
MySQL links and such.

houghi
--
Quote:
Run the following from the bashprompt if you have the kernel sources
for I in `find /usr/src/linux/ -name *.c`; \

do A=`grep -i -A 1 -B 1 fuck $I`;if [ "$A" != "" ]; \
then printf "$I \n$A \n\n"; fi ;done|less
Back to top
just me
Guest






PostPosted: Sat Nov 08, 2008 4:59 pm    Post subject: Re: Problem playing mms stream using mplayer or other player Reply with quote

On 2008-11-08, graham <graham.marsden1@ntlworld.com> wrote:
Quote:
On Sat, 08 Nov 2008 08:45:34 +0000, graham wrote:

On Fri, 07 Nov 2008 04:29:38 -0800, kiwanuka wrote:

However, I still cannot listen to classicfm.co.uk because it
will not let me chose a player other than totem

When I access the site and choose to listen live, I get a message saying
that as I'm using linux I need a windows compatible player such as
mplayer, and if it is installed click here to listen. I do so and it
plays.
using openSUSE 11.0 kde 3.5 MPlayer-1.0rc2-4.pm.1 and firefox 3.0.3

I should have quoted mplayerplug-in-3.50-0.pm.2

Looks like I need to update the plugin also; the err msg with vlc
said that the file was a wma2 which wasn't supported.
Back to top
George
Guest






PostPosted: Sat Nov 08, 2008 5:48 pm    Post subject: Re: Problem playing mms stream using mplayer or other player Reply with quote

DenverD escribió:
Quote:
George wrote:
Chris Cox escribió:
George wrote:
I am using OpenSuse 11.0 and I am not able to play a mms stream from a
radio broadcast over the internet. It plays without any problems from
Windows on the same machine, or from any other machine connected to the
same network. If I use mplayer, I get an error saying "HTTP/1.1 503
Service Unavailable".I have tried using xmms, vlc and others, and all
of them seem to have some problem. It is very frustrating that I can
play this using Windows but not on Linux. I have been trying to find out
what the problem is using Google but so far I had no luck. Is there
anyone here able to help? I will appreciate it.
Is it a naughty stream? Any reason for not posting it here?
The string is mms://streammitre.uigc.net/mitrevivo. It's a commercial
radio station. Nothing naugthy!

i tried it and was astonished to hear music..
i do not know how or why i can, and you cannot...just wanted to encourage you to
not give up, because on my SUSE 10.3 setup according to
http://www.softwareinreview.com/linux_optimizations/hacking_opensuse_10.3.html
it "just works"....yes, i got the pop-up asking to launch Totem, and i clicked
Launch, and waited TOO LONG, and thought mine was broken too...but, then music
came..

good luck (wait longer, maybe)

See my previous posting and you will understand why you can and I

couldn't at the time of my first posting
Back to top
Mark S Bilk
Guest






PostPosted: Fri Nov 14, 2008 11:52 am    Post subject: Re: Problem playing mms stream using mplayer or other player Reply with quote

On Nov 6, 10:50 am, George <geo...@somewhere.earth> wrote:
Quote:
I have solved this problem now, which was in the server, I got in
contact with them and it was fixed. It works fine now.

I'm using OpenSuSE 10.3, Firefox 2.0.0.17 and mplayer
1.0rc2-openSUSE .

The classicfm.co.uk server detects that I'm using Linux, and gives
a place to click, which starts the mplayer plugin and plays fine.
The plugin says its playing this URL:

http://mediaweb.musicradio.com/V1/Playlist.asx?StreamID=2

Downloading the file at that URL with wget yields an asx playlist,
which contains this URL:

http://mediasrv-the.musicradio.com/ClassicFM

That's the actual stream, and can be played with mplayer using the
command line:

mplayer http://mediasrv-the.musicradio.com/ClassicFM

The original URL you gave plays the same way:

mplayer mms://streammitre.uigc.net/mitrevivo

Instead of using the browser plugin, I prefer to call mplayer
from the command line, because that gives much greater
versatility. One can call it from a bash script, use options,
save the incoming stream to disk, etc.
Back to top
kiwanuka
Guest






PostPosted: Sat Nov 15, 2008 4:37 pm    Post subject: Re: Problem playing mms stream using mplayer or other player Reply with quote

On Nov 14, 11:52 am, Mark S Bilk <m...@cosmicpenguin.com> wrote:
Quote:
On Nov 6, 10:50 am, George <geo...@somewhere.earth> wrote:

I have solved this problem now, which was in the server, I got in
contact with them and it was fixed. It works fine now.

I'm using OpenSuSE 10.3, Firefox 2.0.0.17 and mplayer
1.0rc2-openSUSE .

The classicfm.co.uk server detects that I'm using Linux, and gives
a place to click, which starts the mplayer plugin and plays fine.
The plugin says its playing this URL:

http://mediaweb.musicradio.com/V1/Playlist.asx?StreamID=2

Downloading the file at that URL with wget yields an asx playlist,
which contains this URL:

http://mediasrv-the.musicradio.com/ClassicFM

That's the actual stream, and can be played with mplayer using the
command line:

mplayerhttp://mediasrv-the.musicradio.com/ClassicFM

The original URL you gave plays the same way:

mplayer mms://streammitre.uigc.net/mitrevivo

Instead of using the browser plugin, I prefer to call mplayer
from the command line, because that gives much greater
versatility.  One can call it from a bash script, use options,
save the incoming stream to disk, etc.

Simply beautiful! Didn't know I could do that! As of now I'm calling
it via a bash script. Could you, please, explain how I could go about
saving an incoming stream? Would be much appreciated.
Back to top
Mark S Bilk
Guest






PostPosted: Sun Nov 16, 2008 1:55 am    Post subject: Re: Problem playing mms stream using mplayer or other player Reply with quote

On Nov 15, 8:37 am, kiwanuka <robert.kiwan...@gmail.com> wrote:
Quote:
On Nov 14, 11:52 am, Mark S Bilk <m...@cosmicpenguin.com> wrote:
mplayer http://mediasrv-the.musicradio.com/ClassicFM
mplayer mms://streammitre.uigc.net/mitrevivo

Instead of using the browser plugin, I prefer to call mplayer
from the command line, because that gives much greater
versatility. One can call it from a bash script, use options,
save the incoming stream to disk, etc.

Simply beautiful! Didn't know I could do that! As of now I'm calling
it via a bash script. Could you, please, explain how I could go about
saving an incoming stream? Would be much appreciated.

There are two ways that I know of, but there may be more. The
mplayer man page is 6753 lines long, and there are dozens of
html and text files in:
/usr/share/doc/packages/MPlayer/DOCS/
especially
/usr/share/doc/packages/MPlayer/DOCS/HTML/en/index.html
and
/usr/share/doc/packages/MPlayer/DOCS/tech
(I'm hoping the secret of immortality is in there somewhere,
but I haven't read it all yet.)

The first method is the "dump" facility. Search for "dumpaudio"
in the man page. This method doesn't work with either of the
two streams above, apparently because they use some kind of
Microsoft "asf" format. (Microsoft must die!) Maybe it needs some
additional options. But dump does work with mp3 streams.
Here it is recording Pirate Cat Radio at 128kb/s:

(This should all be on a single line.)
mplayer -dumpaudio -dumpfile hoo.mp3 http://mega5.radioserver.co.uk:8220/

In another xterm/konsole window, you can play the file
hoo.mp3 with mplayer or xmms. I run mc (Midnight
Commander) in most of my terminal windows, so
I can see files updating by pressing Ctrl-R, and can
open a file with a selected application by putting the
cursor on it and pressing Enter. Both mplayer and
xmms can play a file that's growing. So if you want to
listen to a stream and also record it to a file, and you
want to be sure that the recording is good, listening
to the growing file like this is the way to do it.

The second method is to make mplayer's audio driver
system record the audio as a wav file. This may work
on all types of audio stream and does work on the
aforementioned two. It produces a growing wav file
which can be played in another window with mplayer
or xmms.

(Should be on a single line.)
mplayer -ao pcm:file=goo.wav http://mediasrv-the.musicradio.com/ClassicFM

wav files are uncompressed and therefore
large, but you can make mp3s from them with Lame.

lame -h -b 128 goo.wav goo.mp3

I haven't tried running lame on a growing file, nor
piping the wav file output from mplayer into lame,
in order to make an mp3 file directly and not use up
disk space with the intermediate wav file. I'll leave
these as exercises for the reader. 8^)
Back to top
Mark S Bilk
Guest






PostPosted: Sun Nov 16, 2008 4:03 am    Post subject: Dump does work! -was: Problem playing mms stream using mplay Reply with quote

On Nov 15, 5:55 pm, Mark S Bilk <m...@cosmicpenguin.com> wrote:
Quote:
On Nov 15, 8:37 am, kiwanuka <robert.kiwan...@gmail.com> wrote:
On Nov 14, 11:52 am, Mark S Bilk <m...@cosmicpenguin.com> wrote:
mplayerhttp://mediasrv-the.musicradio.com/ClassicFM
mplayer mms://streammitre.uigc.net/mitrevivo
The first method is the "dump" facility. Search for "dumpaudio"
in the man page. This method doesn't work with either of the
two streams above, apparently because they use some kind of
Microsoft "asf" format. (Microsoft must die!)

The audio file was written in each case, but mplayer would not
play it.

But dump _can_ be made to work on these two streams! When
mplayer plays them it says:

ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Audio stream found, -aid 2
....
Video: no video

So asf is a _video_ format, but these two streams are sending
only the audio part. (Maybe the two audio streams are left and
right channel.) Therefore we need to dump the entire stream
to the file, not just the audio, in order to include the envelope
(carrier) format that surrounds the audio.

This works (but this server always takes about 30 seconds to
connect):

mplayer -dumpstream -dumpfile foo.asf mms://streammitre.uigc.net/mitrevivo

This works too (this server responds quickly):

mplayer -dumpstream -dumpfile goo.asf http://mediasrv-the.musicradio.com/ClassicFM

The growing files can be played by mplayer (but not xmms)
in another window, as before.
Back to top
kiwanuka
Guest






PostPosted: Sun Nov 16, 2008 11:16 am    Post subject: Re: Dump does work! -was: Problem playing mms stream using m Reply with quote

On Nov 16, 4:03 am, Mark S Bilk <m...@cosmicpenguin.com> wrote:
Quote:
On Nov 15, 5:55 pm, Mark S Bilk <m...@cosmicpenguin.com> wrote:

On Nov 15, 8:37 am, kiwanuka <robert.kiwan...@gmail.com> wrote:
On Nov 14, 11:52 am, Mark S Bilk <m...@cosmicpenguin.com> wrote:
mplayerhttp://mediasrv-the.musicradio.com/ClassicFM
mplayer mms://streammitre.uigc.net/mitrevivo
The first method is the "dump" facility.  Search for "dumpaudio"
in the man page.  This method doesn't work with either of the
two streams above, apparently because they use some kind of
Microsoft "asf" format.  (Microsoft must die!)

The audio file was written in each case, but mplayer would not
play it.

But dump _can_ be made to work on these two streams!  When
mplayer plays them it says:

ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Audio stream found, -aid 2
...
Video: no video

So asf is a _video_ format, but these two streams are sending
only the audio part.  (Maybe the two audio streams are left and
right channel.)  Therefore we need to dump the entire stream
to the file, not just the audio, in order to include the envelope
(carrier) format that surrounds the audio.

This works (but this server always takes about 30 seconds to
connect):

mplayer -dumpstream -dumpfile foo.asf mms://streammitre.uigc.net/mitrevivo

This works too (this server responds quickly):

mplayer -dumpstream -dumpfile goo.asfhttp://mediasrv-the.musicradio.com/ClassicFM

The growing files can be played by mplayer (but not xmms)
in another window, as before.

That is all very good, thanks Mark. I can save some of my favorite
tunes. I will keep to the asf extension. I generally play with mplayer
so no problem at all. Thanks a lot!!
Back to top
Display posts from previous:   
   Smart Linux Business Choices! - the Best of UseNet Postings! Forum Index -> Linux - Suse Forum Goto page Previous  1, 2  
Page 2 of 2
All times are GMT

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum