LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-19-2006, 02:33 PM   #1
beserkjay
Member
 
Registered: May 2006
Posts: 53

Rep: Reputation: 15
Trying to get xine to play mp3s


I know my sound works, or at least I know it does with gaim, but I can't get any mp3s (or .wma) files to play with xine.

I did some searching and found that xine doesn't nativly come with software that allows it to play mp3s. However I can't find a download for slack.

Could someone help me find what I need to install to get mp3s to work or give me another media player to try?

Thanks.
 
Old 08-19-2006, 03:01 PM   #2
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
You can get the mplayer codecs package from linuxpackages.net which will give you the necessary codecs for windows/realplayer etc formats. You may also need to configure xmms to tell it where things are.
 
Old 08-19-2006, 03:02 PM   #3
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
You should be able to find a codec for it or a link for one, on the xine site. mplayer seems to have the widest selection of codecs and codec links of all the players that run in X (not including anything that requires KDE/GNOME I don't know anything about those). If you want to use it you should build mplayer from source for best results. XMMS is a good player also and comes on the Slack 10.2 distro.
 
Old 08-19-2006, 03:04 PM   #4
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
I misread it. xmms is another media player. Xine should work fine.
 
Old 08-19-2006, 03:12 PM   #5
beserkjay
Member
 
Registered: May 2006
Posts: 53

Original Poster
Rep: Reputation: 15
ok I just installed xmms, and its doing the same thing that xine did.

When I open an mp3 it gives all the information, but it never plays. Its like you pressed the stop button. The player never actually plays the song.
 
Old 08-19-2006, 03:15 PM   #6
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
If it gives you all the info I'm pretty sure the codec for mp3 is working. If you check alsamixer and max out all the channels, pull up the options or prefs menu in XMMS and make sure you're taking the default devices.
 
Old 08-19-2006, 03:23 PM   #7
beserkjay
Member
 
Registered: May 2006
Posts: 53

Original Poster
Rep: Reputation: 15
Its confusing me why the file wont even start. The timer just stays at 00:00.
 
Old 08-19-2006, 03:30 PM   #8
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Usually that means the output device doesn't exist. Did you check prefs?
 
Old 08-19-2006, 05:15 PM   #9
beserkjay
Member
 
Registered: May 2006
Posts: 53

Original Poster
Rep: Reputation: 15
I have been playing around with the preferences and I still can't get it to start the file.
 
Old 08-20-2006, 02:22 AM   #10
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Have you got the codecs installed?
 
Old 08-20-2006, 06:24 AM   #11
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by beserkjay
I have been playing around with the preferences and I still can't get it to start the file.
Do you have mpeg layer 1/2/3 (libmpg123.so) in your list of input plugins?
What output plugin are you using?
What audio device?
What mixer device?

Did you run alsamixer?
Are master and PCM maxxed both ON and maxxed-out?
Is your alsa script in rc.d executable?
Is the volume control up on XMMS?

Last edited by Randux; 08-20-2006 at 06:26 AM.
 
Old 08-24-2006, 04:38 PM   #12
beserkjay
Member
 
Registered: May 2006
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Randux
Do you have mpeg layer 1/2/3 (libmpg123.so) in your list of input plugins?
What output plugin are you using?
What audio device?
What mixer device?

Did you run alsamixer?
Are master and PCM maxxed both ON and maxxed-out?
Is your alsa script in rc.d executable?
Is the volume control up on XMMS?
Ok I have been busy and havn't gotten a chance to play with it some more but I am trying to get it working again.

In xmms, I do have the mpeg layer 123 plugin enabled. The output plugin I am using is alsa 1.2.10. The audio device is ESS Audio Drive ES1869 hw 0,0. The mixer device just says pc speaker.

I ran alsamixer and everything is turned up, including master and PCM. I don't know what you mean by "Is your alsa script in rc.d executable. And yes the volume is up on xmms.

Like I said, the strange thing is the file doesn't even start. It says at 00:00 even when I try and start it from the middle of the file, it goes back to 00:00. What could be preventing the file from even starting?

Thanks for your reply.
 
Old 08-24-2006, 04:48 PM   #13
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by beserkjay
Ok I have been busy and havn't gotten a chance to play with it some more but I am trying to get it working again.

In xmms, I do have the mpeg layer 123 plugin enabled. The output plugin I am using is alsa 1.2.10. The audio device is ESS Audio Drive ES1869 hw 0,0. The mixer device just says pc speaker.

I ran alsamixer and everything is turned up, including master and PCM. I don't know what you mean by "Is your alsa script in rc.d executable. And yes the volume is up on xmms.

Like I said, the strange thing is the file doesn't even start. It says at 00:00 even when I try and start it from the middle of the file, it goes back to 00:00. What could be preventing the file from even starting?

Thanks for your reply.
One reason a file doesn't start is that it can't find the output device.

I don't know what ESS Audio is, is that an external soundcard? You should run alsaconf and let it use your onboard soundcard. After you get that working, if you have an external one we can work on that next. After alsaconf, go back to xmms prefs, click on "configure" on the alsa output plugin and choose "driver defaults" for everything. Close xmms.

Go to a root terminal and do ls on /etc/rc.d/rc.alsa*
It should be executable and show something like this:
Code:
lrwxrwxrwx   1 root root     14 2006-03-24 09:23 rc.alsa -> rc.alsa.no.oss
-rwxr-xr-x   1 root root   1191 2006-07-17 03:30 rc.alsa.no.oss
Note the rc.alsa is a symlink to either rc.alsa.oss or rc.alsa.no.oss. It will always look lrwxrwxrwx. What we care about is what whatever it points to is set as. In this case we are looking at rc.alsa.no.oss.
If you don't see x in there but only r or rw then do chmod 751 rc.alsa.no.oss to make it executable during startup.

Then do /etc/rc.d/rc.alsa to start it yourself (next time you boot it will run automatically)

Then back out of root to user terminal and do alsamixer.
You should see a bunch of channels like main line aux PCM etc. Turn them all on (key m) and use up arrow to pump...up the volume. Escape to save settings.

Now try xmms again.

Last edited by Randux; 08-24-2006 at 04:52 PM.
 
Old 08-24-2006, 05:05 PM   #14
beserkjay
Member
 
Registered: May 2006
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Randux
One reason a file doesn't start is that it can't find the output device.

I don't know what ESS Audio is, is that an external soundcard? You should run alsaconf and let it use your onboard soundcard. After you get that working, if you have an external one we can work on that next. After alsaconf, go back to xmms prefs, click on "configure" on the alsa output plugin and choose "driver defaults" for everything. Close xmms.

Go to a root terminal and do ls on /etc/rc.d/rc.alsa*
It should be executable and show something like this:
Code:
lrwxrwxrwx   1 root root     14 2006-03-24 09:23 rc.alsa -> rc.alsa.no.oss
-rwxr-xr-x   1 root root   1191 2006-07-17 03:30 rc.alsa.no.oss
Note the rc.alsa is a symlink to either rc.alsa.oss or rc.alsa.no.oss. It will always look lrwxrwxrwx. What we care about is what whatever it points to is set as. In this case we are looking at rc.alsa.no.oss.
If you don't see x in there but only r or rw then do chmod 751 rc.alsa.no.oss to make it executable during startup.

Then do /etc/rc.d/rc.alsa to start it yourself (next time you boot it will run automatically)

Then back out of root to user terminal and do alsamixer.
You should see a bunch of channels like main line aux PCM etc. Turn them all on (key m) and use up arrow to pump...up the volume. Escape to save settings.

Now try xmms again.

Thanks for the quick reply and your patience. I am trying to get this working on my old laptop. So old in fact that it has an ISA sound card. Before I think it detected the wrong sound card. Now when I turn up the volume on XMMS all the way I can hear feedback from the speakers.

However, it still does the same thing. The music file stays at 00:00 when I try to play it, so it still doesn't even seem like the music file is starting.
 
Old 08-24-2006, 06:02 PM   #15
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by beserkjay
Thanks for the quick reply and your patience. I am trying to get this working on my old laptop. So old in fact that it has an ISA sound card. Before I think it detected the wrong sound card. Now when I turn up the volume on XMMS all the way I can hear feedback from the speakers.

However, it still does the same thing. The music file stays at 00:00 when I try to play it, so it still doesn't even seem like the music file is starting.
I'm no expert on this (obviously as we didn't fix it by now ) but I think maybe on an older PC you will need to use OSS which is a compatibility layer for alsa for older hardware (Old Sound System).

You can change the symlink later but for now try to execute alsa.no.oss instead and change your output plugin in xmms to oss and select default drivers/default mixer device and see if this works better.
 
  


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
I cannot play MP3s spiffytech Fedora 7 04-27-2006 08:53 PM
Xine refuses to play MP3s winterhunter Linux - Newbie 5 10-24-2005 12:49 PM
Rhythmbox-Xine cannot import certain MP3s kramk2 Linux - Software 2 11-29-2004 01:19 PM
Why doesn't it play mp3s ? web384 Linux - Software 2 03-22-2004 09:12 AM
Cannot play MP3s Inuyasha-kun Linux - Newbie 7 12-08-2003 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:58 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
Open Source Consulting | Domain Registration