[DVDplayer] Increase subs delay step
#1
Hi! The current 25ms step used for the subtitles resynch is really too precise. Even with fast repeat settings it still makes large adjustments very time consuming.

100ms steps give very precise results while being far more manageable in terms of updating speed.

I think it should be a simple modification and 100ms it's standard in mplayer and ZoomPlayer. MPC-HC has a 500ms default that is definitely too coarse.

Edit: also it would be really good to have some visual cues drawn on top of the video while changing the subtitles delay from a remote. Again, this is something pretty much all the media players I quoted above do (Kmplayer too).
Reply
#2
Agreed that 25ms is too fine. Anyone else got any comments on a useful default other than 100ms?

It's line 94 in GUIDialogAudioSubtitleSettings.cpp if you're being adventurous Smile

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Code:
[url=http://forum.xbmc.org/../trac/browser/trunk/XBMC/xbmc/GUIDialogAudioSubtitleSettings.cpp#L90]90[/url]  m_subtitleVisible = g_application.m_pPlayer->GetSubtitleVisible();
[url=http://forum.xbmc.org/../trac/browser/trunk/XBMC/xbmc/GUIDialogAudioSubtitleSettings.cpp#L91]91[/url]  AddBool(SUBTITLE_SETTINGS_ENABLE, 13397, &m_subtitleVisible);
[url=http://forum.xbmc.org/../trac/browser/trunk/XBMC/xbmc/GUIDialogAudioSubtitleSettings.cpp#L92]92[/url]  AddSlider(SUBTITLE_SETTINGS_DELAY, 22006, &g_stSettings.m_currentVideoSettings.m_SubtitleDelay, -g_advancedSettings.m_videoSubsDelayRange, 0.025f, g_advancedSettings.m_videoSubsDelayRange, "%2.3fs", true);
[url=http://forum.xbmc.org/../trac/browser/trunk/XBMC/xbmc/GUIDialogAudioSubtitleSettings.cpp#L93]93[/url]  OnSettingChanged(m_settings.size()-1);
[url=http://forum.xbmc.org/../trac/browser/trunk/XBMC/xbmc/GUIDialogAudioSubtitleSettings.cpp#L94]94[/url]  AddSubtitleStreams(SUBTITLE_SETTINGS_STREAM);
[url=http://forum.xbmc.org/../trac/browser/trunk/XBMC/xbmc/GUIDialogAudioSubtitleSettings.cpp#L95]95[/url]  AddButton(SUBTITLE_SETTINGS_BROWSER,13250);
[url=http://forum.xbmc.org/../trac/browser/trunk/XBMC/xbmc/GUIDialogAudioSubtitleSettings.cpp#L96]96[/url]  AddButton(AUDIO_SETTINGS_MAKE_DEFAULT, 12376);
It's line 92, maybe? But, unfortunately, in any case I'm no programmer...
I see the logic but I don't know how to apply it, never done it before.

Ideally there should be a setting in advancedsettings.xml similar to
Code:
<subsdelayrange>10</subsdelayrange>
It could be <subsdelaystep>100</subsdelaystep> to keep the naming convention similar enough.

Regarding the visual cues? Would it be tough to implement? Considering that all major players (at least in the Windows space, but mplayer is Linux too) have it, I guess I'm not alone in finding it useful. Zoom Player does it best, as it shows inside a small graphic element in the upper right corner, which is part of the skin used (and stays only for a brief period, just to give you an indication without needing to open the whole GUI to understand "where you are").
Reply
#4
The key is to get it skinnable. It's something we want to do eventually, but as with all things, there's not enough time.

Just change the 0.025f to 0.1f
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
I tend to agree with the original poster.
How about changing the hardcoded default?
Given he tracs it.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#6
r17476
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
jmarshall Wrote:The key is to get it skinnable.
Yup, I imagined so... that is why I mentioned me not being a programmer. I thought I could do the change for the hardcoded delay step (but thanks for doing it yourself, I was afraid of "breaking" something Smile), but while I saw the need for the visual cues to be skinnable... I wouldn't know where to start from.
Reply
#8
Solved
Reply

Logout Mark Read Team Forum Stats Members Help
[DVDplayer] Increase subs delay step0