Bug 389327 - Amarok does not play last second(s) of tracks, affects played stats and last.fm scrobbling
Summary: Amarok does not play last second(s) of tracks, affects played stats and last....
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: amarok
Classification: Applications
Component: Playback (show other bugs)
Version: 2.8.90 (2.9 beta)
Platform: Other Linux
: NOR normal
Target Milestone: 2.9
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-22 20:41 UTC by Ski
Modified: 2018-03-29 14:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ski 2018-01-22 20:41:44 UTC
Sound system backend: Phonon-gstreamer

With a clean install of Linux / KDE5, Amarok does not play songs to the very end of the track, it is especially noticeable when tracks are continuous - there's no gapless playback. The problem causes two problems:

1. When playing tracks, the statistics of being played are not necessarily logged into the database (I use MariaDB, although the version that uses Amarok's own database has the same result). If you queue songs, or play songs normally, the ONLY song guaranteed to be logged into the database as played / date / time etc, is the very last track, which usually plays right to the very end of the track.

I have played a few new tracks a few times, but they are not being logged as having ever been played because the tracks do not play to the end, The tracks are in the database correctly.


2. Because of the problem described in 1, this is affecting last.FM scrobbling. What happens is, a track plays, the details are sent to Last.FM as "now playing..." and you can see that on your Last.FM stats page. Then when you refresh your stats page on Last.FM when the next track starts playing, the track you were playing is deleted - it is registering as a user interrupted track, so it is not logged as having been played. Again, the one track that does get logged, is the very last track you play - it plays to the end.

I have tracks on a tablet to test Last.FM using VLC, there is no problem with the Last.FM account, all tracks played on the tablet are logged, so it is definitely an Amarok problem.

As a further test. I have queued just one track and let that play. It plays to the end, and it does get logged into Last/M stats properly as having been played. So the problem is with the tracks being cut short.
Comment 1 Myriam Schweingruber 2018-01-24 12:44:34 UTC
First of all: scrobbling is done when more than 50% of a track is played, so even interrupting after this should not affect the stats on last.fm
As for the non-playing seconds: playback is done by phonon and its backend, not by Amarok itself, this is therefore a Phonon-backend-issue that needs to be reported to the appropriate Phonon product.

Since you didn't give enough information about Phonon on your system (as well as your system specifics, a.g. Distribution and plasma release), I can not reassign this yet, waiting for your input.
Comment 2 Christoph Feck 2018-02-14 14:38:41 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 Christoph Feck 2018-03-01 00:47:04 UTC
To further investigate this issue, KDE developers need the information requested in comment #1. If you can provide it, or need help with finding that information, please add a comment.
Comment 4 Christoph Feck 2018-03-29 14:01:44 UTC
No response; changing status. If you have more information, please add a comment.