Re: [Transcoding folders] Limiting options
Posted: Mon Apr 16, 2018 3:26 am
That you for your feedback, a lot has happened lately so I haven't had the time to answer.
The above means that the subtitles information shown behind the name won't change. The cache is per renderer though, so a new renderer should see the updated information. That doesn't really help a lot though, as there is no way you can clear the renderer's cache without restarting UMS. What I did do to try to mend this is that the subtitles are rescanned and which one should be used is reevaluated every time a new transcode is started. That should mean that even though the "old" subtitles information will be shown on the renderer, the "new" subtitles should be used while transcoding. For streaming subtitles it's not so easy, as the information given to the renderer about the URL of the subtitles file is a part of the non-updating cache. Internal subtitles when without transcoding should work fine, but it's hardy relevant to add new internal subtitles
It would be nice if you could confirm or deny whether the added subtitles will actually be used during playback even though the displayed information isn't updated.
I didn't remember that there was a "heuristics" based language evaluation when other methods to determine the language fails. It seems that there's some issue with files with BOM and this detection using ICU4J, which we use for this. It's probably something we could work around/handle in a better way, but I haven't looked at that code at all.
I think it mostly comes down to what we're used to. This wasn't really consistent before, and I chose to put them first. I agree that it can be a bit strange some times, but separating it clearly from the "additional info" that is appended also has its benefits. It's easier for us to explain a user what to look for when these aren't mixed up. It's not set in stone though, but I think it works when I've gotten a little bit used to it.
A lot of the work with this build is on the Live Subtitles, and the code is completely new. That said, not everything is finished on that part yet so some issues remain as to the "quality" of the matches and the fact that the same subtitles will often be listed more than once.
I'm a bit surprised by this, but it's also a bit complicated. There's a much more fundamental problem at play here, which is the way UMS caches media resources. 7.0.0 tries to address some of this, but I'm not sure of the details. The way it works pre 7.0.0 is that whenever a resource is "discovered" it's kept in memory until the program is restarted/quit. This causes several issues, both a lot of memory use for huge libraries and the fact that things don't refresh. A folder is rescanned every time you browse into the folder, but changes and removals aren't handled. New media files are added though. While this has several huge drawbacks and should be redesigned, it's also a matter of performance. It would be very easy to not store this in memory and resolve it every time, but browsing performance would be terrible. Thus, a smarter solution is needed, which both provides caching and the ability to react to changes. As of now, no such solution is implemented.Madoka wrote: ↑Tue Apr 10, 2018 4:11 am The "add a new subtitle into an opened folder" issue is still there. It rescans the folder but will not used the newly added subtitle as before. I didn't mention this last time, just restarting the server with the button doesn't help; I have to quit out and restart UMS for it to see the new subtitle file.
The above means that the subtitles information shown behind the name won't change. The cache is per renderer though, so a new renderer should see the updated information. That doesn't really help a lot though, as there is no way you can clear the renderer's cache without restarting UMS. What I did do to try to mend this is that the subtitles are rescanned and which one should be used is reevaluated every time a new transcode is started. That should mean that even though the "old" subtitles information will be shown on the renderer, the "new" subtitles should be used while transcoding. For streaming subtitles it's not so easy, as the information given to the renderer about the URL of the subtitles file is a part of the non-updating cache. Internal subtitles when without transcoding should work fine, but it's hardy relevant to add new internal subtitles

It would be nice if you could confirm or deny whether the added subtitles will actually be used during playback even though the displayed information isn't updated.