GithubHelp home page GithubHelp logo

Comments (8)

sr55 avatar sr55 commented on June 14, 2024

Just to confirm, are the Subtitles OK to the 24 minute mark then stop?

It's not unsurprising the file duration is mis-reported due to the lack of a file header. HandBrake still read to the end of the file and found over 25 minutes worth of content. That shouldn't have stopped the subtitles also completing though.

Are you able to share a sample file that reproduces this?

from handbrake.

FiveVampires avatar FiveVampires commented on June 14, 2024

Yes. Encoded video is ok and has 25:15. But subtitles stop after 24:09. Sample... in hardsub - subtitles just stop showing. In softsub - all lines after 24:09 are erased. Just made one fast encode. Im not able to extract subtitles from that mkv so just attached it as MKS. Also attached original testing subtitles and activity log. subtitles are in ZIP.

subs.zip

Video-1_encode_01.24.2024 13-38-31.txt

from handbrake.

galad87 avatar galad87 commented on June 14, 2024

The SSA and SRT demuxers stop demuxing when they reach the approximated file duration, so that's why you aren't seeing any subtitles after that.
I think it should be possible to remove this limitation without any side effect.

from handbrake.

jstebbins avatar jstebbins commented on June 14, 2024

hmm, you might want to check what happens on the muxer side of things. I think what can happen if you remove the demuxer limit is the creation of an output file whose duration matches the duration of the external SRT file even when the source video is much shorter.

We might need to monitor timestamps in the muxer and only output subtitles that have a video frame that follows. This would need to be done in muxcommon.c.

from handbrake.

galad87 avatar galad87 commented on June 14, 2024

Oh right, I did test only burned-in and tx3g, which requires additional conversions and so it already dropped the unneeded subtitles lines. But going from SSA to SSA does keep all the subtitles lines after the video ends.

from handbrake.

FiveVampires avatar FiveVampires commented on June 14, 2024

it would also help if the user could manually set it...

from handbrake.

galad87 avatar galad87 commented on June 14, 2024

It should be already possible to manually set the duration in the UI, and HandBrake will try to encode up to the duration set.

from handbrake.

FiveVampires avatar FiveVampires commented on June 14, 2024

It should be already possible to manually set the duration in the UI, and HandBrake will try to encode up to the duration set.

you are right - there is something like that, but it is not working for this subtitles problem - I tried it several times...

from handbrake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.