Posts: 19
Joined: Nov 2014
Reputation:
1
Any progress with this issue?
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
Only the work you done on it.
Posts: 1
Joined: Jul 2016
Reputation:
0
Hi,
I have the same problem, and I'd like to try to implement it.
Any tips where to start will be highly appreciated!
Posts: 6
Joined: Dec 2016
Reputation:
0
2016-12-12, 01:52
(This post was last modified: 2016-12-12, 16:23 by intimi.)
deleted. corrected version below
Posts: 6
Joined: Dec 2016
Reputation:
0
Just a suggestion. Consider the "subtitles offset" tool after the "sound" button.
It lets you slide forward or backward for max 1 minute to set an offset. This is OK for subtitles at the same speed of the movie.
To grasp it mathematically, this means:
t = timestamp of the subtitle in e.g. the .SRT file
o = offset of the subtitle
t' = t+o or the time the subtitle is actually shown
Actually, if the movie is played at a different rate, there is something like a speed factor. Let's call it "s".
s = speed factor
so a new expression for t' is now:
t' = s*t + o
At a constant speed difference, the subtitles should remain in sync.
However, getting a grip on that speed factor could be tedious, but it is a quite simple problem to solve mathematically, and with the help of an enhanced "subtitle offset" tool. How?
Simply let's calibrate on two places in the movie:
- calibrate for an offset one time and store
- cue the movie for some 15 minutes, calibrate another offset and store
Now it's up to the tool to do some calculations
We have:
t'1 = t1 + o1
t'2 = t2 + o2
offset evolves linearly with play time:
(o - o1) = (t - t1) / (t2 - t1)
o = o1 + (o2 - o1) * (t - t1) / (t2 - t1)
t' = t + o1 + (o2 - o1) * (t - t1) / (t2 - t1)
= (1 + (o2 - o1) / (t2 - t1) )* t +o1 - (o2 - o1) / (t2 - t1) * t1
so the constants "s" and "o" in our equation "t' = s*t + o" are:
s = 1 + (o2 - o1) / (t2 - t1)
o = o1 - (o2 - o1) / (t2 - t1) * t1
Quite a simple solution for a very annoying problem, I thought.
Posts: 1
Joined: Jan 2017
Reputation:
0
Is anyone following up on making this modification?
It'd be very helpful!
Posts: 16,946
Joined: Feb 2011
Reputation:
256
Does not look like anyone is interested in this.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 198
Joined: Jul 2014
Reputation:
3
I had to change the fps in subtitle workshop the other day, So yes, same way to re-stamp the subtitles times from between kodi would be nice.
Posts: 208
Joined: Jun 2017
Reputation:
5
I also vote for this feature .... it would be nice to toggle through the various combinations and permutations of common frame speeds while watching on Kodi. That way you can simultaneously adjust/sample both delay-advance times and frame rate stretching-shrinking.
As mentioned in an earlier post you don't need to know the current frame rate to implement this feature ... just try toggle through the different frame rate ratios.
Also, remember to store the final Delay-Advance, Stretch-Shrink settings for any particular subtitle file, for when the movie is later resumed (e.g., after when the wife watches a different movie before I can get back to mine).
common fps that i have found:
15
23.976
24
25
29.97
Posts: 208
Joined: Jun 2017
Reputation:
5
Sorry it occurred to me there might be an easy solution. Just have an expand-contract bar underneath the delay-advance bar. The math behind the bar that changes the timings might be a bit tricky, but the approach would be applicable for all subtitle types (.srt, .sub, .ssa) and you wouldn't have to know anything about framerates.
Posts: 2
Joined: Aug 2017
Reputation:
0
Hello
This issue is very annoying, any progress on this ?