returns the first t seconds of video.
returns the last t seconds of video.
returns video starting at time t1 and ending at time t2 of video.
Details and Options
- VideoTrim can be used to either extract interesting parts of a recording or remove uninteresting parts.
- VideoTrim places the new video under the "Video" directory in $WolframDocumentsDirectory.
- The time t 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
- The following options can be specified:
AudioTracks All audio tracks to trim SubtitleTracks All subtitle tracks to trim VideoTracks All video tracks to trim
Examplesopen allclose all
Basic Examples (1)
Trim using a valid time Quantity:
Import the audio track and use AudioLocalMeasurements to find the time when the audio has the greatest high-frequency content:
Use VideoTimeSeries to apply the function to each frame and plot the result:
Use VideoTrim to partition a video file into smaller segments: