VideoInsert
VideoInsert[video,tnew]
inserts the video new at time t.
VideoInsert[video,{t1,t2,…}new]
inserts the same video at multiple positions.
VideoInsert[video,{t1new1,…}]
inserts multiple videos at different positions.
Details and Options
- VideoInsert can be used to insert one or multiple videos into an existing video object at various times.
- The time t can be any of the following:
-
t time given in seconds Quantity[t,"unit"] time given in "unit" compatible with seconds Quantity[t,"Samples"] time given as a number of samples - By default, VideoInsert places the new video under the "Video" directory in $WolframDocumentsDirectory.
- The following options can be specified:
-
AudioEncoding Automatic audio encoding to use CompressionLevel Automatic compression level to use ConformationMethod Automatic how to conform frames of different sizes GeneratedAssetFormat Automatic the file format of the result GeneratedAssetLocation $GeneratedAssetLocation location of the generated asset OverwriteTarget Automatic whether to overwrite an existing file SubtitleEncoding Automatic subtitle encoding to use VideoEncoding Automatic video encoding to use VideoTransparency False whether the output video should have a transparency channel
Examples
open allclose allScope (6)
Insert a video at a single time:
Show red, green and blue intensities over time:
Insert a new 1-second video at a single time and show intensities over time:
Insert a new 1-second video at multiple times:
Insert different 1-second videos at multiple times:
Specify times as time quantities:
Specify times using a number of frames:
The new content is inserted directly after the specified frame:
Display the first five frames in the result:
Specify times relative to the end of the video:
Specify a number of frames relative to the end:
The new content is inserted directly before the relatively specified frame:
Options (1)
ConformationMethod (1)
The frame size is taken from the base video and inserted videos are conformed to that size:
Insert a new video with frames having a different size and aspect ratio:
By default, frames from new videos are resized using the "Fit" method with black padding:
Specify a different fitting method:
Applications (1)
Insert new content at detected scene changes in a video:
Compute and display the mean pixel intensity of differences in consecutive frames:
Find scene changes by detecting peaks of the intensity differences after smoothing by 50 frames:
Create "chapter marks" to insert at each scene change:
Insert new videos at each scene change:
Display the first chapter marker and one frame from before and after it:
Properties & Relations (1)
Possible Issues (3)
Times outside of the duration of the video will be removed:
Show red, green and blue intensities over time:
Insert new content at two times, the last of which is beyond the duration of the video and not used:
If the new content has a different frame rate than the input video, it will be resampled:
Display frame rates of the videos:
Insert the new video at a single time:
Display frames of the new video:
Computation on videos linking to a remote asset may take a long time. Download the asset to get results faster:
Text
Wolfram Research (2021), VideoInsert, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoInsert.html (updated 2021).
CMS
Wolfram Language. 2021. "VideoInsert." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/VideoInsert.html.
APA
Wolfram Language. (2021). VideoInsert. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoInsert.html