VideoReplace

VideoReplace[video,{t1,t2}new]

replaces the video between t1 and t2 with the new video new.

VideoReplace[video,{{t11,t12},}new]

replaces multiple intervals with the same video new.

VideoReplace[video,{{t11,t12}new1,}]

replaces multiple intervals.

VideoReplace[video,,durfitting]

uses the specified durfitting method to replace an interval of a different duration.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Replace the first second of a video with black frames:

Show frames at every second:

Scope  (8)

Replacement Specifications  (6)

Replace a single interval of a video:

Show red, green and blue intensities over time:

Replace a single interval and show intensities over time:

Replace multiple intervals with the same video:

Replace multiple intervals with different videos:

Specify intervals using time quantities:

Specify intervals using the number of frames:

Show red, green and blue intensities of each frame:

Specify times or intervals 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:

Fitting  (2)

By default, if the duration of replacement is longer than the specified interval, the video is trimmed:

This is equivalent to the "Fill" fitting mode:

Use the "Insert" fitting mode to include all of the new video in the result:

If the replacement video is shorter than the specified interval, the video is by default padded with black frames and silent audio:

This is equivalent to the "Fill" fitting mode:

Use the "Insert" fitting mode to include all of the new video in the result:

Options  (1)

FrameFitting  (1)

The frame size is taken from the base video and new videos are conformed to that size:

Replace the second half of a video segment with frames that have 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:

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

Text

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

BibTeX

@misc{reference.wolfram_2021_videoreplace, author="Wolfram Research", title="{VideoReplace}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/VideoReplace.html}", note=[Accessed: 24-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_videoreplace, organization={Wolfram Research}, title={VideoReplace}, year={2021}, url={https://reference.wolfram.com/language/ref/VideoReplace.html}, note=[Accessed: 24-September-2021 ]}

CMS

Wolfram Language. 2021. "VideoReplace." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VideoReplace.html.

APA

Wolfram Language. (2021). VideoReplace. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoReplace.html