Describe the bug
Here is a clear and concise description of what the problem is:
I am not 100% sure this is a bug. So I will post it here for devs to decide.
<musicextensions>
<add>.mp4</add>
</musicextensions>
The syntax above is causing the video to freeze when placed inside the advancedsettings.xml. The video acts as if it has been paused, with the OSD still responding but the video is stuck. It still allows you to rewind or change OSD settings. This happens after the video has played for a few seconds sometimes it can go as far as 5 minutes for another video before freezing. Each video has a different freezing point
![Laugh Laugh]()
but they are all under 5 minutes. If a video freezes after 30 seconds then that is its freezing point and it will always freeze at this point even with a clean installation of KODI.
Expected Behavior
Here is a clear and concise description of what was expected to happen:
These xml tags are supposed to allow scanning of mp4 files in the music sources into the music library without affecting video library. Therefore the video should play smoothly from beginning to end.
To Reproduce
Steps to reproduce the behavior:
- Insert these tags in advancedsettings.xml
<advancedsettings> <musicextensions> <add>.mp4</add> </musicextensions> </advancedsettings>
- Play any .mp4 video either from library or file view.
- Wait for up to 5 min of playback and see if the video will freeze
- If this can't reproduce the problem copy my entire advancedsettings.xml below
Debug Log
The Debug Log can be found here:
With the tags present and video freezing:
paste.kodi
With the tags removed and no freezing:
paste.kodi
Screenshots
Here are some links or screenshots to help explain the problem:
The screenshot below shows a frozen video after 32 seconds. Even if you waited for a day, that lady never gets to open that door.
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
My findings so far show only .mp4 movies are affected, my .MKV movies play just fine but I have not tried adding .mkv in the musicextension. Episodes and music videos play fine even if they are mp4.
KODI 18, 19 and 20 are all affected whether you play a movie from the library or from file view.
Two separate Windows 10 PCs were behaving the same.
At first, I thought my Hard drives are corrupted but then VLC had no issue and all my drives (over 4 external HDD) behaved this way.
I know for sure that the syntax above is the culprit because I have hunted this problem down to a point of doing a fresh clean installation all from scratch. I did away with everything from addons to library files and kept a backup of a few files which according to me could not have been causing my problem. Specifically "advancedsettings.xml", "profiles.xml", "guisettings.xml", and "playlists" folder. The first time, I copied all the files at once and replaced the ones already created by KODI and saw the problem yet the original KODI files had no issues. I then started all over and this time I copied these files one by one, each time playing my test video to see the behaviour. After copying advancedsettings.xml the problem started. I narrowed down to it and started editing each part until I found out only the musicextensions tags were the issue.
Here is how my complete advancedsettings.xml looks like;
<advancedsettings version="1.0">
<!-- Videos Section Start -->
<video>
<excludefromscan>
<regexp>[-\._ ](extrafanart|sample|trailer|extrathumbs)[-\._ ]</regexp>
</excludefromscan>
<excludefromlisting>
<regexp>[-._ \\/](extrafanart|sample|trailer|extrathumbs)[-._ \\/]</regexp>
</excludefromlisting>
<!-- Extras: Section Start -->
<excludefromscan action="append">
<regexp>/extras/</regexp>
<regexp>[\\/]extras[\\/]</regexp>
</excludefromscan>
<excludetvshowsfromscan action="append">
<regexp>/extras/</regexp>
<regexp>[\\/]extras[\\/]</regexp>
</excludetvshowsfromscan>
<!-- Extras: Section End -->
</video>
<!-- Videos Section End -->
<!-- Music Section Start -->
<musicextensions>
<add>.mp4</add>
</musicextensions>
<!-- Music Section End -->
</advancedsettings>
Your Environment
OS: Windows 10 64 bit
Kodi version: 19 executable
Workaround
You can't forward the video when its frozen. In shot, the video refuses to go forward but it can go back.
You can reverse the video for a few seconds, then forward it a few more seconds past the freezing point, once its past this point, it plays just fine to the end.