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

Examples

open allclose all

Basic Examples  (1)

Insert a second of black frames into a video:

Show frames at every second:

Scope  (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 the 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 and show the red, green and blue intensities of each frame:

The new content is inserted directly before the relatively specified frame:

Display the last five frames in the result:

Options  (1)

FrameFitting  (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:

Specify the padding value to use when needed:

Perform windowboxing with reflected padding:

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)

The properties of the original video, apart from duration, are not changed by default:

Compare video properties:

Insert new content that has different properties:

The input properties are preserved and the duration is extended:

Possible Issues  (2)

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:

The new content is resampled:

Wolfram Research (2021), VideoInsert, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoInsert.html.

Text

Wolfram Research (2021), VideoInsert, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoInsert.html.

BibTeX

@misc{reference.wolfram_2021_videoinsert, author="Wolfram Research", title="{VideoInsert}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/VideoInsert.html}", note=[Accessed: 05-December-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_videoinsert, organization={Wolfram Research}, title={VideoInsert}, year={2021}, url={https://reference.wolfram.com/language/ref/VideoInsert.html}, note=[Accessed: 05-December-2021 ]}

CMS

Wolfram Language. 2021. "VideoInsert." Wolfram Language & System Documentation Center. Wolfram Research. 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