pyavb
pyavb copied to clipboard
edit_rate stuck at 25fps in test_create_sequence
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.
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.
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