Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve playlist alignment when PDT across playlists is inconsistent#7482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
robwalch wants to merge1 commit intomaster
base:master
Choose a base branch
Loading
fromenhancement/live-playlist-alignment

Conversation

@robwalch
Copy link
Collaborator

This PR will...

  • Handle certain cases where live playlists should not align on PDT.
  • Fixes subtitle start offset when adjusted before first segment load.

Why is this Pull Request needed?

Are there any points in the code the reviewer needs to double check?

Resolves issues:

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

Copy link
Collaborator

@hongjun-baehongjun-bae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I understand that this modification was made because simply increasing the tolerance cannot fundamentally resolve cases where the PDT alignment is completely incorrect.


constdelta=(targetPDT-refPDT)/1000-(frag.start-refFrag.start);
constdateDifference=(targetPDT-refPDT)/1000;
if(Math.abs(dateDifference)>Math.max(60,details.totalduration)){
Copy link
Collaborator

@hongjun-baehongjun-baeNov 10, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The issue of small timing gaps, such as 352ms, was raised in#7557, but what was the reason for setting the PDT to 60 seconds? Is there a specific reason why “totalduration” was set as the default value? I’m worried that I’m not allowing for enough discontinuities.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

And if the alignment fails like this, logging will be necessary.

robwalch reacted with thumbs up emoji
Copy link
CollaboratorAuthor

@robwalchrobwalchDec 11, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The issue of small timing gaps, such as 352ms, was raised in#7557,

How so?#7557 will be resolved by#7626.

Small gaps will not have a major impact on segment selection. Ultimately, playlists are realigned once video and audio timestamps are known. VTT mapping is not used in alignment. This change only aims to skip alignment using Program-Date-Time when the date times are wildly inconsistent between playlists - more thantotalduration would mean there is no overlap, but for very short playlists, we'll enforce a minimum of 60 seconds.

And if the alignment fails like this, logging will be necessary.

Logging can be added before merging.

hongjun-bae reacted with thumbs up emojihongjun-bae reacted with rocket emoji
@hongjun-baehongjun-bae mentioned this pull requestNov 12, 2025
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@hongjun-baehongjun-baehongjun-bae left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

Milestone

1.7.0

Development

Successfully merging this pull request may close these issues.

2 participants

@robwalch@hongjun-bae

[8]ページ先頭

©2009-2025 Movatter.jp