Comments (4)
Thanks a lot!
Following your instructions I added:
tc_slot = mob.create_empty_sequence_slot(25, media_kind='timecode')
tc = f.create.Timecode(25, False)
tc.start = 90000
tc_slot.segment.components.append(tc)
And it Worked like a charm.
Best
from pyaaf2.
Add another slot with a single TimeCode
component to the compositionMob. Timecode.start
should be the set to the start time you want.
from pyaaf2.
π no problem.
from pyaaf2.
I just tried this above, I'm glad I found this discussion, however for some reason it doesn't seem to work for me.
Duration is set to 1 sec, but the 10 hour starttime doesn't seem to work, it defaults to 1 hour.
Any suggestions, please?
This is driving me crazy, I even asked chatgpt, no luck :)
comp_mob= f.create.CompositionMob()
comp_mob.usage = "Usage_TopLevel"
comp_mob.name = "whatever"
tc = f.create.Timecode(timecode_fps, True)
tc.start = 900000 # 10 hours
tc.length = timecode_fps # 1 sec
timeline_slotV = comp_mob.create_timeline_slot(edit_rate)
timeline_slotV["PhysicalTrackNumber"].value = 1
sequenceV = f.create.Sequence(media_kind="picture")
timeline_slotV.segment = sequenceV
comp_fillV = f.create.Filler("picture", 0)
sequenceV.components.append(comp_fillV)
sequenceV.components.append(tc)
f.content.mobs.append(comp_mob)
Also when using only this code
tc_slot = mob.create_empty_sequence_slot(25, media_kind='timecode')
tc = f.create.Timecode(25, False)
tc.start = 90000
tc.length = 25
tc_slot.segment.components.append(tc)
I get a nice timeline starting at 10 hours with the duration of 1 sec, but when checking it in the bin, it says 0 dur and 0 start tc
from pyaaf2.
Related Issues (20)
- Error on walk() with returned Sequence HOT 2
- Creating AAF using WAV file HOT 5
- export must be in mono not in stΓ©rΓ©o. HOT 2
- Exporting embedded essence AAFs are tricky to open in other software HOT 3
- Confused on how to add a new track HOT 4
- Destructive (in-place) change of MXF files HOT 3
- AAF create timeline of cuts with group clip HOT 1
- How to preserve link to source files after downloading an aaf from the server? HOT 1
- Create video essence from image sequence HOT 1
- 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
- Creating AAF with OperationGroup of type AudioWarp 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
- Changing creation time in aaf and creating empty sequence file HOT 4
- Error when opening aaf file HOT 2
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.