Posts: 95
Joined: Feb 2013
Reputation:
4
It happens many a times that a video source is 25fps and all available subtitles are 23.976fps. Would it be possible to introduce a feature to change the subtitle fps on the fly?
Having discussed this with Amet who develops the subtitle-addon, I understand that this is something that needs to be natively addressed by the media player / XBMC.
Many thanks!
Posts: 1,061
Joined: Sep 2004
Reputation:
1
2013-04-12, 10:47
(This post was last modified: 2013-04-15, 13:27 by realjobe.)
well.. In my opinion, the case at hand is absurd itself.. divx movies and the some .srt releases from the net often does not mix. I have discarded this problematic world a long time ago and shifted to pure DVD/Blueray world, with no problems at all, ever.
With SubtitleWorkShop application user is able to tune/fix the fps of the file. This my marking the end/start subtitle to the video playing and then alligning it. Often works, often not.
XBMC has delay/advance feature for Subs. This does not fix the fps differentail ofcource.
Posts: 16,946
Joined: Feb 2011
Reputation:
256
Imo subtitles don't have FPS. They have pts (presentation timestamps) which are unrelated to the fps. If you have problems with subs they just don't fit the movie because of other things (different rip or directors cut vs. something else).
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: 6
Joined: Dec 2016
Reputation:
0
Just a suggestion. Consider changing 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.