Skip to content

Conversation

@moi15moi
Copy link
Contributor

@moi15moi moi15moi commented Oct 28, 2025

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
Copy link
Member

dwbuiten commented Nov 7, 2025

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
Copy link
Contributor Author

moi15moi commented Nov 7, 2025

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

@moi15moi
Copy link
Contributor Author

moi15moi commented Nov 9, 2025

If you want, i can remove FirstTime and LastTime.

@moi15moi
Copy link
Contributor Author

@dwbuiten Could you review the PR?

@dwbuiten
Copy link
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
Copy link
Contributor Author

moi15moi commented Dec 17, 2025

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
Copy link
Member

@dwbuiten dwbuiten left a comment

Choose a reason for hiding this comment

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

one comment, rest ok

@moi15moi moi15moi force-pushed the Add-First/Last/LastEnd-PTS branch from 9aa0364 to 65afb86 Compare December 21, 2025 15:57
@dwbuiten
Copy link
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