Comments (1)
Ignore this! Finger trouble:
Correct function below:
def create_retime(f : aaf2.file.AAFFile, audio_clip):
# See here: https://github.com/markreidvfx/pyavb/blob/main/examples/avb2aaf.py#L21
op_def = f.create.OperationDef('01030202-0200-0000-060e-2b3404010101', 'Audio Warp', '')
f.dictionary.register_def(op_def)
op_def.media_kind = 'sound'
op_def['NumberInputs'].value = 1
op_def['IsTimeWarp'].value = False
op_def['Bypass'].value = 0
op_def['OperationCategory'].value = "OperationCategory_Effect"
param = f.create.ParameterDef("f7ffed29-fc8e-43ed-943a-4b57b5c157ee", "AvidMotionPulldown", "", 'aafInt32')
f.dictionary.register_def(param)
op_def.parameters.append(param)
param = f.create.ParameterDef("8dde1839-6862-4874-a1e9-4fbd1164f22a", "AvidMotionOutputFormat", "", 'aafInt32')
f.dictionary.register_def(param)
op_def.parameters.append(param)
param = f.create.ParameterDef("5b22ff71-c51b-11d3-a069-006094eb75cb", "AvidPhase", "", 'aafInt32')
f.dictionary.register_def(param)
op_def.parameters.append(param)
param = f.create.ParameterDef("72559a80-24d7-11d3-8a50-0050040ef7d2", "SpeedRatio", "", 'Rational')
f.dictionary.register_def(param)
op_def.parameters.append(param)
param = f.create.ParameterDef("1c5a02d5-e503-4ca6-8617-d7914bb8ac03", "AvidMotionInputFormat", "", 'aafInt32')
f.dictionary.register_def(param)
op_def.parameters.append(param)
op_group = f.create.OperationGroup("Audio Warp", media_kind="sound")
sequence = f.create.Sequence(media_kind="sound")
sequence.components.append(audio_clip)
# op_group.segments.append(sequence)
op_group['InputSegments'].append(sequence)
param = f.create.ConstantValue('AvidMotionPulldown', 0)
op_group.parameters.append(param)
param = f.create.ConstantValue('AvidMotionOutputFormat', 2)
op_group.parameters.append(param)
param = f.create.ConstantValue('AvidPhase', 0)
op_group.parameters.append(param)
param = f.create.ConstantValue('SpeedRatio', aaf2.misc.AAFRational(1001/960))
op_group.parameters.append(param)
param = f.create.ConstantValue('AvidMotionInputFormat', 2)
op_group.parameters.append(param)
op_group.length = audio_clip.length
return op_group
from pyaaf2.
Related Issues (20)
- Combining segments from two AAF-files to create a new single AAF-file HOT 1
- I cant get this code to work - any tips would be appreciated: HOT 1
- Need help to get timeline TC of certain effects HOT 1
- Simple Timeline Example (with linked MXFs) HOT 1
- Difference between group clips and sequences - both are composition mobs HOT 4
- packing signed/unsigned HOT 1
- Get Source Clip and put into new Timeline
- Manipulate an existing AAF's sequence timing HOT 1
- urlstring corruption above 254 character path. pyaaf2 or AMC? HOT 2
- AVX Parameter - Info HOT 2
- Help with setting Sequence start time HOT 1
- Added a property to Mobs.py - not sure of correct way to create pull request etc HOT 2
- AMA AAF from XAVC100 MXF op1a file
- Adding nested attributes to master mob attributes... HOT 1
- Bezier frame interpolation doesn't match Avid HOT 1
- Avid's keyframe values different from PyAAF2 interpolation with extreme bezier handles HOT 9
- Simple AAF with embedded WAV file won't open in Avid Media Composer
- Error opening aaf file HOT 4
- get_object() and get() using object name removed from StrongRefSetProperty
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyaaf2.