You are not logged in.

#1 2008-05-05 22:40:18

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Minor issue with MPD (first second of tracks being skipped)

For the past few weeks or so, when I change tracks with my multimedia keys (which are mapped to run 'mpc next', etc), the first half-second to full second of the next track is cut off. I haven't changed any configuration files, and my system's up to date. I have no idea what I can do to get things playing the way I want them to. Optimally, I'd like a half-second to full-second pause <i>between</i> tracks instead of cutting off the first little part of a track. Any ideas out there?

EDIT: Forgot to include a descriptive topic title. Those are important. smile

Last edited by xelados (2008-05-05 22:56:57)

Offline

#2 2008-05-06 08:11:25

kakTuZ
Member
From: Hannover, Germany
Registered: 2007-10-20
Posts: 86

Re: Minor issue with MPD (first second of tracks being skipped)

Hi, I don't think i have your problem (or I just unobservable for me). But you can try to set some non zero value on the

buffer_before_play              "0%"

line in /etc/mpd.conf

Offline

#3 2008-05-08 01:02:27

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Minor issue with MPD (first second of tracks being skipped)

I tried that and restarted mpd. The problem still wasn't fixed... Could it be a problem in alsa?

Offline

#4 2008-05-08 16:50:31

Agent69
Member
Registered: 2006-05-26
Posts: 189

Re: Minor issue with MPD (first second of tracks being skipped)

I would try playing your files in an alternate player before assuming the problem is with alsa. What format are your music files in?

Offline

#5 2008-05-08 18:26:07

japetto
Member
From: Chicago, IL US
Registered: 2006-07-02
Posts: 183

Re: Minor issue with MPD (first second of tracks being skipped)

Does this also happen if you use

mpc next

from the command line? If so, posting your mpd.conf would help.

Last edited by japetto (2008-05-08 20:51:38)

Offline

#6 2008-05-08 19:37:27

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Minor issue with MPD (first second of tracks being skipped)

japetto: Yes, it does that even in the command line. I don't seem to have an mpc.conf file, however. My mpd.conf is simply default settings with the directories changed to suit my setup.

Agent69: My files are all mp3 and ogg. This issue occurs with both types of files in mpd.

Offline

#7 2008-05-08 20:57:23

japetto
Member
From: Chicago, IL US
Registered: 2006-07-02
Posts: 183

Re: Minor issue with MPD (first second of tracks being skipped)

Oops sorry, I meant mpd.conf.

Offline

#8 2008-05-08 21:30:30

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Minor issue with MPD (first second of tracks being skipped)

http://rafb.net/p/p1r75J96.html

There's my mpd.conf

Offline

#9 2008-05-09 18:07:14

japetto
Member
From: Chicago, IL US
Registered: 2006-07-02
Posts: 183

Re: Minor issue with MPD (first second of tracks being skipped)

Well I would suggest maybe changing the audio output in mpd.conf to a specific audio output and see if the problem is related to a specific output type and/or looking for help on #mpd on irc.freenode.net or using the MPD forums, http://www.musicpd.org/forum/.

Offline

#10 2008-05-09 18:12:21

japetto
Member
From: Chicago, IL US
Registered: 2006-07-02
Posts: 183

Re: Minor issue with MPD (first second of tracks being skipped)

Oh and have you checked the MPD log file?

Offline

#11 2008-05-10 03:44:43

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Minor issue with MPD (first second of tracks being skipped)

japetto: The log file just contains adding/removal of tracks from the playlist.

Offline

#12 2008-05-15 15:04:25

watsonalgas
Member
Registered: 2007-01-15
Posts: 92

Re: Minor issue with MPD (first second of tracks being skipped)

I don't know if you fixed it or not, but defining ALSA as my output fixed it for me.  I just uncommented the first output example in mpd.conf.

Offline

#13 2008-05-20 20:18:37

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: Minor issue with MPD (first second of tracks being skipped)

I'm having the same problem, and unfortunately, uncommenting the alsa section in mpd.conf didnt fix the problem. It seems to happen when I cycle through songs, not when it defaultly switches to the next song

Offline

#14 2008-05-25 18:51:12

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: Minor issue with MPD (first second of tracks being skipped)

Sorry to shamelessly bump my own post, but I feel like I've tried everything to get this working, and I'm still having the problem

Offline

#15 2008-06-01 00:53:10

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Minor issue with MPD (first second of tracks being skipped)

I've found this to happen throughout ALSA itself.. speaker-test did it, mplayer does it, mpd does it... I don't understand what's causing the problem.

Offline

#16 2008-06-01 15:28:28

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: Minor issue with MPD (first second of tracks being skipped)

I solved my problem finally. It is an alsa issue, I also tested it with speaker-test, mplayer, etc. What solved it for me was setting up my dmix correctly (there's one tailored for maudio revolution 5.1 that i found while searching around) and now it works great!

Offline

#17 2008-06-01 17:15:55

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Minor issue with MPD (first second of tracks being skipped)

heleos: Could you link to the page that helped you?

Offline

#18 2008-06-02 00:32:34

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: Minor issue with MPD (first second of tracks being skipped)

I believe I used the .asoundrc file from the alsa wiki for my card:

http://alsa.opensrc.org/index.php/Ice1724

Offline

#19 2008-06-02 14:25:28

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Minor issue with MPD (first second of tracks being skipped)

My card wasn't in that wiki page's list..

This is what 'lspci' outputs for my card:

nVidia Corporation CK804 AC'97 Audio Controller

And alsamixer itself:

Card: NVidia CK804
Chip: Realtek ALC850 rev 0


I searched the wiki and still can't seem to find a configuration that would fix this issue...

Last edited by xelados (2008-06-02 14:29:46)

Offline

#20 2008-06-19 20:08:19

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Minor issue with MPD (first second of tracks being skipped)

I hate to double post, but I still haven't found any fix for this issue. Has anyone else had a similar problem?

Offline

#21 2008-07-26 14:42:04

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Minor issue with MPD (first second of tracks being skipped)

A triple post, but still not much luck. I found a command on an ALSA wiki that gets rid of this for mplayer, but MPD (and aplay) still cut off the first half-second. Here's the command I used for mplayer:

mplayer -ao alsa:device=hw=0.0 -ac hwdts,hwac3, music/Cave\ Story/On\ To\ Grasstown.mp3

The above resulted in no skipping. I tried opening the same file with 'gmplayer' without options, and it worked identically. What are "hwdts" and "hwac3"? Could they be the trick to figuring this out?

Edit: Found a debug script. Here's its output: http://rafb.net/p/Ljp3ZS21.html

Last edited by xelados (2008-07-26 14:44:51)

Offline

Board footer

Powered by FluxBB