LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-29-2007, 03:53 PM   #1
Tomermory
Member
 
Registered: Mar 2007
Location: Amiens, France
Distribution: Debian Etch,
Posts: 181

Rep: Reputation: 30
Problems with mplayer


Hi

When I was an (unhappy) Windows user, I was a regular visitor to nme.com, where you can listen to streamed music. Since I have migrated to Linux (Mandriva 2007) I can no longer use the site media player for audio files (video files are fine) - which uses Windows media player - because the mplayerplugin either hangs or takes so long to buffer that I give up. As far as I know, all the codecs are in place. Here is a copy of what I get in [I]aboutlugins[I] in Firefox:

Windows Media Player Plugin

File name: mplayerplug-in-wmp.so
mplayerplug-in 3.25

Video Player Plug-in for QuickTime, RealPlayer and Windows Media Player streams using MPlayer
JavaScript Enabled and Using GTK2 Widgets

MIME Type Description Suffixes Enabled
application/asx Media Files * Yes
video/x-ms-asf-plugin Media Files * Yes
video/x-msvideo AVI avi,* Yes
video/msvideo AVI avi,* Yes
application/x-mplayer2 Media Files * Yes
application/x-ms-wmv Microsoft WMV video wmv,* Yes
video/x-ms-asf Media Files asf,asx,* Yes
video/x-ms-wm Media Files wm,* Yes
video/x-ms-wmv Microsoft WMV video wmv,* Yes
audio/x-ms-wmv Windows Media wmv,* Yes
video/x-ms-wmp Windows Media wmp,* Yes
video/x-ms-wvx Windows Media wvx,* Yes
audio/x-ms-wax Windows Media wax,* Yes
audio/x-ms-wma Windows Media wma,* Yes
application/x-drm-v2 Windows Media asx,* Yes
audio/wav Microsoft wave file wav,* Yes
audio/x-wav Microsoft wave file wav,* Yes


Do I need to configure something in mplayer?

Thanks a lot in advance.
 
Old 03-29-2007, 04:34 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
There are a number of distributions where the codecs end up in the wrong place: they should be under firefox/plug-ins but for some reason they end up under mozilla/plug-ins.

Also check the preferences item by right-clicking mplayer; this will allow you to select the codec(s) that will be used.

And have you tried the vlc player yet?
 
Old 03-29-2007, 06:40 PM   #3
rob.linux
Member
 
Registered: Dec 2004
Location: Ontario, Canada
Distribution: Ubuntu 8.04 LTS
Posts: 54

Rep: Reputation: 15
Tomermeroy,

I had the same problem....the mplayerplug-in would open but the video failed to stream....it would just keep re-loading.

I right clicked on one of these never starting videos and chose configure from the pop-up menu...I chose x11 for the video output and oss for the audio output...left everything else as is...

Of course, you also need the w32codecs in your firefox/plugins directory as stated by jay73

HOORAY ...the videos now play....the output selections may be different for your computer....just keep trying different ones and you may get lucky like I did...

Good Luck

Rob
 
Old 03-30-2007, 11:28 AM   #4
Tomermory
Member
 
Registered: Mar 2007
Location: Amiens, France
Distribution: Debian Etch,
Posts: 181

Original Poster
Rep: Reputation: 30
Thank you very much for your replies,

I've looked in the directories, and it doesn't look to me as though there are the required codecs. I'm not very good at this sort of thing, so I'll list what I find. It does look to me that there is a link to mplayer, but that there are only video codecs. Anyway, here is what I've got:

In /mozilla/plugins:
gxineplugin.so
libflashplayer.so
libvlcplugin.so
mplayerplug-in-gmp.so
mplayerplug-in-gmp.xpt
mplayerplug-in-qt.so
mplayerplug-in-qt.xpt
mplayerplug-in-rm.so
mplayerplug-in-rm.xpt
mplayerplug-in.so
mplayerplug-in-wmp.so
mplayerplug-in-wmp.xpt
mplayerplug-in.xpt
nphelix.so
nphelix.xpt
vlcintf.xpt

In mplayer/vidix:
cyberblade_vid.so
drv1.so.6.0
drv2.so.6.0
drv3.so.6.0
drv4.so.6.0
mach64_vid.so
mga_crtc2_vid.so
mga_vid.so
nvidia_vid.so
pm3_vid.so
radeon_vid.so
rage128_vid.so
rv10.so.6.0
rv20.so.6.0
rv30.so.6.0
rv40.so.6.0
savage_vid.so
sis_vid.so
unichrome_vid.so

When I right click on the link, I get nothing about codecs that I can see
I have tried VLC, but with no joy. I try entering the url directly in file-open network stream HTTP/HTTPS/FTP/MMS - but nothing happens. Perhaps this isn't the correct procedure?

Thanks a lot for your help.
 
Old 03-30-2007, 05:57 PM   #5
joslar
LQ Newbie
 
Registered: Feb 2006
Location: Espaņa
Posts: 9

Rep: Reputation: 1
You have a very old version of mplayerplug-in, the present one is the 3.40 For more information: manual of installation of MPlayer and Mplayerplug-in (In Spanish), the commandos in English
 
Old 03-31-2007, 02:28 PM   #6
Tomermory
Member
 
Registered: Mar 2007
Location: Amiens, France
Distribution: Debian Etch,
Posts: 181

Original Poster
Rep: Reputation: 30
Thanks for this link, joslar. It looks excellent, but unfortunately my Spanish isn't good enough for me to fully profit from it!
I un-installed the mplayerplugin and replaced it with version 3.35 (version 3.4 isn't yet available in rpm - I'm not keen on compiling). However, it actually worked worse than the older version as I couldn't open video links. I've re-installed the previous version and everything's back to how it was.
Then I fell on this little guide on this very forum: http://wiki.linuxquestions.org/wiki/MPlayer
I installed mozplugger and, indeed, it does work better. When I go to the site where you can listen to streamed albums http://www.nme.com/, the first song of an album plays. This means that it isn't a codec problem, otherwise nothing would happen at all. Moreover, with mozplugger, the file opens very fast. However, it only plays the first song on the album and then stalls. Does anyone know how to get it to play the others? I have read somewhere that Xmms needs to be installed to do this. I have installed this on my computer but to no avail. Perhaps I need to make a link between Mplayer and Xmms?
 
Old 04-01-2007, 11:56 AM   #7
joslar
LQ Newbie
 
Registered: Feb 2006
Location: Espaņa
Posts: 9

Rep: Reputation: 1
Hello, You open the menu of mplayerplug-in and you select to Copy URL
Example of the capture:
Soon you open XMMS and you stick the direction in he himself, For most of webs of this type the users of GNU/Linux we did not exist.

http://img135.imagevenue.com/img.php..._122_443lo.jpg
http://img162.imagevenue.com/img.php..._122_593lo.jpg
 
Old 04-03-2007, 10:36 AM   #8
Tomermory
Member
 
Registered: Mar 2007
Location: Amiens, France
Distribution: Debian Etch,
Posts: 181

Original Poster
Rep: Reputation: 30
Thanks for the screenshots - that was very helpful. Sorry I haven't replied - I've had other Linux problems to sort out!
Now, I'm nearly there, but not quite. I've copied the URL as you've shown in your screenshot, and I can see now why it didn't work before - I simply wasn't right-clicking in the right place. Now the trouble is with xmms. I don't see a window like the one you've shown me. The closest I get is when I right click on the player, choose play then play file. However, I cannot paste the url here, as nothing happens when I right click. The only option is to past the URL into Writer and then copy out the address manually. This is hardly efficient, I'm clearly doing something wrong, and anyway nothing plays.
 
Old 04-03-2007, 03:33 PM   #9
mma8x
Member
 
Registered: Jul 2004
Posts: 164

Rep: Reputation: 30
well, it isn't that your plugin is too old--i'm using 3.21, and the nme radio works fine for me (cool site!). my ~/.mozilla/plugins directory is:
flashplayer.xpt
libflashplayer.so
libjavaplugin_oji.so
mplayerplug-in-gmp.so
mplayerplug-in-qt.so
mplayerplug-in-rm.so
mplayerplug-in.so
mplayerplug-in-wmp.so

i don't have a ~/.firefox directory. have you tried right-clicking the url and just trying mplayer from the console? running mplayer http://screlay-dtc0L-5.shoutcast.com:8032/ i get the following:

MPlayer dev-SVN-r18937-4.0.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) Processor (Family: 6, Model: 4, Stepping: 4)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.

Playing http://screlay-dtc0L-5.shoutcast.com:8032/.
STREAM_HTTP(1), URL: http://screlay-dtc0L-5.shoutcast.com:8032/
Resolving screlay-dtc0L-5.shoutcast.com for AF_INET6...
Couldn't resolve name for AF_INET6: screlay-dtc0L-5.shoutcast.com
Resolving screlay-dtc0L-5.shoutcast.com for AF_INET...
Connecting to server screlay-dtc0L-5.shoutcast.com[205.188.215.229]: 8032...
Name : NME broadband stream
Genre : Indie
Website: http://www.nme.com
Public : yes
Bitrate: 128kbit/s
Cache size set to 320 KBytes
Cache fill: 0.00% (0 bytes)
ICY Info: StreamTitle='Queens Of The Stone Age - In My Head';StreamUrl='';

Audio file file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
mpg123: Can't rewind stream by 61 bits!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
mpg123: Can't rewind stream by 84 bits!
A: 56.5 (56.4) of -0.0 (unknown) 1.1% 45%
ICY Info: StreamTitle='Arctic Monkeys - Leave Before The Lights Come On';StreamUrl='';


i've found that streams are usually more reliable when run with mplayer from the command line. hth.
 
Old 04-04-2007, 11:43 AM   #10
Tomermory
Member
 
Registered: Mar 2007
Location: Amiens, France
Distribution: Debian Etch,
Posts: 181

Original Poster
Rep: Reputation: 30
Thanks very much for your reply mma8x, that's very useful indeed. I never would have had the idea of using mlplayer in the command line.
However, I've just tried it and it doesn't work for me. I have downloaded the w32codec-all package, but mplayer appears to have trouble finding the codecs. Here is a copy (I've included my command so you can see if I've launched it properly):

Code:
linux-ubdy:/home/james # mplayer http://www.nme.com/
MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 2.60GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 http://www.nme.com/.
Resolving www.nme.com for AF_INET6...
Couldn't resolve name for AF_INET6: www.nme.com
Resolving www.nme.com for AF_INET...
Connecting to server www.nme.com[64.236.106.10]: 80...
Cache size set to 320 KBytes
Cache fill: 11.26% (36898 bytes)
Win32 LoadLibrary failed to load: avisynth.dll, /usr/lib/codecs/avisynth.dll, /u                                                           sr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll


Exiting... (End of file)
Thanks for your help
 
Old 04-04-2007, 11:59 AM   #11
Tomermory
Member
 
Registered: Mar 2007
Location: Amiens, France
Distribution: Debian Etch,
Posts: 181

Original Poster
Rep: Reputation: 30
I've just realised I did something stupid : I put the url as nme.com, which isn't a stream link.
This time I chose a stream via the media player and copied the url - but it still doesn't work. This is what I get:


Code:
linux-ubdy:/home/james # mplayer http://www.nme.com/mediaPlayer&function=playlist&playlist_id=928&s=wmp&m=hi&track=&unsigned=
[2] 5638
[3] 5639
[4] 5640
MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 2.60GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support. You will not be able to use your remote control.
[5] 5641
[6] 5642
[7] 5643

[2]+  Stopped                 mplayer http://www.nme.com/mediaPlayer
[3]   Done                    function=playlist
[4]   Done                    playlist_id=928
 
Old 04-04-2007, 03:56 PM   #12
mma8x
Member
 
Registered: Jul 2004
Posts: 164

Rep: Reputation: 30
well, you're using the wrong stream i think. all of the ampersands (&) in your command line are breaking up that line into separate commands, and attempting to run them (the non-sensical commands) in the background. try:
mplayer http://screlay-dtc0L-5.shoutcast.com:8032/
and see what happens. btw, are you running all of this from a root console?
 
Old 04-05-2007, 02:03 AM   #13
Tomermory
Member
 
Registered: Mar 2007
Location: Amiens, France
Distribution: Debian Etch,
Posts: 181

Original Poster
Rep: Reputation: 30
OK, we have a result! I copied and pasted the command you gave in a root terminal and nme radio began! Great! But, we're not there yet! What I like about this website is the nme media player, where you have a choice of albums that you can listen to simply by clicking the appropriate link. First you register, then you're away! Trouble is, this works for me in Windows but not in Linux
The url I pasted yesterday was, in fact, the one that I got from mplayer after clicking on one of the links. I followed the same procedure that joslar suggested. If I simply let the file play, I usually get nothing at all or, if I do get something, I can only listen to the first song on the album. Can using mplayer in the command line resolve this problem? If so, what is the procedure?
 
Old 04-05-2007, 04:19 AM   #14
osbie
Member
 
Registered: Jul 2004
Location: Los Angeles (the Great Cultural Wasteland)
Distribution: SuSe 10.2
Posts: 151

Rep: Reputation: 30
Dont know if this helps but... I use the KMplayer plugin (note the K)and have both Mplayer and Xine installed. Kmplayer i have defaulted to use
xine (right click on media screen window-> configure Kmplayer) and I have no problems with the 'on demand' media player.
Streaming Radio is opened in Amarok automatically. Now the ? is do you use KDE or Gnome, KMplayer being a KDE plug. I have never had any
satisfactory results with Mplayer doing anything for the last 3-4 years Xine on the otherhand has Never failed.

P.s. thanks for the (to me) new site. the Vids even look good full screen.

Last edited by osbie; 04-05-2007 at 04:30 AM.
 
Old 04-05-2007, 01:05 PM   #15
mma8x
Member
 
Registered: Jul 2004
Posts: 164

Rep: Reputation: 30
hard to tell exactly why you're not getting the right streams, since my plugin is working correctly. anyway:
mplayer http://195.93.22.157/timeinc/uk/ipcm...v?MSWMExt=.asf
is the stream i get through the media player.
 
  


Reply

Tags
mplayerplugin



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
Mplayer/Mplayer-plugin problems Buffbannana049 Fedora 3 07-12-2005 11:22 PM
mplayer problems gazza Mandriva 3 08-17-2004 09:19 AM
mplayer 0.92 problems Pougan Linux - Software 2 12-01-2003 11:17 AM
Mplayer problems... patrik1982 Linux - Software 3 10-21-2003 02:03 PM
mplayer problems ronss Linux - Software 2 10-15-2002 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:15 AM.

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
Open Source Consulting | Domain Registration