Repository navigation
Conversation
…fed time The side reader maps the original Part's clock onto a remux through the remux's first keyframe. Its anchor holds that keyframe's demuxed pts, but playhead_of reads a fed pts (the demuxed pts moved by pts_shift), so the anchor's playhead came out one pts_shift too far. On a PMS remux, stamped from 0, that is the first keyframe's own pts (83 ms on the file the 917 s test measures), and every embedded cue and a sidecar's measured delta moved by it. On a conversion that keeps the file's timestamps, the keyframe is stamped in film time, and after a seek or resume every embedded cue was placed a whole seek offset late and never drawn. The anchor's pts is now moved to fed time before the delta and the judged clock read it. Signed-off-by: Tiago Pereira <1698241+tiper@users.noreply.github.com>
1 task done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The side reader maps the original Part's clock onto a remux through the remux's first keyframe. Its anchor holds that keyframe's demuxed pts, but
playhead_ofreads a fed pts (the demuxed pts moved bypts_shift), so the anchor's playhead came out onepts_shifttoo far.rebase: first post-seek keyframe pts=1970635000000 -> pts_shift=-1970635000000.The anchor's pts is now moved to fed time (
anchor_fed_pts) before the delta (measured_delta) and the judged clock read it.Tests:
a_film_time_conversion_keyframe_maps_the_part_one_to_onefails on the old mapping (delta = minus the offset) and passes now; a remux stamped from 0 reads as before.cargo test -p plx_media --lib subtitle_job: 12 passed.