Skip to content

External SRT starts from beginning despite later preview start time. #281

Open

Description

@bradleysepos

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.

Activity

  1. added this to the Unscheduled milestone on Jul 27, 2016
  2. self-assigned this
    on Sep 10, 2016
  3. sr55 commented on Jan 28, 2017

    @sr55
    Contributor

    This still an issue?

  4. jstebbins commented on Jan 28, 2017

    @jstebbins
    Contributor

    yes, it's been low priority for me since it's only a live preview thing

  5. jstebbins commented on Feb 27, 2017

    @jstebbins
    Contributor

    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".

  6. bradleysepos commented on Mar 4, 2017

    @bradleysepos
    ContributorAuthor

    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.

  7. removed this from the 1.1.0 milestone on May 29, 2017
  8. added this to the Unscheduled milestone on Jun 14, 2017
  9. bradleysepos commented on Jun 21, 2018

    @bradleysepos
    ContributorAuthor

    Following up on this a year later... can/do we intend to do anything about this?

  10. jstebbins commented on Jun 21, 2018

    @jstebbins
    Contributor

    Maybe

  11. bradleysepos commented on Jun 21, 2018

    @bradleysepos
    ContributorAuthor

    Okay, targeting for 1.2.0. Can always change this.

  12. jstebbins commented on Sep 4, 2018

    @jstebbins
    Contributor

    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.

  13. modified the milestones: 1.2.0, 1.3.0 on Oct 3, 2018
  14. modified the milestones: 1.3.0, Unscheduled on Jan 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions