VideoFrameFold
VideoFrameFold[f,img0,video]
gives a video whose frames are {f[img0,img1], f[f[img0,img1],img2],…}, where imgi are frames of video.
VideoFrameFold[f,video]
assumes the first frame to be the initial frame.
VideoFrameFold[f,img0,video,n]
uses partitions of n frames of the video for each step.
VideoFrameFold[f,img0,video,n,d]
uses partitions of n frames with offset of d frames for each step.
Details and Options
![](Files/VideoFrameFold.en/details_1.png)
- VideoFrameFold can be used to perform a computation that would benefit from results computed on previous frames, such as tracking, stabilization and more.
- Using VideoFrameFold[f,img0,video,n], the partition slides by one frame.
- The function f should return an image for each frame or partition of frames.
- In VideoFrameFold[f,img0,{video1,video2,…},…], data provided to f is a list where the
element corresponds to the frame or frames extracted from videoi.
- Frame variables n and d can be given as a scalar specifying the number of frames or a time Quantity object.
- By default, VideoFrameFold places the new video under the "Video" directory in $WolframDocumentsDirectory.
- VideoFrameFold 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 GeneratedAssetFormat Automatic the format of the result 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
![](Files/VideoFrameFold.en/Image_1.gif)
Examples
Text
Wolfram Research (2024), VideoFrameFold, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoFrameFold.html.
CMS
Wolfram Language. 2024. "VideoFrameFold." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VideoFrameFold.html.
APA
Wolfram Language. (2024). VideoFrameFold. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoFrameFold.html