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
This requires N times more encodes and slices
all sources are sliced to the same superframe_size
user should use same number of forward and backward sources. the system will use only the minimum of the two.
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 videoA
will be preserved while videoB
is playing, and vice versaNotes
N
times more encodes and slicessuperframe_size