Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bad playback with XMMS [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Sargonmetal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2005
Posts: 78
Location: Barcelona

PostPosted: Tue May 10, 2005 8:28 pm    Post subject: Bad playback with XMMS [SOLVED] Reply with quote

Hi,

My XMMS playback is very poor, every 10 seconds the music breaks just like when you have a bad mp3 file and you hear that strange little sound. I have noticed that just before it happens, I can hear my Hard Disk reading something just a second, and then the music breaks.

I remember that when I had gnome 2.8 it all worked fine, but I can't be sure it is Gnome 2.10 fault...
Anyway, I don't know what on earth I can do... I will really appreciate any help. Ask me for any system info if you need it.

Thanks!


Last edited by Sargonmetal on Wed May 11, 2005 11:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 996

PostPosted: Wed May 11, 2005 4:50 am    Post subject: Reply with quote

Hi!

Try another app like mpd together with gmpc or ncmpc. Does it still happen?

Cheers

mic
Back to top
View user's profile Send private message
Sargonmetal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2005
Posts: 78
Location: Barcelona

PostPosted: Wed May 11, 2005 9:04 am    Post subject: Reply with quote

I've installed mpd, but when I try to run it I get the following error message:

Code:

 /etc/init.d/mpd start
 * Caching service dependencies ...                                                            [ ok ] * Starting Music Player Daemon ...
can't create directory /dev/null/.mcop (Not a directory)
problems getting ao_driver_info
you may not have permission to the audio device                                                [ !! ]


Maybe this has something to do with the problem I have with XMMS? Anyway, what should I do?
Thanks!!
Back to top
View user's profile Send private message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 996

PostPosted: Wed May 11, 2005 10:08 am    Post subject: Reply with quote

Use /etc/mpd.conf to tell mpd to use your user (owner of your music), chown /var/log/mpd.* to that user. See that the everything else matches. Runs wonderful here,

mic
Back to top
View user's profile Send private message
Sargonmetal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2005
Posts: 78
Location: Barcelona

PostPosted: Wed May 11, 2005 10:44 am    Post subject: Reply with quote

I've changed that but I still get an error:

Quote:
/etc/init.d/mpd start
* Starting Music Player Daemon ...
unix_connect: can't connect to server (unix:/tmp/mcop-uri/gateway-5b6a-425c1cd7) [ ok ]


I try to connect to localhost:6600 but I get no answer... Any ideas?
Thanks!
Back to top
View user's profile Send private message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 996

PostPosted: Wed May 11, 2005 11:44 am    Post subject: Reply with quote

Post your mpd.conf

mic
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Wed May 11, 2005 12:17 pm    Post subject: Re: Bad playback with XMMS Reply with quote

Hi,

Sargonmetal wrote:

My XMMS playback is very poor, every 10 seconds the music breaks just like when you have a bad mp3 file and you hear that strange little sound. I have noticed that just before it happens, I can hear my Hard Disk reading something just a second, and then the music breaks.

I remember that when I had gnome 2.8 it all worked fine, but I can't be sure it is Gnome 2.10 fault...
Anyway, I don't know what on earth I can do... I will really appreciate any help. Ask me for any system info if you need it.


Could you give me a bit more information? First, are you using the xmms-alsa plugin and, if so, what version are you using? I've found that 1.2.10-r2 is buggy, but 1.2.10 works fine. So, in short, try the older version if you're using the new version.

Also, if you have a processor capable of hyperthreading and you have an SMP kernel compiled, you need to use the xmms-crossfade plugin installed.

Best,

Alex
Back to top
View user's profile Send private message
Sargonmetal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2005
Posts: 78
Location: Barcelona

PostPosted: Wed May 11, 2005 2:44 pm    Post subject: Reply with quote

Thank you very much evoweiss, I am using Hyper Threading with SMP on kernel indeed, and I was not using that pluggin.
I've installed the xmms-crossfade and it work completely fine. But when the second song had to begin it hadn't. I tried to listen to the first one again but the same thing happened: the song didn't start. I reset XMMS and I tryed to listen to any song and I got the following error:

Quote:

failed to open audio output: Crossfade Plugin 0.3.8


I have done nothing and the pluggin just have worked for one song... I'm so frustated... I hope you can help me with that..
I have the buggy version of xmms-alsa, how can I get the old one?

By the way, here you have my complete mpd.conf file, my user is "uri":
Quote:

# MPD CONFIG FILE
# For a full description of all config parameters,
# Check the mpd man page, "man mpd".

##################### REQUIRED ###########################
port "6600"
music_directory "/usr/share/mpd/music"
playlist_directory "/usr/share/mpd/playlists"
log_file "/var/log/mpd.log"
error_file "/var/log/mpd.error.log"
##########################################################

##########################################################
# EVERYTHING ELSE IS OPTIONAL
##########################################################

################# FILESYSTEM SETTINGS ####################
#
# If the names of files or directories are
# not correctly displayed then set the
# following to the filesystem coding.
#
# Usually this is either:
# ISO-8859-1 or UTF-8
#
# After changing the filesystem_charset
# you will need to recreate the db:
# mpd --create-db
#
filesystem_charset "UTF-8"
#
##########################################################

#################### OPTIONAL FILES ######################
#
# Location of DB file
#
#db_file "~/.mpd/mpd.db"
#
# The state file (if set) will be a file
# for storing all current information
# (playlist, playing/paused, etc...) from
# the last MPD session. This will be used
# to recreate your last MPD session after
# restart.
#
#state_file "~/.mpd/mpdstate"
#
##########################################################


################### VOLUME MIXER #########################
#
# Examples:
# ALSA Mixer
#mixer_type "alsa"
#mixer_device "default"
#mixer_control "PCM"
#
# OSS Mixer
#mixer_type "oss"
#mixer_device "/dev/mixer"
#mixer_control "PCM"
#
# Software Mixer
#mixer_type "software"
#
##########################################################


################## AUDIO OUTPUT ##########################
#
# OSS Audio Output
#ao_driver "oss"
#ao_driver_options "dsp=/dev/dsp"
#
# ALSA Audio Output
#ao_driver "alsa09"
#ao_driver_options "dev=hw:0,0"
#
# Set this if you have problems
# playing audio files.
# This will resample your music so
# that it comes out at the set rate.
#
#audio_output_format "44100:16:2"
#
# You should not need mess with
# this value unless you know
# what you're doing.
#
#audio_write_size "1024"
#
##########################################################

################# REPLAYGAIN #############################
#
# Use Replay Gain (album or title)
# http://www.replaygain.org
#
#replaygain "album"
#
# Sets the pre-amp used for files that have replaygain
# info. Valid values are between -15 to 15 (in dB).
#
#replaygain_preamp "0"
#
##########################################################


################ OUTPUT BUFFER SETTINGS ##################
#
# You should not need to mess with this
# unless you know what you're doing.
#
#audio_buffer_size "2048"
#
# This means exactly what it says, it will
# buffer your file up to the percentage of
# the buffer before it begins playing.
#
#buffer_before_play "25%"
#
##########################################################


################### HTTP PROXY ###########################
#
# http_proxy_host "proxy.isp.com"
# http_proxy_port "8080"
# http_proxy_user "user"
# http_proxy_password "password"
#
##########################################################


################# SECURITY SETTINGS ######################
#
# It is encouraged to run MPD as
# non-superuser. If you start mpd as root
# (for example, in an init script), set
# this value, then mpd will drop root priveleges
# and runs as the user specified.
#
user "uri"
#
# Set this value if you only have one
# address you want to allow connection to.
#
bind_to_address "localhost"
#
# If you want to setup MPD to use
# passwords set them here
#
#password "password1@read,add,control,admin"
#password "password2@read"
#
# Specify permissions used by default when no password is
# given by for a connection/client.
#
#default_permissions "read,add,control,admin"
#
##########################################


################ MISCELLANEOUS OPTIONS ###################
#
# This setting exists as precaution against attacks.
#
#max_playlist_length "16384"
#
# Valid options are "default", "secure" or "verbose".
#log_level "default"
#
#connection_timeout "60"
#
# This should be fine for 2-3 people using clients
# at the same time.
#
#max_connections "5"
#
# No need to change these unless you know better.
#
#max_command_list_size "2048"
#max_output_buffer_size "2048"
#
# This will make playlists compatible with normal music
# players.
#
#save_absolute_paths_in_playlists "no"
#
##########################################################


Thanks to all, I really want to listen music on my Linux!! :wink:
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Wed May 11, 2005 2:54 pm    Post subject: Reply with quote

Sargonmetal wrote:
Thank you very much evoweiss, I am using Hyper Threading with SMP on kernel indeed, and I was not using that pluggin.
I've installed the xmms-crossfade and it work completely fine. But when the second song had to begin it hadn't. I tried to listen to the first one again but the same thing happened: the song didn't start. I reset XMMS and I tryed to listen to any song and I got the following error:

Code:

failed to open audio output: Crossfade Plugin 0.3.8


I have done nothing and the pluggin just have worked for one song... I'm so frustated... I hope you can help me with that..
I have the buggy version of xmms-alsa, how can I get the old one?


Not sure about the other problem you're having, but to install the older (working) xmms-alsa plugin, do the following:

Code:

$ emerge =xmms-alsa-1.2.10


Then, add the following to /etc/portage/package.mask so it doesn't try installing the new version when you do an emerge -uD world.

Code:

=media-plugins/xmms-alsa-1.2.10-r2


As per your other problem, try a few of these things and see if they work.

In the alsa plugin settings, uncheck mmap. Also, look at any possible crossfade settings. I recall there was some bug with pausing songs, so that might have something to do with it as well.

Best,

Alex
Back to top
View user's profile Send private message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 996

PostPosted: Wed May 11, 2005 5:02 pm    Post subject: Reply with quote

Sargonmetal wrote:
I've changed that but I still get an error:

Quote:
/etc/init.d/mpd start
* Starting Music Player Daemon ...
unix_connect: can't connect to server (unix:/tmp/mcop-uri/gateway-5b6a-425c1cd7) [ ok ]


I try to connect to localhost:6600 but I get no answer... Any ideas?
Thanks!


With what did you try to connect? With a browser? :D You need to connect with a proper client, like gmpc, you know that, don't you? :)

Cheers

mic
Back to top
View user's profile Send private message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 996

PostPosted: Wed May 11, 2005 5:03 pm    Post subject: Reply with quote

Sargonmetal wrote:

music_directory "/usr/share/mpd/music"
playlist_directory "/usr/share/mpd/playlists"
log_file "/var/log/mpd.log"
error_file "/var/log/mpd.error.log"

Like I said, change 'music_directory' to the dir where your user uri stores his music. Create a dir for the playlist (uri needs write access) and point 'playlist_directory' to it. Use 'chown' to make the user uri the owner of the log files, like
Code:
chown uri:users /var/log/mpd*

Quote:

filesystem_charset "UTF-8"

In case you still run into errors try uncommenting the above line.
Quote:

################### VOLUME MIXER #########################
#
# Examples:
# ALSA Mixer
#mixer_type "alsa"
#mixer_device "default"
#mixer_control "PCM"
#
# OSS Mixer
#mixer_type "oss"
#mixer_device "/dev/mixer"
#mixer_control "PCM"
#
# Software Mixer
#mixer_type "software"
#
##########################################################


################## AUDIO OUTPUT ##########################
#
# OSS Audio Output
#ao_driver "oss"
#ao_driver_options "dsp=/dev/dsp"
#
# ALSA Audio Output
#ao_driver "alsa09"
#ao_driver_options "dev=hw:0,0"
#
# Set this if you have problems
# playing audio files.
# This will resample your music so
# that it comes out at the set rate.
#
#audio_output_format "44100:16:2"
#
# You should not need mess with
# this value unless you know
# what you're doing.
#
#audio_write_size "1024"
#
##########################################################

If mpd gets confused about what audio device/mixer settings to use try naming them explicitly.

Cheers

mic
Back to top
View user's profile Send private message
Level52
n00b
n00b


Joined: 04 Feb 2004
Posts: 8

PostPosted: Wed May 11, 2005 5:35 pm    Post subject: Reply with quote

Do you maybe have DMA transfer disabled for your harddisk? You can check with hdparm -d /dev/hda (or whatever your hd is).
Back to top
View user's profile Send private message
Sargonmetal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2005
Posts: 78
Location: Barcelona

PostPosted: Wed May 11, 2005 11:23 pm    Post subject: Reply with quote

Finally I have got XMMS work perfectly!
I've "downdated" the version of alsa (to the 1.2.10) and applied to the crossfade pluggin it all goes fine. What has happened before was that the default output of crossfade pluggin not only did crash out XMMS but also had to do a reboot to listen to anything (mp3 via rhythmbox, dvds, etc...). So I changed the output of crossfade to the "downdated" alsa pluggin and all is finally ok now.
Anyway, thanks for all your help, I really appreciate it. :D

BTW I will answer your questions, but, I will not keep trying to configure mpd because XMMS works excellent.

Quote:

Do you maybe have DMA transfer disabled for your harddisk? You can check with hdparm -d /dev/hda (or whatever your hd is).


Yes I have it on :) The problem was that I have Hyper Threading enabled on the kernel and I didn't use xmms-crossfade pluggin.

Quote:

With what did you try to connect? With a browser? :D You need to connect with a proper client, like gmpc, you know that, don't you? :)


Yes, with a browser :oops:
But I was trying also with gmpc and it didn't work. Anyway, I think that if I'd applied the chown command correctly I'd probably work it out, but now that XMMS is ok I don't want to have this weird program on my PC anymore (weird just for me and my ignorance! :lol: )

Thanks to all very much! I'll mark this topic as solved :D
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Thu May 12, 2005 12:54 am    Post subject: Reply with quote

Hey,

Glad it's all working for you now :). That xmms problem had me stumped for AGES until somebody with the same problem managed to come across the solution via a google search. I tried searching google beforehand, but, apparently, never came across the same webpage. The same problem exists for beep-media-player and the same solution will work, i.e., using the bmp-crossfade plugin.

I did post a bug to the xmms bugtracker, but, alsa, they don't seem eager to fix it and the new version of the plugin makes matters worse, sigh.

I'm really hoping xmms2 will be the ticket. I've tried other music players and, well, I just couldn't get into them for some reason. I guess I like to keep things simple.

Best,

Alex
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
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