CompositeVideoClip - Different rules for clip appereance
See original GitHub issueI have stumbled upon this problem while coding a feature involving clips being sorted in a different manner than the one intended by the CompositeVideoClip.
What i mean by that is that usually while working with any video (outside of Python). You imagine the videos in layers where You would like to have different layers.
At this point every Video is in its own layer based on the index on the list [clip0, transition_clip, clip1], would make it that clip1 is cutting the transition_clip.
I haven’t tested any workarounds. but I suspect that this might be solved by using Two CompositeVideoClips with two lists of clips with different .start_time() parameters.
That would mean using:
transition_clips = CompositeVideoClip([transition_clip, transition_clip, transition_clip])
legit_clips = CompositeVideoClip([clip0, clip1, clip2])
final_composition = CompositeVideoClip([legit_clips, transition_clips])
Which might not be computationally efficient at all as there are 3x nested clips.
Please note that the code shown above is not fully operational. I have ommited .set_start()
Which leads me to thing that this might be solved simply by sorting the lists somehow.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Implemented in #1176 😃
.set_layer(0)
Would be the base layer if no layer is set explicitly. Any other layer with higher argument supplied would mean they are on top..set_layer(1)
Would be rendered on top of the.set_layer(0)