Delayed start of music playback - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Delayed start of music playback (/showthread.php?tid=277295) |
Delayed start of music playback - luzidus - 2016-05-28 Hey there, I'm having a strange issue regarding the start of the playback of music. In short, the delay between issuing the playback of music (mp3) via any remote control (CEC, keyboard, yatse) and the start of the actual playback is kind of exactly 30s. The playback of tv shows, movies etc. is not affected by this issue, i.e. playback of movies start immediately. I have all the media on a NAS connected via LAN and also the mysql database is on the same NAS. The NAS is mounted on the kodi machine on startup via CIFS and it is configured to spin down the drives after 15min of no access. I have searched for similar issues on the forum and found a thread describing a similar problem which was related to not having an internet connection. There, the whole access to the library was slow and could be resolved by adding the hostnames of the mysql server to the hosts file or disable the reverse lookup in the mysql server (I believe). Since I recently moved and I also had no internet connection for some time, I applied the hints posted there and it resolved the issues of having slow access to the library. However, my present issue seems not to be connected to this behaviour. Here is the information with a numbering (roughly) according to the sticky post 1. Here is the kodi debug log as well as some mysql debug log which was recorded not parallel to the kodi log but the entries would be the same kodi log mysql log In the debug log at 10:44:25 I issued the playback (line 76 CEC command) then nothing happens for about 30s (even the gui seems to be locked) and then at 10:44:55 the playback started (line 116). In the mysql log two entries appear when issuing a playback also with 30s separation. 3/7. The kodi revision is Kodi 16.0 Feb-20-2016-Git:a5f3a99 on ubuntu 16.04 LTS with kernel version 4.4.0-22-generic updated 2016-05-28. kodi has been installed via ppa 4/5/6. I'm using x84_64 on a Zotac box with an Intel® Atom CPU D2700 @ 2.13GHz, a GeForce GT 520M and 2042716 kB of RAM. I also have two DVB tuners connected and I'm running VDR on the same machine which I also access via kodi. But I guess VDR is not interfering with kodi on that level. 8/9. I was not able up to now to disable all the addons since it seems that restarting kodi solves the issue temporarily. That's also the reason why the logs are older. The issue went away after I rebooted the machine but reappeared some time later. I can also do a Code: service lightdm restart I would be glad if someone has a hint how to solve this issue since it is quite annoying when playing continuous cd and having 30s pause between the songs. Cheers RE: Delayed start of music playback - FernetMenta - 2016-05-28 I don't know for what reason the db access takes that long. But regardless how long it takes it should not block player. This is fixed in v17 RE: Delayed start of music playback - luzidus - 2016-05-29 I see - I guess it would be best to wait then for v17. But I now have a few questions to understand your answer better. Do I understand you correctly that by "blocking of the player" you mean the delay between the lines 76 and 77 where "all that platinum/neptune stuff" happens? Sometimes I saw this directly after pressing the key and repeating once just before the player started. I already thought it might be the reason and is due to the multiple router setup which I now have. But again, before having 2 routers I also experienced this behaviour. And the next question would be whether the db access is necessary for the player to start. From your post it sounds to me that the player could already start the songs but kodi still has to access the db which it could do in the background. Small update: I'm currently listening to music and since the restart of kodi which I did yesterday the issue has not been reappearing. I updated a few packages yesterday but I don't see how they could be connected to the problem which exclusively did affect music playback. To name a few which might have a tiny chance to have a connection with the issue: samba-commons(-bin), libsmbclient, python-samba, python3-pyparsing among 73 others. I'm going to keep track of my setup and see how long it takes for the issue to reappear and wait for the update to v17. In case it reappears, I think it's best to stick to restarting kodi every now and then since you did not see any clear reason in the logs. Thanks again for looking into the issue. RE: Delayed start of music playback - erikkie65 - 2019-09-22 (2016-05-29, 10:43)luzidus Wrote: I see - I guess it would be best to wait then for v17. But I now have a few questions to understand your answer better.Hi there ! since updating Kodi to V18.4 i suddenly have the same issue. Selecting a MP3/flc it starts after a 30 sec playing. The same with next song or selecting another song. always waiting 30 sec before it starts. Can anyone helps me with this issue ? i'm really rather desperite ... grtz eric RE: Delayed start of music playback - fritsch - 2019-09-25 Post your Debug Log showing the issue, please. The post you warmed up is 2 years old RE: Delayed start of music playback - Babylonia - 2019-12-23 In spite the original subject is two years old, I have exactly the same problem using Kodi v18.5 Only music files, delay of 30 sec. for each number No problems playing movie files. Newly bought media-player box: NVIDIA Shield TV Pro (2019) All the media on a NAS connected via LAN = 1 Gigabit ethernet cable netwerk Typically also another "Kodi Fork (?)" ---> MrMC (Lite) that I tried, do have the same problem. But if using another player, included as part of the X-Plore File Manager app, audio files are played immediately, without any delay. As a difference of the first topic starter. Till now I only choose files within the file manager of Kodi. Not made a library or using an "sql database". Just double clicking music data files. I shall make a logfile and post it later on. RE: Delayed start of music playback - Babylonia - 2019-12-23 Sorry, I see it is in the wrong section of the Kodi forum, as for "Linux" devices. NVIDIA Shield TV Pro (2019) = Android TV I was redirected to this subject, by a reaction on a Dutch forum. If it its needed to switch over to the Android section, I see your reaction and reference what to do further. RE: Delayed start of music playback - fritsch - 2019-12-23 (2019-12-23, 03:46)Babylonia Wrote: Sorry, I see it is in the wrong section of the Kodi forum, as for "Linux" devices. Where is your Debug Log that shows the issue? RE: Delayed start of music playback - kpetrov - 2021-11-18 I have the same problem. Im using Nvidia Shield TV 2019 (not pro) and Im trying to play music files located on my NAS. It takes 30 secs or more to begin playback or switch tracks.... I know this is for android forum , but it mentioned here... Is there any fix for this? Kodi version 19.3, but I tried 18, 19.1 and 20 beta and the problem exist on all versions. RE: Delayed start of music playback - black_eagle - 2021-11-19 (2021-11-18, 23:01)kpetrov Wrote: I know this is for android forum , but it mentioned here... Is there any fix for this? Kodi version 19.3, but I tried 18, 19.1 and 20 beta and the problem exist on all versions. Without a debug log (wiki) that captures the issue, you have zero chance of a resolution, regardless of the platform involved. So I suggest you 1) Get yourself such a debug log (wiki) 2) Create a new thread in the appropriate part of the board that explains your issue and links to the debug log (wiki) that shows it. Thanks. RE: Delayed start of music playback - JRLS - 2021-12-20 >>I have the same problem. Im using Nvidia Shield TV 2019 (not pro) and Im trying to play music files located on my NAS. It takes 30 secs or more to begin playback or switch tracks.... >>I know this is for android forum , but it mentioned here... Is there any fix for this? Kodi version 19.3, but I tried 18, 19.1 and 20 beta and the problem exist on all versions. I have kodi installed on nvidia shield tv pro, and synology NAS ds412+ and had the exact same problem. i have the shield connected via ethernet cable. kodi is 19.3.0 version (kodi-19.3-Matrix-arm64-v8a.apk) i found a solution that worked for me, i think it's not kodi related, but shield related. anyway, quit kodi, and go into nvidia shield "settings" (the gear symbol in right upper corner of shield main screen), then go to "network & internet" option I had the settings 'wi-fi roaming enabled' on I turned it off. Shield wants to reboot now, do it. I started kodi again, now playing music : problem solved! no more 30sec delay Hope it helps RE: Delayed start of music playback - gquiring - 2022-11-15 I know this is an old thread but I am having the same problem. I have a Shield Pro 2019 with a Synology NAS all wired network, no Wifi. I use SMB and have the shares mounted with the Shield. I use Matrix 19.3. Every song has a 30 second delay. My movies have no delay. I changed the Wifi roaming to disabled and rebooted. I still have the issue. I have found a bunch of discussions about this with no resolutions going back many several versions of Kodi. RE: Delayed start of music playback - gquiring - 2022-11-15 Found the solution. It's a change on Synology. You have to disable Opportunistic Locking. For DSM 7 it's File Services, SMB, Advanced and then toggle that setting. It will restart the SMB service. RE: Delayed start of music playback - mw041443 - 2024-03-22 Quote:Found the solution. It's a change on Synology. You have to disable Opportunistic Locking. For DSM 7 it's File Services, SMB, Advanced and then toggle that setting. It will restart the SMB service. Amazing thank you, been looking for a solution to this for a while. Worked perfectly. |