Skip to content

Add LastEndPTS to FFMS_VideoProperties - #464

Merged
dwbuiten merged 2 commits into
FFMS:masterfrom
moi15moi:Add-First/Last/LastEnd-PTS
Dec 21, 2025
Merged

dwbuiten merged 2 commits into
FFMS:masterfrom
moi15moi:Add-First/Last/LastEnd-PTS

Conversation

@moi15moi

@moi15moi moi15moi commented Oct 28, 2025 •

Copy link
Copy Markdown
Contributor

Currently, ffms2 has FirstTime/LastTime/LastEndTime, but I personally need PTS to avoid any problem with double accuracy.

Also, from all the talk that have been done in discord, I assume that, in some weird case, LastPTS might be equal to LastEndPTS? If it is the case, please tell me and I will document it.

@dwbuiten

dwbuiten commented Nov 7, 2025

Copy link
Copy Markdown
Member

I understand why LastEndPTS (confusing name...) can be used, but I don't know the point of including FirstPTS and LastPTS< which are trivially and cheaply available from FFMS_FrameInfo on the first and last frames, which you'll have access to at that point already.

@moi15moi

moi15moi commented Nov 7, 2025

Copy link
Copy Markdown
Contributor Author

Its just that FirstTime, LastTime and LastEndTime exist, so I thought adding the same, but you are totally right

@moi15moi

moi15moi commented Nov 9, 2025

Copy link
Copy Markdown
Contributor Author

If you want, i can remove FirstTime and LastTime.

@moi15moi

Copy link
Copy Markdown
Contributor Author

@dwbuiten Could you review the PR?

@dwbuiten

Copy link
Copy Markdown
Member

If you want, i can remove FirstTime and LastTime.

Yes, please.

Sorry, this is a busy time of year for me.

@moi15moi
moi15moi force-pushed the Add-First/Last/LastEnd-PTS branch from fb8b8d9 to 9aa0364 Compare December 17, 2025 00:20
@moi15moi

moi15moi commented Dec 17, 2025 •

Copy link
Copy Markdown
Contributor Author

Oups, I meant FirstPTS and LastPTS (not FirstTime and LastTime cause those are already available).

@moi15moi moi15moi changed the title Add FirstPTS/LastPTS/LastEndPTS to FFMS_VideoProperties Add LastEndPTS to FFMS_VideoProperties Dec 17, 2025

@dwbuiten dwbuiten left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

one comment, rest ok

Comment thread include/ffms.h
@moi15moi
moi15moi force-pushed the Add-First/Last/LastEnd-PTS branch from 9aa0364 to 65afb86 Compare December 21, 2025 15:57
@dwbuiten

Copy link
Copy Markdown
Member

Still missing a version bump.

@dwbuiten
dwbuiten merged commit 9276b12 into FFMS:master Dec 21, 2025
5 checks passed
@moi15moi
moi15moi deleted the Add-First/Last/LastEnd-PTS branch December 21, 2025 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants