VideoSplit

VideoSplit[video,t]

splits video at time t.

VideoSplit[video,{t1,t2,}]

splits video at times ti.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Split a video into two segments:

Scope  (6)

Split at a time 5 seconds into the video:

Split at a time 5 seconds from the end of the video:

Split a video after the first 5 frames:

Split a video before the last 5 frames:

Partition a video into multiple segments:

Split using a valid time Quantity:

Options  (4)

CompressionLevel  (1)

Specify a compression level to use for all generated segments:

Use minimal compression:

Use maximal compression:

GeneratedAssetFormat  (1)

Use GeneratedAssetFormat to change the format of the generated segments:

GeneratedAssetLocation  (1)

Specify a directory in which to store all generated segments:

VideoEncoding  (1)

Specify a video encoding to use for all generated segments:

Applications  (1)

Split a video into scenes:

Find positions in the video where the difference between consecutive frames is large:

Split at those positions:

Properties & Relations  (3)

If the requested time is beyond the duration of the video, only the available data is returned:

Negative times are also clipped to 0:

Properties of the original video object are typically preserved:

Compare with the properties of the first video segment:

Divide a video into segments using VideoSplit:

Divide a video into segments using VideoTrim:

Possible Issues  (2)

Due to the nature of video encoding, the total duration of the segments may not add up exactly to the duration of the original video:

If the specified split time does not reflect an exact frame boundary, the same frame may be included in both resulting segments:

Specifying a frame number at which to split will generally give a discrete result:

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

Text

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

CMS

Wolfram Language. 2020. "VideoSplit." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/VideoSplit.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_videosplit, author="Wolfram Research", title="{VideoSplit}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/VideoSplit.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_videosplit, organization={Wolfram Research}, title={VideoSplit}, year={2021}, url={https://reference.wolfram.com/language/ref/VideoSplit.html}, note=[Accessed: 21-November-2024 ]}