You are not logged in.

#1 2010-05-29 14:41:50

jebb
Member
Registered: 2006-02-24
Posts: 11

MPD not gapless anymore

Hi all,

I'm using the standard mpd package from Extra (0.15.9 apparently), and I'm now getting a small glitch on the transition between flac files. It's the slightest delay, probably less than a tenth of a second, and only really obvious on very rythmic transitions.

I'm dumbfounded: mpd's gapless playback has always been flawless in years of use. Can anybody else using mpd check this?

Offline

#2 2010-05-30 18:17:45

habbe
Member
Registered: 2009-09-06
Posts: 45

Re: MPD not gapless anymore

I actually got a small "pop" between many flacs, but some were flawless... I tried one album in mp3, and there was a definite gap. I have no idea how to explain these results.

Offline

#3 2010-05-31 23:29:35

xenobrain
Member
From: Lodi, CA
Registered: 2006-05-31
Posts: 91

Re: MPD not gapless anymore

I spotted this on the MPD wiki today:

May 30th, 2010 - mpd-0.15.10 released

MPD version 0.15.10 has been released. This bugfix release fixes a 0.15.2 regression with the mad decoder not properly calculating size. This also fixes a leak and another bug in the libmms plugin.

Might that explain the problems with mp3?

Last edited by xenobrain (2010-05-31 23:30:14)

Offline

#4 2010-05-31 23:37:28

sDoky
Member
From: Brno, Czech Republic
Registered: 2008-09-24
Posts: 183

Re: MPD not gapless anymore

I've built "mpd-pulse" from AUR and it doesn't do any gaps between any file types - even flac... (I suppose you could build "mpd-git", afaik it is the same version)


Linux!

Offline

#5 2010-06-03 08:07:44

habbe
Member
Registered: 2009-09-06
Posts: 45

Re: MPD not gapless anymore

0.15.10 is now in the repos, didn't change anything for me; at least one album in mp3 won't play gaplessly, some flacs give me "pop", some work flawlessly. In mpd.conf:

# If you have a problem with your MP3s ending abruptly it is recommended that
# you set this argument to "no" to attempt to fix the problem. If this solves
# the problem, it is highly recommended to fix the MP3 files with vbrfix
# (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point gapless MP3 playback can be enabled.
#
#gapless_mp3_playback                   "yes"

This won't make any difference which ever way I set this option, I haven't tried vbrfix.

Offline

#6 2010-06-03 10:08:23

Roline
Member
From: Netherlands
Registered: 2009-12-05
Posts: 207
Website

Re: MPD not gapless anymore

Stupid question, but you un-commented, right?


Bitbucket - DeviantART - Userstyles
*Currently Not Using Arch

Offline

#7 2010-06-04 06:46:20

habbe
Member
Registered: 2009-09-06
Posts: 45

Re: MPD not gapless anymore

That's not a stupid question, but anyway yes I (also) un-commented, and restarted mpd after each change.

Offline

#8 2010-07-03 16:12:13

jebb
Member
Registered: 2006-02-24
Posts: 11

Re: MPD not gapless anymore

Messing around a bit further: a clean install gave me perfectly gapless playback (I'm on x86_64 by the way).

Now I've gone back to my main install, and looked at my mpd.conf. It turns out I had the built-in http streaming enabled, I tried turning it off, and lo and behold! suddenly mpd is gapless again.

@habbe: I've never had any pops playing locally, but at the time I was experimenting with it the built-in httpd always gave me a stream full of pops. Are you playing locally through alsa?

Offline

#9 2010-07-05 20:20:21

habbe
Member
Registered: 2009-09-06
Posts: 45

Re: MPD not gapless anymore

jebb wrote:

@habbe: I've never had any pops playing locally, but at the time I was experimenting with it the built-in httpd always gave me a stream full of pops. Are you playing locally through alsa?

I use jack, and I don't have any http-stuff enabled. I now realize most of my flacs are playing perfectly, only a few of them that I didn't rip my self have this 'pop' even though it is a strong word for it. However, mp3:s are not gapless. I converted them from flacs that are playing perfectly, still a small gap between files.

Now I'm running the latest mpd from extra. I have to recompile to get jack-support, with only adding --enable-jack to the PKGBUILD.

Last edited by habbe (2010-07-05 20:22:05)

Offline

#10 2010-07-06 17:40:16

jebb
Member
Registered: 2006-02-24
Posts: 11

Re: MPD not gapless anymore

OK, I understand better now.

MPD is gapless on mp3, provided the files contain the right metadata. Specifically the Xing/Lame header containing the exact number of milliseconds the file lasts or something (haven't looked at that in years).

It is unfortunately entirely possible to have a lame-encoded mp3 which will fail to play gaplessly: it's down to the encoder you use (itself probably calling lame) to write the correct metadata to the file. I've noticed recently as an example that soundconverter, which I'd been using lately, fails to produce gapless files.

How do you encode from flac to mp3?

Offline

#11 2010-07-06 17:44:46

habbe
Member
Registered: 2009-09-06
Posts: 45

Re: MPD not gapless anymore

I use soundconverter.

EDIT. I tried converting to ogg with soundconverter and the result is gapless playback.

Last edited by habbe (2010-07-06 18:03:24)

Offline

Board footer

Powered by FluxBB