ConstantVideo
ConstantVideo[image]
generates a one-second video with a constant frame image.
ConstantVideo[image,dur]
generates a video for the duration dur.
Details and Options
- ConstantVideo can be used to generate a video from a constant image. It is typically used to convert audio to a video with constant background or as title frames in between other videos.
- Each imagei can be an Image, a Graphics object or a File object linking to an image file.
- The duration specification dur can be any of the following:
-
dur time given in seconds Quantity[dur,"Seconds"] time given in seconds or any compatible unit Quantity[n,"Frames"] time given as a number of frames - By default, SlideShowVideo places the new video under the "Video" directory in $WolframDocumentsDirectory.
- The following options are supported:
-
BitRate Automatic approximate bit rate to use CompressionLevel Automatic compression level to use FrameRate 30 the frame rate 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 (3)
Create a constant video from an image:
Create a constant video from a color:
Create a constant video from a Graphics object:
Wolfram Research (2024), ConstantVideo, Wolfram Language function, https://reference.wolfram.com/language/ref/ConstantVideo.html.
Text
Wolfram Research (2024), ConstantVideo, Wolfram Language function, https://reference.wolfram.com/language/ref/ConstantVideo.html.
CMS
Wolfram Language. 2024. "ConstantVideo." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ConstantVideo.html.
APA
Wolfram Language. (2024). ConstantVideo. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ConstantVideo.html