AudreyBeard / compressure

4 stars 1 forks source link

Randomized Video Switching #22

Closed AudreyBeard closed 1 year ago

AudreyBeard commented 1 year ago

Description

Allow users to specify N forward and backwards input videos, and a probability of randomly switching between inputs in the final product.

How it works

Every time we append a slice to the video list (which is later fed to the concat command), we generate a random number. If it's greater than the threshold markov_p, then it will switch to the next input source buffer (whether forward or backward). The currently-active source buffer is the only one that's iterated, so the position of video A will be preserved while video B is playing, and vice versa

Notes