Coder Social home page Coder Social logo

Comments (4)

yedianyang avatar yedianyang commented on May 28, 2024

And I have been trying to construct hierarchical structure like the this
image

`import aaf2

with aaf2.open("example2.aaf", 'w') as f:

# objects are create with a factory
# on the AAFFile Object
mob = f.create.MasterMob("Footstep")

# add the mob to the file
f.content.mobs.append(mob)

file_sourcemob = f.create.SourceMob()
f.content.mobs.append(file_sourcemob)


edit_rate = 30
timecode_rate = 30
start_time = timecode_rate * 60 * 60 # 1 hour
tape_name = "Demo Tape"


file_sourcemob.create_timeline_slot(edit_rate)
file_sourcemob.create_empty_sequence_slot(edit_rate)


sound_clip = file_sourcemob.create_sound_slot(edit_rate)

# now finally import the generated media

file_sourcemob.import_audio_essence("/Users/yedianyang/Desktop/GALA/AD_001.WAV", edit_rate)

#it will warn
#ValueError: slot id: 1 already exists
`

from pyaaf2.

markreidvfx avatar markreidvfx commented on May 28, 2024

Have you looked at #37? I don't have access to protools and am not too familiar with it. Does it support embedded media?

from pyaaf2.

yedianyang avatar yedianyang commented on May 28, 2024

Have you looked at #37? I don't have access to protools and am not too familiar with it. Does it support embedded media?

Thank you! That help me a lot!
But there is still a problem confuse me. After I append the source_clip to the Sequence, how can I import a essence audio into the AAF, and link to the source_clip?

from pyaaf2.

markreidvfx avatar markreidvfx commented on May 28, 2024

Try using the import_audio_essence method on the mastermob like in the embedding example. Then create your sourceclips of the MasterMob and add them to a sequence on the slots of a CompositionMob. Hope that makes sense!

from pyaaf2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.