SnippetsVideo
SnippetsVideo[video,n]
returns a summary video based on n snippets from video.
SnippetsVideo[video,timespec]
returns a summary video based on snippets taken at times specified by timespec.
Details and Options
- SnippetsVideo creates a condensed or summarized version of a long video. The summary can allow for faster review or analysis of the whole content, or can be used as a teaser or trailer.
- Possible settings for time specification timespec include:
-
n n uniformly spaced timestamps {"Uniform",n} n uniformly spaced timestamps {"Random",n} n randomly chosen timestamps {t1,t2,…} explicit timestamps ti {w1t1,w2t2,…} computes snippet duration for each timestamp ti according to the weight wi - The times ti can be any of the following:
-
t time given in seconds Quantity[t,"unit"] time given in "unit" compatible with seconds Quantity[t,"Frames"] time given as a number of frames - Options to control the snippet selection are:
-
Alignment Automatic alignment of the video partitions with times DefaultDuration Automatic suggested duration in seconds - Options to control properties of the output video are:
-
CompressionLevel Automatic compression level to use GeneratedAssetFormat Automatic the file format of the result GeneratedAssetLocation $GeneratedAssetLocation the location of the result OverwriteTarget False whether to overwrite an existing file RasterSize Automatic the raster size used to rasterize expressions VideoEncoding Automatic video encoding to use VideoTransparency False whether the output video should have a transparency channel
Examples
open allclose allScope (2)
Create a summary based on a specified number of snippets to extract from the video:
Join samples of the video at 5 uniformly spaced times:
Compare the original and summary durations:
Compare frames from the original and the summary:
Create a summary video based on 5 randomly sampled snippets:
The summary duration may be shorter than the default duration to avoid returning repeated content if the intervals around the randomly spaced times overlap:
Options (2)
Text
Wolfram Research (2021), SnippetsVideo, Wolfram Language function, https://reference.wolfram.com/language/ref/SnippetsVideo.html.
CMS
Wolfram Language. 2021. "SnippetsVideo." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SnippetsVideo.html.
APA
Wolfram Language. (2021). SnippetsVideo. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SnippetsVideo.html