splits video at time t.
splits video at times ti.
Details and Options
- VideoSplit can be used to split a video into video segments such as video scenes.
- The times ti can be any of the following:
t time given in seconds Quantity[t,"unit"] time given in "unit" compatible with seconds Quantity[t,"Frames"] time given as number of frames
- By default, VideoSplit places the new videos under the "Video" directory in $WolframDocumentsDirectory.
- The following options can be specified:
AudioEncoding Automatic audio encoding to use CompressionLevel Automatic compression level 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 SubtitleEncoding Automatic subtitle encoding to use VideoEncoding Automatic video encoding to use VideoTransparency False whether the output video should have a transparency channel
Examplesopen allclose all
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:
Use GeneratedAssetFormat to change the format of the generated segments:
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).
Wolfram Language. 2020. "VideoSplit." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/VideoSplit.html.
Wolfram Language. (2020). VideoSplit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoSplit.html