Kodi Community Forum

Full Version: MP3 file plays perfect with DVD Player but not in PAPlayer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Yesterday I bought an mp3 album at amazon and came across something curious. Playback with the standard music player PAPlayer ended abruptly twelve seconds before the end of one song. It ends at 03:04 to be precise. If I play the same file with kodi's DVDPlayer it plays perfectly until the end. Playback of that file with VLC or Media Player Classic also Foobar also works. The length of the song is 03:16 and this length is also shown in the info of the file in kodi.

Log using PAPlayer

http://pastebin.com/aXSzvPMZ

Log using DVDPlayer

http://pastebin.com/w62uz9Au

I'm on windows 7 using Kodi 15.1. Music is on a NAS using smb.

I guess there's something wrong with the file but some players seem to correct it and the default music player apparently does not. Maybe someone finds the time to look into it.
Do you have crossfade enabled?
No, it's off. From the log line 1833 in the first one it says that the lenght of the track was detected as 00:03:04.02. It's the same in log two in line 1864. Actual playback with PAPlayer ends at that time while in DVDPlayer it continues to play until the "real end".
Just wondered because it seems like to my uneducated eye that Track 2 begins rather than Track 1 being ended.
did you try playing those file from a local drive?
I just did and that works both with PAPlayer and DVDPlayer.
Try again from network drive without your modifications in advanced settings.
And it gets even weirder. If I just start the file from the file manager (Dateimanager) from the NAS it also plays perfectly.

Edit: Wrote that before your response, Fernetmanta. Will try without advancedsettings now.
Starting without the advancedsettings didn't have any effect. It works from a local drive and from the file manager. It doesn't from the music library or the music source in files view of the music section.DVDPlayer works in all cases. In Yatse it will always show me 03:04 as the length of the song but in the "working cases" the song just keeps on playing nonetheless. Thus at some point it reaches 03:10/03:04 and so on.
please post a debug log for playing from nas with filemanager
http://pastebin.com/jjUqkqTZ

Advancedsettings still off.

Other noticeable difference in this playback scenario are that the now playing list is empty and since that is so, the following tracks also do not get queued. Playback therefore stops after the track without me hitting stop.

I'll try adding just that track to the now playing list and no other tracks to see whether it makes a difference.
The issue is either Windows itself or our SMB file implementation. For gapless playback paplayer opens and queues the next file approximately 10 seconds before the playing file has ended. In your case opening the new file seems to trigger a read error on the first one that results in a false positive interpretation of EOF.
please open a defect on trac against file system component
Okay, will do that.

Here's a log when there is only one item in the now playing list. Playback works, the song gets played until the end.

http://pastebin.com/H8gvrQp1

One question though, why does it work when using DVDPlayer?

Edit: Okay, when I tried DVDPlayer it was also only this one file and there were no following files in the queue. Is there a way to test a now playing list with DVDPlayer?
(2015-09-25, 19:49)DarkHelmet Wrote: [ -> ]One question though, why does it work when using DVDPlayer?

DVDPlayer does not support gapless. It opens a new file after the old one is finished.
Makes sense, understood, thanks.

Ticket created http://trac.kodi.tv/ticket/16278#ticket

Thanks for looking into it.