Skip to content

Width and Height are ignored when the frame rate is float #6

@ericfortis

Description

@ericfortis

Background

FFVideoFormat3840x2160p60
FFVideoFormat3840x2160p5994
  • When the format tag has frameDuration, width, height, their values take precedence over deriving them from the name.

  • The adapter is currently generating that tag like this:

 <format id="r1" frameDuration="1/50s" name="FFVideoFormat3840x2160p50" />

Problem

An otio file with a rate such as 50.0 gets converted to FFVideoFormat3840x2160p50.0, so that trailing .0 invalidates the name. Therefore,

  • In Final Cut Pro the project doesn’t get the correct video size (it defaults to 1280x720)

  • When importing the XML, there’s this warning

Image

Proposed Solution

Since name can be overriden (although it’s required) we could always use a valid value from that list such as: FFVideoFormat3840x2160p60, along with the attributes. For example,

 <format id="r1" frameDuration="1/50s" width="1280" height="720" name="FFVideoFormat3840x2160p50" />

I tried using name="", no luck. Also tried name="FFVideoFormatRateUndefined", but that also triggers the warning. That value seems to be for audio-only projects, which are also breaking but that’s out of the scope of this ticket.

I think that trying to generate actual predefined values is not worth the effort because it doesn’t work for custom sizes anyways. Also, because an otio file can have a rate like this 59.94005994005994, which would have to be converted to 5994 in order to match a predefined name.

LMK


Edit: I tested v1.13 and name is not required if colorSpace is present. At any rate, hardcoding a dummy name is easier than computing the color space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions