VideoMapTimeSeries
✖
VideoMapTimeSeries
applies f to each frame of the Video object video, returning a time series.
applies f to a list of inputs extracted from each videoi.
Details and Options


- VideoMapTimeSeries can be used to detect temporal or spatial events in videos, such as object detection, motion detection or activity recognition.
- VideoMapTimeSeries returns a TimeSeries whose values are the results of f applied to an association including partial video data and their properties, such as video frames, audio data and time.
- The function f can access video and audio data using the following arguments:
-
#Image video frames as Image objects #Audio a chunk of the audio as an Audio object #Time time from the beginning of the video #TimeInterval beginning and end time stamps for the current partition #FrameIndex index of the current output frame #InputFrameIndex index of the current input frame - In VideoMapTimeSeries[f,{video1,video2,…},…], data provided to each of the arguments is a list where the
element corresponds to the data extracted from videoi.
- Using VideoMapTimeSeries[f,video,n], the partition slides by one image frame.
- Frame variables n and d can be given as a scalar specifying the number of frames or a time Quantity object.
- VideoMapTimeSeries supports video containers and codecs specified by $VideoDecoders.
- The following options can be given:
-
Alignment Center alignment of the time stamps with partitions MetaInformation None include additional metainformation MissingDataMethod None method to use for missing values ResamplingMethod "Interpolation" the method to use for resampling paths

Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Compute the mean of the RGB colors for every video frame and plot them:

https://wolfram.com/xid/0bc65iwk662vxgi-2zudrb

https://wolfram.com/xid/0bc65iwk662vxgi-phe83r


https://wolfram.com/xid/0bc65iwk662vxgi-hhssci

Compute image distance between consecutive frames:

https://wolfram.com/xid/0bc65iwk662vxgi-7snv3j

https://wolfram.com/xid/0bc65iwk662vxgi-g59yzj

Plot the result, showing times with significant scene change:

https://wolfram.com/xid/0bc65iwk662vxgi-l9sk3u

Scope (4)Survey of the scope of standard use cases
Function Specification (2)
The function f receives an Association holding data for each partition:

https://wolfram.com/xid/0bc65iwk662vxgi-3ymldm
Check the keys of the provided association:

https://wolfram.com/xid/0bc65iwk662vxgi-45os7v
Process individual video frames:

https://wolfram.com/xid/0bc65iwk662vxgi-c5gqgl


https://wolfram.com/xid/0bc65iwk662vxgi-ctfzvy

The function f can operate on the audio data, provided as an Audio object:

https://wolfram.com/xid/0bc65iwk662vxgi-wdr3ow
Compute time-synchronous measurements on both image and audio data:

https://wolfram.com/xid/0bc65iwk662vxgi-tu2s9


https://wolfram.com/xid/0bc65iwk662vxgi-4t5rke

Partition Specification (2)
Process partitions corresponding to four frames:

https://wolfram.com/xid/0bc65iwk662vxgi-d6amem

https://wolfram.com/xid/0bc65iwk662vxgi-7tak4e

Specify a partition size using a time Quantity:

https://wolfram.com/xid/0bc65iwk662vxgi-z7tdhp

By default, the offset of one frame is used:

https://wolfram.com/xid/0bc65iwk662vxgi-k1bz6x

https://wolfram.com/xid/0bc65iwk662vxgi-ni5q8a


https://wolfram.com/xid/0bc65iwk662vxgi-p18fnu

Specify an offset using a time Quantity:

https://wolfram.com/xid/0bc65iwk662vxgi-1dwdb1

Specify an offset proportional to the partition size by a Scaled amount:

https://wolfram.com/xid/0bc65iwk662vxgi-8n475z

Options (1)Common values & functionality for each option
Alignment (1)
By default, the time stamps are aligned with the center of each partition and correspond to the value of the "Time" key:

https://wolfram.com/xid/0bc65iwk662vxgi-rdmixs

https://wolfram.com/xid/0bc65iwk662vxgi-uc7to8

Use AlignmentRight to return the computed property at the end of each partition:

https://wolfram.com/xid/0bc65iwk662vxgi-bwgfo

Use a custom alignment ranging from –1 (left) to 1 (right):

https://wolfram.com/xid/0bc65iwk662vxgi-p3n29m

The boundaries of each partition are the start time for the first frame and the end time for the last frame of the partition. They can be queried using the "TimeInterval" key:

https://wolfram.com/xid/0bc65iwk662vxgi-xco1xx

Applications (2)Sample problems that can be solved with this function
Find portions of a video with constant images:

https://wolfram.com/xid/0bc65iwk662vxgi-c505kg
Define a function to detect whether an image has constant pixel values:

https://wolfram.com/xid/0bc65iwk662vxgi-c27aac
Apply the function to each frame and plot the result:

https://wolfram.com/xid/0bc65iwk662vxgi-n1c0a2

Count the number of cars in each frame:

https://wolfram.com/xid/0bc65iwk662vxgi-ycrg6k


https://wolfram.com/xid/0bc65iwk662vxgi-dmeek

Properties & Relations (1)Properties of the function, and connections to other functions
VideoMapTimeSeries returns the results along with corresponding times in a TimeSeries:

https://wolfram.com/xid/0bc65iwk662vxgi-1c4n1a

https://wolfram.com/xid/0bc65iwk662vxgi-jiigek


https://wolfram.com/xid/0bc65iwk662vxgi-693ukc

Use VideoMapList to get a list of results without time stamps:

https://wolfram.com/xid/0bc65iwk662vxgi-9l448j

Possible Issues (1)Common pitfalls and unexpected behavior
When the function returns a list, all lists should have similar dimensions:

https://wolfram.com/xid/0bc65iwk662vxgi-3eea5d

https://wolfram.com/xid/0bc65iwk662vxgi-ihho5y


Pad or trim the resulting lists to the same size to store them in the TimeSeries:

https://wolfram.com/xid/0bc65iwk662vxgi-juqlqa


https://wolfram.com/xid/0bc65iwk662vxgi-wcvkgb

Results may also be wrapped into other containers before being stored in a TimeSeries:

https://wolfram.com/xid/0bc65iwk662vxgi-ps3fnv

https://wolfram.com/xid/0bc65iwk662vxgi-5u64w7

Use VideoMapList to return the list of varying length lists:

https://wolfram.com/xid/0bc65iwk662vxgi-vwcac3

Wolfram Research (2020), VideoMapTimeSeries, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoMapTimeSeries.html (updated 2021).
Text
Wolfram Research (2020), VideoMapTimeSeries, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoMapTimeSeries.html (updated 2021).
Wolfram Research (2020), VideoMapTimeSeries, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoMapTimeSeries.html (updated 2021).
CMS
Wolfram Language. 2020. "VideoMapTimeSeries." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/VideoMapTimeSeries.html.
Wolfram Language. 2020. "VideoMapTimeSeries." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/VideoMapTimeSeries.html.
APA
Wolfram Language. (2020). VideoMapTimeSeries. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoMapTimeSeries.html
Wolfram Language. (2020). VideoMapTimeSeries. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoMapTimeSeries.html
BibTeX
@misc{reference.wolfram_2025_videomaptimeseries, author="Wolfram Research", title="{VideoMapTimeSeries}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/VideoMapTimeSeries.html}", note=[Accessed: 25-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_videomaptimeseries, organization={Wolfram Research}, title={VideoMapTimeSeries}, year={2021}, url={https://reference.wolfram.com/language/ref/VideoMapTimeSeries.html}, note=[Accessed: 25-March-2025
]}