VideoFrameMap
VideoFrameMap[f,video]
applies f to each frame of the Video object video, returning a new Video object.
VideoFrameMap[f,video,n]
applies f to overlapping partitions of n video frames.
VideoFrameMap[f,video,n,d]
applies f to partitions with offset d.
Details and Options


- VideoFrameMap is also known as a video filter.
- VideoFrameMap is typically used to improve video quality or modify video content, including noise reduction, brightness adjustments, video stabilization, stylization and more.
- VideoFrameMap returns a new Video object whose frames are the results of f applied to each video frame or partition of video frames.
- Using VideoFrameMap[f,video,n], the partition slides by one image frame.
- VideoFrameMap places the new video under the "Video" directory in $WolframDocumentsDirectory.
- The function f should return an image for each frame or partition of frames.
- Frame variables n and d can be given as a scalar specifying the number of frames or a time Quantity object.
- VideoFrameMap supports video containers and codecs specified by $VideoEncoders and $VideoDecoders.
- The following options can be given:
-
AudioEncoding Automatic audio encoding to use CompressionLevel Automatic compression level to use FrameRate Automatic the frame rate to use GeneratedAssetLocation $GeneratedAssetLocation the location of the result OverwriteTarget False whether to overwrite an existing file SubtitleEncoding Automatic subtitle encoding to use VideoEncoding Automatic video encoding to use

Examples
open allclose allBasic Examples (2)
Scope (4)
Specify a partition size corresponding to four frames:
Specify a partition size using a time Quantity:
By default, the offset between partitions is one frame:
Specify an offset of four frames:
Specify an offset using a time Quantity:
Use Scaled to specify an offset proportional to the partition size:
The function does not need to return an image with the same properties as the input:
Graphics objects returned by the function are automatically rasterized:
Options (2)
Applications (3)
Possible Issues (2)
The function needs to generate images of consistent dimensions:

VideoFrameMap operates on the first video track of the input:
Text
Wolfram Research (2020), VideoFrameMap, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoFrameMap.html.
BibTeX
BibLaTeX
CMS
Wolfram Language. 2020. "VideoFrameMap." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VideoFrameMap.html.
APA
Wolfram Language. (2020). VideoFrameMap. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoFrameMap.html