is an option that specifies the video tracks of interest.
VideoTrackSelection
is an option that specifies the video tracks of interest.
Examples
open all close allBasic Examples (1)
Export a Video object to an Ogg file without any video tracks:
v = Video["ExampleData/bullfinch.mkv"];
Export["file.ogg", v, VideoTrackSelection -> None]Check the number of exported video tracks:
Import["file.ogg", {"Ogg", "VideoTrackCount"}]Scope (2)
Create a Video object with multiple video tracks:
v = VideoCombine[{Video["ExampleData/bullfinch.mkv"], VideoGenerator[RandomImage[]]}];
Information[v, "VideoTracks"]Create a new video by selecting only a single track:
new = Video[v, VideoTrackSelection -> 1];
Information[new, "VideoTracks"]Create a new video by selecting multiple tracks:
new = Video[v, VideoTrackSelection -> {2, 1}];
Information[new, "VideoTracks"]Create a new video by selecting all tracks:
new = Video[v, VideoTrackSelection -> All];
Information[new, "VideoTracks"]Video objects need to have at least one video track:
Video[v, VideoTrackSelection -> None];Create a Video object with multiple video tracks:
v = VideoCombine[{Video["ExampleData/bullfinch.mkv"], VideoGenerator[RandomImage[]], Video["ExampleData/Caminandes.mp4"]}];
Information[v, "VideoTracks"]Select two tracks out of the three present in the original video:
twoTrack = Video[v, VideoTrackSelection -> {3, 1}];
Information[twoTrack, "VideoTracks"]Select one track from the two-track video. Notice that the selection is done in a relative manner. By selecting the first track, the third track of the original video is actually retrieved:
oneTrack = Video[twoTrack, VideoTrackSelection -> 1];
Information[oneTrack, "VideoTracks"]The track selection in the new video is limited to two:
Video[twoTrack, VideoTrackSelection -> 3];Applications (1)
Create a Video object with multiple video tracks:
v = VideoCombine[{Video["ExampleData/bullfinch.mkv"], VideoGenerator[RandomImage[]], Video["ExampleData/Caminandes.mp4"]}];All the Video functions will act on the first track of the input:
VideoExtractFrames[v, .6]To operate on a different track, use the VideoTrackSelection option:
VideoExtractFrames[Video[v, VideoTrackSelection -> 2], .6]Related Guides
History
Text
Wolfram Research (2020), VideoTrackSelection, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoTrackSelection.html.
CMS
Wolfram Language. 2020. "VideoTrackSelection." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VideoTrackSelection.html.
APA
Wolfram Language. (2020). VideoTrackSelection. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoTrackSelection.html
BibTeX
@misc{reference.wolfram_2026_videotrackselection, author="Wolfram Research", title="{VideoTrackSelection}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/VideoTrackSelection.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_videotrackselection, organization={Wolfram Research}, title={VideoTrackSelection}, year={2020}, url={https://reference.wolfram.com/language/ref/VideoTrackSelection.html}, note=[Accessed: 13-June-2026]}