LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2007, 03:42 PM   #1
zupermanz
Member
 
Registered: Jun 2004
Distribution: mdk10
Posts: 35

Rep: Reputation: 15
mms stream problem


Hello! I have a problem playing a certain mms stream mms://85.17.2.144/sportfm7712 . Other streams i ve tried work well ( even mms) but not this one. I have tried totem (with xine and gstreamer), amarok and mplayer without any results.

I use ubuntu 6.10 on an amilo 7400 (centrino).

Thanks in advance!

Mike
 
Old 01-26-2007, 07:24 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
There dosn't appear to be anything there:

Playing mms://85.17.2.144/sportfm7712.
STREAM_ASF, URL: mms://85.17.2.144/sportfm7712
Connecting to server 85.17.2.144[85.17.2.144]: 1755...
connect error: Connection refused
Connecting to server 85.17.2.144[85.17.2.144]: 80...
Connecting to server 85.17.2.144[85.17.2.144]: 80...
Cache size set to 64 KBytes
Cache fill: 12.50% (8192 bytes) Ahhhh, stream_chunck size is too small: 4
Error while parsing chunk header
Cache fill: 14.93% (9783 bytes)
ASF file format detected.
Clip info:
name:
author:
copyright:
comments:
==========================================================================
Opening audio decoder: [dshow] Win32/DirectShow decoders
AUDIO: 8000 Hz, 1 ch, s16le, 4.9 kbit/3.85% (ratio: 616->16000)
Selected audio codec: [acelp] afm: dshow (ACELP.net Sipro Lab Audio Decoder)
==========================================================================
AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 11.7 (11.6) of 11.0 (11.0) 0.9% 0%

Exiting... (End of file)
Had static for maybe 3 seconds then mplayer closed.
 
Old 02-19-2007, 11:56 AM   #3
kaviazzz
LQ Newbie
 
Registered: Feb 2007
Posts: 21

Rep: Reputation: 15
i am having a problem like yours
i cant play mms://best.live24.gr/best1222
iv already posted it

http://www.linuxquestions.org/questi...60#post2636360

well i dont know what is wrong with those links i can play sportfm without any problem

kav@susebox:~/firefox downloads> mplayer mms://85.17.2.144/sportfm7712
MPlayer 1.0rc1-SUSE Linux 10.2 (x86_64)-Packman-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 43, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support. You will not be able to use your remote control.

Playing mms://85.17.2.144/sportfm7712.
STREAM_ASF, URL: mms://85.17.2.144/sportfm7712
Resolving 85.17.2.144 for AF_INET6...
Couldn't resolve name for AF_INET6: 85.17.2.144
Connecting to server 85.17.2.144[85.17.2.144]: 1755...
connect error: Connection refused
Resolving 85.17.2.144 for AF_INET6...
Couldn't resolve name for AF_INET6: 85.17.2.144
Connecting to server 85.17.2.144[85.17.2.144]: 80...
Resolving 85.17.2.144 for AF_INET6...
Couldn't resolve name for AF_INET6: 85.17.2.144
Connecting to server 85.17.2.144[85.17.2.144]: 80...
Cache size set to 64 KBytes
Cache fill: 12.50% (8192 bytes)
ASF file format detected.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 32000 Hz, 1 ch, s16le, 20.0 kbit/3.91% (ratio: 2500->64000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [oss] 32000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:1256464.9 (349:01:04.9) of 0.0 (unknown) 0.3% 6%


and when im trying to open the bestfm link i get problems

whould u like to swap computers so we can both listen to our favorite radios ?

Last edited by kaviazzz; 02-19-2007 at 11:58 AM.
 
Old 02-19-2007, 01:06 PM   #4
arochester
Member
 
Registered: May 2006
Distribution: Debian
Posts: 601

Rep: Reputation: 96
mms://85.17.2.144/sportfm7712 works for me on Rhythmbox Music Player.

mms://best.live24.gr/best1222 does not work for me. Is the URL correct? I can go to www.best.live24.gr. It is a Flash Site and I can hear music. Unfortunately I cannot read Greek and don't really understand.
 
Old 02-19-2007, 01:24 PM   #5
kaviazzz
LQ Newbie
 
Registered: Feb 2007
Posts: 21

Rep: Reputation: 15
its correct mate... im using it @ windows and i also said that it might work if i try 20-30 times.... im so desparate.. the flash the music u can hear is the introduction music at the site to connect and listen live u need media player...

the way i got this link was to use a urlsnooper from windows any1 else got any clue why is not working ???
 
Old 02-19-2007, 01:42 PM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Well, it's hardly an effort free solution, but this sometimes works:
  1. replace the mms with http
  2. use curl on that URL
  3. see other URLs
  4. feed these other URLs to mplayer, xine, xmms
 
1 members found this post helpful.
Old 02-19-2007, 01:46 PM   #7
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
I had a similar problem with Nasa TV, for which I wrote a little script which you can adapt for you radio station:
Code:
#!/usr/bin/perl -w

use strict;

my $url1 = "http://www.nasa.gov/multimedia/nasatv/";
my @r;

print "fetching first page: $url1\n";
grep { m|(http://www\.nasa\.gov/\d+main_NASATV_Windows\.asx)|i && push @r, $1; } `GET $url1` || die "error fetching first page: $!\n";

my $url2 = $r[0] || die "failed to find .asx link in first page\n";
@r = ();

print "fetching second page: $url2\n";
grep { m/ref href=\"(http.*)\"/i && push @r, $1; } `GET $url2` || die "error fetching second page: $!\n";

my $url3 = $r[0] || die "failed to find link in second page\n";
@r = ();

print "fetching third page: $url3\n";
grep { m/\"(mms[^"]+)\"/i && push @r, $1; } `GET $url3` || die "error fetching third page: $!\n";

my $last;
foreach (@r) {
    print $_ . "\n";
    $last = $_;
}

exec "mplayer '$last'";
 
Old 02-19-2007, 06:47 PM   #8
kaviazzz
LQ Newbie
 
Registered: Feb 2007
Posts: 21

Rep: Reputation: 15
ill try to find out now what exactly u just did but did the bestfm work that way ?
 
Old 02-19-2007, 07:32 PM   #9
kaviazzz
LQ Newbie
 
Registered: Feb 2007
Posts: 21

Rep: Reputation: 15
i get this error

kav@susebox:~> perl -w write.pl
fetching first page: http://www.nasa.gov/multimedia/nasatv/
Can't exec "GET": No such file or directory at write.pl line 8.
error fetching first page: No such file or directory
kav@susebox:~>


i ve never used perl before.. i created a text file and copied your script on it is that right ?
 
Old 02-20-2007, 01:29 AM   #10
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
You need to have the GET tool installed. In Ubuntu this is part of the libwww-perl package.

Just changing the URL in the script isn't enough - this script is tailored specifically to the NASA TV feed.

I looked at the Best FM feed, and it looks much simpler, so I made this script for it:

Code:
#!/usr/bin/perl -w

use strict;

# note mms replaced with http
my $url = "http://best.live24.gr/best1222";
my @r;
grep { m|Ref\d+?=(http://.*)|i && push @r, $1; } `GET $url` || die "error fetching first page: $!\n";

exec "mplayer $r[0]\n";
Works for me with mplayer and xine - try different media players to suit your tastes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mms stream playing in mplayer but not gxine bl0tt0 Slackware 2 10-31-2006 02:25 PM
mplayer-plugin problem with ONE stream Sammael Linux - Software 4 08-12-2006 10:44 AM
problem with stream krock923 Programming 1 02-26-2006 01:06 PM
compiling problem of debian kernel 2.6.15 with 2.6.15-mms patch headlie Linux - Laptop and Netbook 0 01-08-2006 04:30 PM
Problem using mplayer to plal RealAudio stream Gregory Deal Linux - Software 2 09-18-2004 04:18 PM


All times are GMT -5. The time now is 12:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration