Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add available precharge and rollout info #26

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

philipnbbc
Copy link
Collaborator

This PR adds these optional properties to the mxf2raw clip section:

  • max_available_precharge
    • Is the maximum number of available edit units (expressed as a negative number) before clip position 0 of all tracks in the clip
    • A larger (negative) max_available_precharge compared with max_precharge means there are more edit units available than strictly necessary to produce the output
  • max_available_rollout
    • Is the maximum number of available edit units (expressed as a positive number) after clip position clip duration - 1 of all tracks in the clip
    • A larger max_available_rollout compared with max_rollout means there are more edit units available than strictly necessary to produce the output

This PR also adds these optional properties to the mxf2raw track section:

  • available_precharge
    • Is the number of available edit units (expressed as a negative number) before track position 0
    • A larger (negative) available_precharge compared with precharge means there are more edit units available than strictly necessary to produce the output
  • available_rollout
    • Is the number of available edit units (expressed as a positive number) after track position track duration - 1
    • A larger available_rollout compared with rollout means there are more edit units available than strictly necessary to produce the output

This example file from #23 produces this output:

...
Clip
  edit_rate       : 25/1
  duration        : 00:01:59:02 (count='2977')
  max_precharge   : -2
  max_available_precharge : -14
...
    Track #0:
      essence_kind    : Picture
      essence_type    : MPEG_2_Long_GOP_422P_HL_1080i
      ec_label        : urn:smpte:ul:060e2b34.04010102.0d010301.02046001
      edit_rate       : 25/1
      duration        : 00:01:59:02 (count='2977')
      precharge       : -2
      available_precharge : -14
...

2 edit units are necessary to produce the output (the max_precharge and precharge). 14 edit units are available (the max_available_precharge and available_precharge).

The available precharge is the count of edit units available before the
target position. Available precharge is <= precharge, where precharge is
always <= 0. I.e. there may be more edit units available than strictly
necessary for precharge.

Similar for rollout, where available rollout is the count of edit units
available after the target position.
@philipnbbc philipnbbc merged commit d215b6b into main Sep 1, 2023
8 checks passed
@philipnbbc philipnbbc deleted the philipn-available-precharge branch September 1, 2023 15:36
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.

1 participant