The term match cutting is explained in the terminology section.
Items in the Netflix catalogue (series/movies/shows) have millions of frames and to create manually match cuts, one has to label cuts and match them based on memory. This method misses out on lot of possible combinations and is very time consuming.
To automate selecting similar shots for transitions, we make use of neural networks.
A frame can be understood as a snapshot and a shot is a collection of frames.
Shot de duplication
Early attempts surfaced many near-duplicate shots.
Imagine two people having a conversation in a scene. It’s common to cut back and forth as each character delivers a line.
Near-duplicate shots are not very interesting for match cutting. Given a sequence of shots, we identified groups of near-duplicate shots and only retained the earliest shot from each group.
Identifying near-duplicate shots
Shots are put into an encoder model, which computes a vector representation of each shot and similarity is calculated using cosine similarity.
Shots with very similar vector representations are removed.
Avoiding very small shots
These can arise from a clip of the cast having a conversation, the camera shifts very frequently and can falsely create many such redundant clips.
Output of segmentation models is a pixel mask telling which pixels belong to which object.
Basically the similarity between character-outlines is calculated.
Compute IoU for two different frames, pairs with high IoU are selected as candidates.
Match cut involving continuation of motion of an object or person.
Intensity of the color represents the magnitude of the motion. Cosine similarity is once again used here.
Brought out scenes with similar camera movement.
End of Article 1
As netflix is accessed by devices with different screen resolutions which work on different network qualities, video downscaling is deemed necessary.
A 4K source video will be downscaled to 1080p, 720p, 540p and so on, for different users.
End of Article 2
To streamline and standardize media assets
Memoizes features/embeddings tied to media entities.
Prevents computation of identical features for same asset, enables different pipelines have access to these features.
Need to control amount of resources used per step
Compute another representation per shot, depending on the flavor of match cutting
Enumerate all pairs and compute a score for each pair of representations. Scores are stored along with the shot metadata
Sort the pairs based on similarity score, and use only the top k-pairs, k being the number of match-cuts required by design team.
Lack of Standardization
The representations we extract in Steps 2 and Step 3 are sensitive to the characteristics of the input video files.
In some cases such as instance segmentation, the output representation in Step 3 is a function of the dimensions of the input file.
Not having a standardized input file format creat quality-matching issues when representations across titles with different input files needed to be processed together (e.g. multi-title match cutting).
Wasteful repeated computations
Segmentation at the shot level is a common task used across many media ML pipelines.
Also, deduplicating similar shots is a common step that a subset of those pipelines share.
Memoizing these computations not only reduces waste but also allows for congruence between pipelines that share the same preprocessing step.
Pipeline triggering
Triggering logic : whenever new files land, trigger computation
Entire Netflix catalog is pre-processed and stored for reuse. Match Cutting benefits from this standardization as it relies on homogeneity across videos for proper matching.
Videos are matched at the shot level.
Breaking videos into shots is a common task, the infrastructure team provides this canonical feature that can be used as a dependency for other algorithms.
Using this feature values were memoized, saving on compute costs and guaranteeing coherence of shot segments across algos.
Match cutting pipeline. Interactions are expressed as a feature mesh.
End of article
Video editing technique, that acts as a transition between two shots using similar visual frames, composition, action etc.
In film-making, a match cut is a transition between two shots that uses similar visual framing, composition, or action to fluidly bring the viewer from one scene to the next.
Also reffered to as the Jaccard Index.
Intersection over Union, has theoretical maximum value of 1, when both sets are equal.
J(A,B)=
To visualize, consider two vectors in 2D space. Thier cosine similarity is simply given by computing the cosine of two vectors.
Video explaning cosine similarity
Notes
Using many worker nodes to make use of parallelization to help speed up computation.
Orchestration coordinates multiple microservices to achieve a common goal using a central platform like Kubernetes
congruency can be considered as a factor that influences the convergence of optimization methods
cohesion refers to the degree to which the elements inside a module belong together. In one sense, it is a measure of the strength of relationship between the methods and data of a class and some unifying purpose or concept served by that class.