Discussion:
Bug: cmus stops playing mp3 files too early
l***@wir-haben-nachwuchs.de
2012-01-08 16:53:02 UTC
Permalink
Hello!

First a thank you for your great work on cmus!

Usually cmus works nicely for me but now I have a couple of mp3 files that causes problems. cmus seems to underestimate the duration of these files and stops playing too early (the duration displayed is also wrong). The point at which it stops depends on the file.
However vlc plays these files correctly (as well as calculation the right duration). It would be nice if you fix this. Thanks in advance.

cmus v2.4.3
libmad-0.15.1b-r6

If you need any further information, please let me know.

Cheers,
Leo
--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone
Gregory Petrosyan
2012-01-09 21:48:27 UTC
Permalink
Post by l***@wir-haben-nachwuchs.de
First a thank you for your great work on cmus!
Glad you like it!
Post by l***@wir-haben-nachwuchs.de
Usually cmus works nicely for me but now I have a couple of mp3 files that
causes problems. cmus seems to underestimate the duration of these files and
stops playing too early (the duration displayed is also wrong). The point at
which it stops depends on the file. However vlc plays these files correctly
(as well as calculation the right duration). It would be nice if you fix
this. Thanks in advance.
cmus v2.4.3
libmad-0.15.1b-r6
If you need any further information, please let me know.
If you can, please provide the problematic files so that we can try to
reproduce and fix the bug, which otherwise is almost impossible.

Gregory
Peter
2012-01-11 15:35:46 UTC
Permalink
Post by l***@wir-haben-nachwuchs.de
cmus seems to underestimate the duration of these files and stops playing too
early (the duration displayed is also > wrong).

I (Ubuntu 11.10, cmus 2.4.2) encountered the same problem. Setting "set
output_plugin=pulse" in the "~/.cmus/rc" file (instead of "set
output_plugin=alsa") solved the problem for me.
l***@wir-haben-nachwuchs.de
2012-01-22 14:30:20 UTC
Permalink
Hello,
Post by Peter
I (Ubuntu 11.10, cmus 2.4.2) encountered the same problem. Setting "set
output_plugin=pulse" in the "~/.cmus/rc" file (instead of "set
output_plugin=alsa") solved the problem for me.
Thank you for your suggestion, but it is not option for me. I wont burden myself with pulseaudio to work around a bug in cmus. How can the output plugin actually effect the calculated duration of a mp3 file?

Cheers,
Leo
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Jason Woofenden
2012-01-22 17:58:35 UTC
Permalink
Post by l***@wir-haben-nachwuchs.de
Hello,
Post by Peter
I (Ubuntu 11.10, cmus 2.4.2) encountered the same problem.
Setting "set output_plugin=pulse" in the "~/.cmus/rc" file
(instead of "set output_plugin=alsa") solved the problem for
me.
Thank you for your suggestion, but it is not option for me. I
wont burden myself with pulseaudio to work around a bug in cmus.
How can the output plugin actually effect the calculated duration
of a mp3 file?
Peter experienced a similar problem, which seemed to be caused by
the alsa emulation in PulseAudio.

If you're not running PulseAudio, then this isn't the issue here.
Please double check on this though.

Is cmus displaying the wrong duration? If so I don't think it could
be output-plugin related.


I suspect Gregory is correct, that we won't be able to help you
unless you can provide us with one of the tracks that plays wrong
so we can reproduce this issue.

- Jason
Gregory Petrosyan
2012-01-22 19:35:20 UTC
Permalink
Post by Jason Woofenden
I suspect Gregory is correct, that we won't be able to help you
unless you can provide us with one of the tracks that plays wrong
so we can reproduce this issue.
Leo has sent me the file, and I can reproduce the bug — it looks like cmus'
duration calculation is wrong indeed. Unfortunately, I had no time to dig into
the issue and try to fix it yet :-(

Gregory
Paul Kramer
2012-01-22 19:46:25 UTC
Permalink
Post by Gregory Petrosyan
Post by Jason Woofenden
I suspect Gregory is correct, that we won't be able to help you
unless you can provide us with one of the tracks that plays wrong
so we can reproduce this issue.
Leo has sent me the file, and I can reproduce the bug — it looks like cmus'
duration calculation is wrong indeed. Unfortunately, I had no time to dig into
the issue and try to fix it yet :-(
Gregory
I have noticed this problem shortly after I read the first message. Just
with one song so far. It is in the .ogg format, but I cannot remember
which one it was.
l***@wir-haben-nachwuchs.de
2012-01-22 20:47:15 UTC
Permalink
Hello!
Post by Jason Woofenden
If you're not running PulseAudio, then this isn't the issue here.
Please double check on this though.
Yes, I am absolutely sure that PulseAudio isn't even installed. The system uses bare alsa (alsa-lib 1.0.24.1, kernel 3.2 but it happened with older kernels as well).
Post by Jason Woofenden
Is cmus displaying the wrong duration? If so I don't think it could
be output-plugin related.
Yes, cmus displays the wrong duration.

Wouldn't it be the easiest solution to let cmus always play to the end of the file, instead of honoring the calculated duration?

Cheers,
Leo
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Duncan
2014-01-31 10:41:58 UTC
Permalink
Hi,

Any news on a fix for this bug? Or perhaps a workaround? I've been using
cmus for quite a while to listen to radio recordings, but have recently
started listening to longer audiobooks. These are generally big files
(around 400MB for eight hours running time). Being unable to access the last
hour of a book spoils it a bit :)

I've experimented with one of the problematic files and converted it from
variable to constant bit rate, but that made no difference. Happy to send
either, but it sounds like you can reproduce the problem already.

I think cmus is a great media player, it just does stuff right.

Thanks for your help.

Duncan.
Julian Orth
2014-01-31 12:24:35 UTC
Permalink
Test https://github.com/mahkoh/cmus/tree/mp3
Duncan
2014-01-31 15:29:58 UTC
Permalink
Test https://github.com/mahkoh/cmus/tree/mp3
That works just fine. Thanks!

Duncan.

Loading...