Unable to play internet streaming radio


Forum: Multimedia
Topic: Unable to play internet streaming radio
started by: fixkiet

Posted by fixkiet on Mar. 18 2006,04:42
I have 2.1 Hd installed. I want to listen from the stream such as < this site > but always get "missing plugin" message. My wind*w box uses wmplayer and plays OK.
Back to my DSL, installed the mplayer and mplayerplug-in from MyDSL icon w/o any lucks.
I also tried xmms and xine but not any better. Please help!

Posted by fixkiet on Mar. 19 2006,20:18
Googled around, I found this site mplayerplug-in.sourceforge.net which claimed to have the correct plugin to play *.wma on the web.
I am too new to linux to understand the installation guide. The site does not offer any forums there for me to ask around. I am coming back here, hopefully someone will be kind enough to break down the guide.
This cut/paste from mplayerplug-in site:
@@@@@@@@@@@@
Compiling mplayerplug-in

The Mozilla development files are needed to compile this code
To get the Mozilla development files there are two options

  1. mozilla-devel package (includes pkg-config files)
     The mozilla-devel package may come with your distribution and it is an optional install. Try using apt-get or yum or your package installer to obtain the package. Version 1.6 or higher are the only kits known to work.
  2. gecko-sdk
     The gecko-sdk can be obtained from mozilla.org (version 1.6 or higher of the SDK are the only ones that work). Only use gecko-sdk 1.7 for versions of Mozilla and Firefox based on gecko 1.7. See the about dialog and check the rv: info.
     http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.6/
     Extract the tar file in some directory



The GTK development files are needed to compile this code

To get the latest source from CVS do the following

cd to some directory

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/mplayerplug-in login
(just hit enter for password)

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/mplayerplug-in co mplayerplug-in

or, if you have already downloaded from CVS before.

cd [cvs root]/mplayerplug-in
cvs update -PAd


OR

download the source for v3.21 here: mplayerplug-in-3.21.tar.gz

then

tar -xzvf mplayerplug-in-3.21.tar.gz
cd mplayerplug-in


BUILDING
In the mplayerplug-in directory type

Compilation options
--with-gecko-sdk=/path/to/gecko-sdk     (replace /path/to with the correct value)
--enable-gtk2 (default option, use if mozilla is linked to gtk2 libs)
--enable-gtk1 (use if mozilla is linked to gtk1 libs (usually if fonts in mozilla are not smooth))
--enable-x (use if you don't know if your mozilla is linked to gtk1 or gtk2)
--enable-wmp (Enable Windows Media Support, enabled by default)
--enable-qt (Enable QuickTime Media Support, enabled by default)
--enable-rm (Enable Real Media Support, enabled by default)
--enable-gmp (Enable Google Media Support, enabled by default)
--prefix (Used to set where the language files install to defaults to /usr/local)

Examples:
To configure with defaults:
./configure

if you are using gecko-sdk do the following
./configure --with-gecko-sdk=/path/to/gecko-sdk    (replace /path/to with the correct value)

if you are using gecko-sdk and gtk1
./configure --with-gecko-sdk=/path/to/gecko-sdk --enable-gtk1

If you get this error during configure:  
checking for mozilla-plugin... Package mozilla-plugin was not found in the pkg-config search path.

You need to use the gecko-sdk option. Using gecko-sdk 1.6 with an earlier version of mozilla seems to be ok. NOTE:Using the gecko 1.7 SDK with a 1.6 version of Mozilla does not work. Use gecko-sdk 1.6 for Mozilla 1.6.x and gecko-sdk 1.7 for Mozilla 1.7.x

If you can't figure out what you need try running

./whatoptions.sh

in the mplayerplug-in directory.

After configure is done and successful:
make

If during the make process you get an error about missing "mozilla-config.h" and you are not using the gecko-sdk.
You need to use the gecko-sdk because your mozilla-devel package is incomplete.


The results of that command should produce files called

mplayerplug-in.so
mplayerplug-in.xpt
mplayerplug-in-wmp.so
mplayerplug-in-wmp.xpt
mplayerplug-in-qt.so
mplayerplug-in-qt.xpt
mplayerplug-in-rm.so
mplayerplug-in-rm.xpt
mplayerplug-in-gmp.so
mplayerplug-in-gmp.xpt


in the current directory.

INSTALLING

Per User:(This will not install the language files)

make install

or

cp mplayerplug-in*.so mplayerplug-in*.xpt ~/.mozilla/plugins


For the system: File locations may vary so you may need to look where to install these files.

Running make install as root, tries to figure out where you have mozilla install and then installs the plugins in that location. It may only install for mozilla in this case.

If you use mozilla:

cp mplayerplug-in*.so /usr/lib/mozilla/plugins
cp mplayerplug-in*.xpt /usr/lib/mozilla/components

If you use firefox:

cp mplayerplug-in*.so /usr/lib/firefox/plugins
cp mplayerplug-in*.xpt /usr/lib/firefox/components

For Debian/Ubuntu
cp mplayerplug-in*.so /usr/lib/mozilla-firefox/plugins
cp mplayerplug-in*.xpt /usr/lib/mozilla-firefox/components

Restart mozilla

To install just the language files
Do this as root.

cd (to the directory where you untarred mplayerplug-in)
cd mplayerplug-in
cd po
make install
@@@@@@@@@@@@@@@@@@@@@

Posted by doobit on Mar. 19 2006,22:31
did you try installing the codecpak.dsl extention?
Posted by fixkiet on Mar. 20 2006,03:07
Quote (doobit @ Mar. 19 2006,17:31)
did you try installing the codecpak.dsl extention?

Thank you for the reply!
I installed the codecpak.dsl from the MyDSL > System > Codecpak.dsl.info then reboot the system but it did not help.

I went back to the < www.rock103.com >, followed the FAQ which leaded me to  < www.linux-sxs.org/multimedia/mplayermozplug.html >
In there, there was another instruction to install plugins for Mplayer:

1) Build & install a fully functional copy of MPlayer.  If you need help doing that, see my SxS here.
2) Download the plugin here.  I recommend grabbing the source tarball, however the RPM should work just fine, if that's what you're more comfortable with.
3) Either install the RPM, or extract the tarball archive that you downloaded in a temporary location, and then run 'make' to compile the plugin.
4) As root, copy mplayerplug-in.so into the plugins directory for Mozilla.  For example, on my boxes, I install Mozilla in /opt/mozilla/.  So, I would copy the file into /opt/mozilla/plugins.
5) (Re)start mozilla, and click on Help -> About Plugins from the menu.  You should see a section labeled "mplayerplug-in ..." and it should say "YES" under the Enabled column.

I skipped  (1) - Proceeded to (2) to get the tarball, but I am stuck at (3) b/c I don't know how to to do the "make"

Please help!

Posted by hs7sv on Mar. 20 2006,04:50
did you try mplayer.dsl and codecpak.dsl? ???
Posted by humpty on Mar. 20 2006,16:51
> I skipped  (1) - Proceeded to (2) to get the tarball, but I am stuck at
> (3) b/c I don't know how to to do the "make"
>


you need the minimum of gcc1.dsl gnu-utils.dsl and probably a form of
gtk development dsl. but i suspect that's probably not enough.

by some miracle (i hope) you succeed, them from the info you gave you probably need to copy the xpt file over to the components dir as well.

good luck.  :)  (and do share the plugin if it works).

Posted by fixkiet on Mar. 22 2006,00:05
Quote (humpty @ Mar. 20 2006,11:51)
you need the minimum of gcc1.dsl gnu-utils.dsl and probably a form of
gtk development dsl. but i suspect that's probably not enough.

by some miracle (i hope) you succeed, them from the info you gave you probably need to copy the xpt file over to the components dir as well.

good luck.  :)  (and do share the plugin if it works).

Now it's getting too serious for me! I has been on DSL for less than  2 weeks w/o any Linux experience.
Is the idea of making an internet radio streaming using DSL too advance for me? Have anyone done something like this?

Posted by hs7sv on Mar. 24 2006,07:56
I'm watching Thai Streaming TV by using:-

MPlayer -> mplayer.dsl + codecpak.dsl
xMMs    -> mplayer.dsl + codecpak.dsl + xmmplayer

It is using wmv and wma on mms protocol. I can listen it by using XMPlay (wma) on Window$.

Posted by fixkiet on Mar. 29 2006,02:55
Thai Streaming TV site was using Realplayer on my win box.
Posted by hs7sv on Mar. 29 2006,03:55
yep, it used RealPlayer because they are using 2 channels: wmv and wma. If you use XMPlay, it will get wma only.
In the same way, pleaase check Format when you play < http://www.rock103.com/ > by XMPlay. If it is Windows Media Audio (wma), that means it should work on MPlayer -> mplayer.dsl + codecpak.dsl also.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.