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

edit_rate stuck at 25fps in test_create_sequence #21

Open
communque opened this issue Sep 5, 2023 · 2 comments
Open

edit_rate stuck at 25fps in test_create_sequence #21

communque opened this issue Sep 5, 2023 · 2 comments

Comments

@communque
Copy link

Looking at test_create_sequence, trying different frame rates. It's very impressive, literally generating an Avid sequence that Avid MC doesn't reject. So cool. But so far I'm unable to alter the frame rate by changing the value of edit_rate. No matter what the generated sequence (and for that matter the master clips created) are always at 25fps.

@TrevorAyl
Copy link

Seems that you can set the comp.edit_rate after it is declared

            comp = f.create.Composition(mob_type="CompositionMob")
            comp.edit_rate = 50

And the master mob similarly

    mob = f.create.Composition(mob_type="MasterMob")
    mob.edit_rate = 50

Not sure if either is correct way to do this - but they are working for me as I blunder my way through this.

@TrevorAyl
Copy link

I'm an idiot newbie, so apologies for any schoolchild errors...

Further investigation - using dump.py - there are 35 instances of edit_rate in sequence.avb.
So I made a declaration of edit_rate = 50 near the top of test_create.py and also had to add the following after these were created:

    tape_mob.edit_rate = edit_rate # defaults to 25

    file_mob.descriptor.edit_rate = edit_rate # defaults to 25
    file_mob.edit_rate = edit_rate # defaults to 25

    mob.edit_rate = edit_rate # defaults to 25

    comp.edit_rate = edit_rate # defaults to 25

    track.component.fps = edit_rate # defaults to 25

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

No branches or pull requests

2 participants