GridVideo
GridVideo[{v1,v2,…}]
creates a video in which each frame is a grid of frames of all vi at the corresponding time.
GridVideo[{{v11,v12,…},…}]
uses the array position of each video vij to create the video grid.
Details and Options
- GridVideo is also known as video collage.
- GridVideo can be used to show multiple videos at the same time. Creating video grids is very common when showing multiple people in a meeting, playing instruments or showing a scene from different viewpoints.
- Any of the grid elements vij can be any of the following:
-
video a Video object image an Image or Graphics func an arbitrary function returning an image or graphics Missing[…] introduces open space filled with the background color - Options to control assembly of frames are:
-
Background GrayLevel[0.2] background color ConformationMethod Automatic how to conform frames of different sizes PaddingSize Automatic padding size around the output frame Spacings Automatic spacing between input frames VideoPadding Automatic video track padding scheme for shorter videos - Settings for Spacings can have the following forms:
-
n use n pixels for spacing between frames Scaled[s] use a fraction s of the image size for spacing {specx,specy} use specific spacing for each dimension - By default, GridVideo places the new video under the "Video" directory in $WolframDocumentsDirectory.
- Options to control properties of the output video are:
-
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 RasterSize Automatic raster size of the output video VideoEncoding Automatic video encoding to use VideoTransparency False whether the output video should have a transparency channel
Examples
open allclose allScope (4)
Create a grid video from a list of videos:
Create a grid video from a 2D array of videos to enforce the position of each video in the grid:
Create a grid video from a list of an odd number of videos:
Use Missing to specify where the empty space should be:
Options (5)
Background (1)
ConformationMethod (1)
By default, videos with different frame sizes are conformed using the "Fit" method:
Use the ConformationMethod option to specify how videos should be conformed:
PaddingSize (1)
Use the PaddingSize option to control the padding size around the output frame:
Spacings (1)
Use the Spacings option to control the spacings between the input frames:
Use both Spacings and PaddingSize to add spaces between and around images:
Text
Wolfram Research (2021), GridVideo, Wolfram Language function, https://reference.wolfram.com/language/ref/GridVideo.html (updated 2022).
CMS
Wolfram Language. 2021. "GridVideo." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/GridVideo.html.
APA
Wolfram Language. (2021). GridVideo. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GridVideo.html