Skip to content

Conversation

@JeromeMartinez
Copy link
Contributor

Several container formats, e.g. MXF or QuickTime, don't have SMPTE ST 12 Timecode values per frame, they have a start time code and a frame rate, then other time codes are computed from that.

This PR adds the support of a similar way to store timecodes in Matroska.

As SMPTE ST 12 does not indicate the corresponding frame rate, we provide it in the private data. frame rate num/den is preferred over an integer because we need the precise source (constant) frame rate for computing the corresponding timecode.

@robUx4 robUx4 added format addition spec_codecs Codec Matroska spec document target labels Jan 22, 2023
1

definition:
If present, indicates that Block Additional Mapping is not present and that the stored bytes represent the start timcode.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: timcode > timecode

@hubblec4
Copy link
Contributor

It seems to me you want add two new elements which are a Rational number.

Should we first implement the EBML Rational type?
ietf-wg-cellar/ebml-specification#164

@JeromeMartinez
Copy link
Contributor Author

Should we first implement the EBML Rational type?

Would be better, for sure.

@robUx4
Copy link
Collaborator

robUx4 commented Feb 25, 2023

Should we first implement the EBML Rational type?

This might be a while. And since there's no agreed technical solution, you should not create such a file for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

format addition matroska-v5 spec_codecs Codec Matroska spec document target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants