VideoTimeStretch
VideoTimeStretch[video,spec]
applies time stretching to video using the specified spec.
Details and Options
- VideoTimeStretch can be used to change the speed of a video or parts of a video to create slower or faster video.
- Time stretch specification spec can be any of the following:
-
r uniformly stretch with a ratio r {{t11,t12}r1,…} stretch ratio ri for the time interval {t11,t12} func an arbitrary function func - VideoTimeStretch processes only the video tracks, dropping all audio and subtitle tracks.
- By default, VideoTimeStretch places the new video under the "Video" directory in $WolframDocumentsDirectory.
- The following options are supported:
-
CompressionLevel Automatic compression level to use GeneratedAssetFormat Automatic the format of the result GeneratedAssetLocation $GeneratedAssetLocation the location of the result OverwriteTarget False whether to overwrite an existing file VideoEncoding Automatic video encoding to use VideoTransparency False whether the output video should have a transparency channel
Examples
open allclose allBasic Examples (2)
Scope (3)
Properties & Relations (3)
Apart from duration, the video track properties of the input video are not changed by default:
VideoTimeStretch only operates on the video tracks:
Stretch the audio track using AudioTimeStretch:
Combine the video and audio tracks:
Use VideoFrameMap to create a file from all original frames at a different frame rate:
This effectively only changes time stamps of all frames:
Compare with the result of VideoTimeStretch:
Text
Wolfram Research (2021), VideoTimeStretch, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoTimeStretch.html (updated 2022).
CMS
Wolfram Language. 2021. "VideoTimeStretch." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/VideoTimeStretch.html.
APA
Wolfram Language. (2021). VideoTimeStretch. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoTimeStretch.html