You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
External SRT starts from beginning despite later preview start time. #281
When adding an external SRT and starting a preview from the middle of a source, HandBrake appears to display subtitles from the very beginning of the SRT. Ideally, it would skip ahead / drop subs until the starting point of the encode.
It turns out this is more difficult than it would seem. Previews are at a file position. And when seeking to a position, there is no way to know, in the general case, what time corresponds to that position (due to streams that can have discontinuous timestamps).
I would suggest switching previews to a time based seek, but that doesn't work because we don't have a reliable way to seek all stream types based on time, for the same reason, discontinuous timestamps.
I'm pretty much stumped for a workable solution on this. So I think this is going to become a "won't fix".
Hmm, okay. Would it be an improvement to not include the subs in point-to-point previews where the start time is not 0? At least then we wouldn't display (possibly greatly) out of sync subs.
Adding some detail to my "maybe" comment. Many files have timestamps that can be relied upon.
The problem formats are DVD, TS, and PS (BD has a good way to seek to a particular time).
So we can solve the problem for some files and we can create a heuristic that works better for the problematic formats. For example, if the source is a TS file that doesn't happen to have any discontinuities, we can determine the current position just by looking at the first pts and the current pts.
Activity
sr55 commentedon Jan 28, 2017
This still an issue?
jstebbins commentedon Jan 28, 2017
yes, it's been low priority for me since it's only a live preview thing
jstebbins commentedon Feb 27, 2017
It turns out this is more difficult than it would seem. Previews are at a file position. And when seeking to a position, there is no way to know, in the general case, what time corresponds to that position (due to streams that can have discontinuous timestamps).
I would suggest switching previews to a time based seek, but that doesn't work because we don't have a reliable way to seek all stream types based on time, for the same reason, discontinuous timestamps.
I'm pretty much stumped for a workable solution on this. So I think this is going to become a "won't fix".
bradleysepos commentedon Mar 4, 2017
Hmm, okay. Would it be an improvement to not include the subs in point-to-point previews where the start time is not 0? At least then we wouldn't display (possibly greatly) out of sync subs.
bradleysepos commentedon Jun 21, 2018
Following up on this a year later... can/do we intend to do anything about this?
jstebbins commentedon Jun 21, 2018
Maybe
bradleysepos commentedon Jun 21, 2018
Okay, targeting for 1.2.0. Can always change this.
jstebbins commentedon Sep 4, 2018
Adding some detail to my "maybe" comment. Many files have timestamps that can be relied upon.
The problem formats are DVD, TS, and PS (BD has a good way to seek to a particular time).
So we can solve the problem for some files and we can create a heuristic that works better for the problematic formats. For example, if the source is a TS file that doesn't happen to have any discontinuities, we can determine the current position just by looking at the first pts and the current pts.