Posts: 114
Joined: Aug 2013
Reputation:
4
2013-09-14, 21:47
(This post was last modified: 2013-09-16, 11:58 by botribun.)
Hello, it would be nice to be able to set the Subtitle frame rate right in the subs adjust osd menu. Sometimes I have a 25 fps video but a subtitle with 23.976 fps and everting is out of sync. There are few tools to fix this, but its getting a tedious job to turn on your PC do this all the time. Could this be implimentet into XBMC per default, so you just download the sub with your remote and select the right sub frame rate eg. > 15 > 20 > 23,976 > 23,978 > 24 > 25 > 29,97 > 30, without the need to convert the srt files at yout PC all the times.
Thanks in advanced!
// Edit Subject
Posts: 31,445
Joined: Jan 2011
I was always under the impression that most subtitles are time stamped based, not framerate based.
Posts: 204
Joined: Oct 2012
Reputation:
0
2013-09-15, 13:37
I second botribun motion.
Although Ned is right, most subtitles are timestamped, it would be a very useful feature to re-stamp them according to a higher/lower FPS ratio.
The same way we can now delay/advance the subtitles up to 10sec to each side, it would be nice to have another option, to compress/expand the subtitle FPS.
Since subtitles are only a few hundred text lines, this timestamp processing is not a heavy burden.
Today, they way I deal with non-FPS-matching subtitles is to download them outside XBMC, re-stamp them, go back to XBMC, restart the movie/series I was watching, re-load the re-stamped subtitle and if it still does not match, repeat the process. Having this done on the fly without having to stop the movie or leave XBMC would be a big improvement.
Posts: 11,582
Joined: Feb 2008
Reputation:
84
davilla
Retired-Team-XBMC Developer
Posts: 11,582
We can delay/advance the subtitles up to 10sec to each side because that's just an easy offset to the supplied timestamps. So this is quite easy and not the same at all as changing the actual timestamps.
Change the actual timestamps to a different frame rate is much, much more tricky. ie there's a huge difference between 23,978, 23,977 and 23,979 after a few hundred/thousand frames. You will have a/v subtitle sync issues, guaranteed.
Posts: 6,252
Joined: Jun 2009
Reputation:
115
da-anda
Team-Kodi Member
Posts: 6,252
how can a timestamp differ, shouldn't it be independet from frames? Or how do we internally calculate the current timestamp?
Posts: 1,265
Joined: Oct 2009
Reputation:
29
takoi
Team-Kodi Member
Posts: 1,265
No. Let me repeat: if video B is a speedup/slowdown of A (which 90% are) 1 second in A is not the same frame as in B at time 1sec. It's opposite: if a subtitle is based on frame number, it will be independent of playback speed.
Posts: 6,252
Joined: Jun 2009
Reputation:
115
da-anda
Team-Kodi Member
Posts: 6,252
ah, you're talking about using subs created from a video source with different framerate, in this case timestamps ofc differ
Posts: 114
Joined: Aug 2013
Reputation:
4
Maybe just add a option like "ignore video/subs frame rate" and only use the time stamps instead?
Posts: 11,582
Joined: Feb 2008
Reputation:
84
davilla
Retired-Team-XBMC Developer
Posts: 11,582
Don't forget, not all subtitle formats are handled the same. XBMC has several subtitle codecs that handle the various flavors. This is not a trivial problem so please stop treating is as trivial.