VideoRecord
✖
VideoRecord
starts recording a VideoStream object vstream that is connected to an imaging device, a screen or a notebook.
Details and Options

- VideoRecord can be used to perform programmatic screen recording or a video recording from a connected camera, a screen or a livestream.
- The source can be any of the following:
-
"camera" recording from a camera in $ImagingDevices {"Screen",n} recording from the n connected screen
{"Screen",n,bbox} recording from the region bbox of the n screen
NotebookObject[…] recording from a notebook displayed on screen "livestream" recording from an HTTP or HTTPS livestream - Use VideoPause or VideoStop to pause or stop the recording.
- Video[vstream] returns a Video object including all the captured data available in vstream.
- By default, VideoRecord places the new video under the "Video" directory in $WolframDocumentsDirectory.
- The following options can be given:
-
AudioEncoding Automatic audio encoding to use AudioInputDevice Automatic audio device from which to record CompressionLevel Automatic compression level to use FrameRate Automatic the frame rate to use GeneratedAssetFormat Automatic the format of the result GeneratedAssetLocation $GeneratedAssetLocation the location of the result MaxDuration ∞ maximum duration of recording OverwriteTarget False whether to overwrite an existing file RasterSize Automatic the raster size used to rasterize expressions SampleRate Automatic the audio sample rate to use VideoEncoding Automatic video encoding to use
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (5)Survey of the scope of standard use cases

https://wolfram.com/xid/0b8eo0l276-dqj6ji


https://wolfram.com/xid/0b8eo0l276-32n6rw


https://wolfram.com/xid/0b8eo0l276-trn783

Record a video from a part of the first screen:

https://wolfram.com/xid/0b8eo0l276-82826x


https://wolfram.com/xid/0b8eo0l276-waquur


https://wolfram.com/xid/0b8eo0l276-6cmxb8

Record a video from a notebook:

https://wolfram.com/xid/0b8eo0l276-8vw0o6


https://wolfram.com/xid/0b8eo0l276-q4isy5

Record a video from a livestream:

https://wolfram.com/xid/0b8eo0l276-vvn5p9


https://wolfram.com/xid/0b8eo0l276-n3qwxv

https://wolfram.com/xid/0b8eo0l276-78gi8j

Record a video from an existing VideoStream:

https://wolfram.com/xid/0b8eo0l276-tkqxmn


https://wolfram.com/xid/0b8eo0l276-oj0396


https://wolfram.com/xid/0b8eo0l276-fxr98n

Options (20)Common values & functionality for each option
AudioEncoding (2)
Specify the audio encoder to be used in the recording:

https://wolfram.com/xid/0b8eo0l276-ypd5vn
Retrieve the result and inspect the audio encoding:

https://wolfram.com/xid/0b8eo0l276-60x1ea

When recording an existing stream, using the AudioEncoding option will permanently change its "AudioEncoding" property:

https://wolfram.com/xid/0b8eo0l276-7jkpat


https://wolfram.com/xid/0b8eo0l276-po3pmt

AudioInputDevice (3)
Specify the audio input device to be used in the recording:

https://wolfram.com/xid/0b8eo0l276-5ok7cp
Plot the audio track of the result:

https://wolfram.com/xid/0b8eo0l276-qhozwc

Use AudioInputDeviceNone to avoid recording an audio track:

https://wolfram.com/xid/0b8eo0l276-4fqna7
Plot the audio track of the result:

https://wolfram.com/xid/0b8eo0l276-c05art

When recording an existing stream, using the AudioInputDevice option will permanently change its "AudioInputDevice" property:

https://wolfram.com/xid/0b8eo0l276-fo3xhk


https://wolfram.com/xid/0b8eo0l276-9qfadx

CompressionLevel (1)
FrameRate (2)
Specify the frame rate to be used in the recording:

https://wolfram.com/xid/0b8eo0l276-0oxk2c
Retrieve the result and inspect the frame rate:

https://wolfram.com/xid/0b8eo0l276-j367cg

When recording an existing stream, using the FrameRate option will permanently change its "FrameRate" property:

https://wolfram.com/xid/0b8eo0l276-gu3mb9


https://wolfram.com/xid/0b8eo0l276-t8chff

GeneratedAssetFormat (1)
GeneratedAssetLocation (2)
Specify the asset location to be used in the recording:

https://wolfram.com/xid/0b8eo0l276-dmhgmm
Retrieve the resulting file name:

https://wolfram.com/xid/0b8eo0l276-jgjpqj

When recording an existing stream, using the GeneratedAssetLocation option will permanently change its "GeneratedAssetLocation" property:

https://wolfram.com/xid/0b8eo0l276-rlmbpe


https://wolfram.com/xid/0b8eo0l276-5tq1bu

MaxDuration (2)
Specify the duration of the recording:

https://wolfram.com/xid/0b8eo0l276-n2iyki
Retrieve the resulting duration:

https://wolfram.com/xid/0b8eo0l276-4za30o

If recording an existing stream, using the MaxDuration option will permanently change its "MaxDuration" property:

https://wolfram.com/xid/0b8eo0l276-dxuflm


https://wolfram.com/xid/0b8eo0l276-d7ynpg

OverwriteTarget (1)
By default, if a file with the specified name already exists, the recording fails:

https://wolfram.com/xid/0b8eo0l276-l3hdqw

Use the OverwriteTarget to overwrite the existing file:

https://wolfram.com/xid/0b8eo0l276-c68lp7
RasterSize (2)
Specify the raster size of the recording:

https://wolfram.com/xid/0b8eo0l276-vlhs4q
Retrieve the resulting raster size:

https://wolfram.com/xid/0b8eo0l276-vgqel4

When recording an existing stream, using the RasterSize option will permanently change its "OriginalRasterSize" property:

https://wolfram.com/xid/0b8eo0l276-y638zn


https://wolfram.com/xid/0b8eo0l276-j5oky1

SampleRate (2)
Specify the sample rate of the recording:

https://wolfram.com/xid/0b8eo0l276-36exah
Retrieve the resulting raster size:

https://wolfram.com/xid/0b8eo0l276-qxawfq

When recording an existing stream, using the SampleRate option will permanently change its "SampleRate" property:

https://wolfram.com/xid/0b8eo0l276-295scw


https://wolfram.com/xid/0b8eo0l276-fltef4

VideoEncoding (2)
Specify the video encoder to be used in the recording:

https://wolfram.com/xid/0b8eo0l276-wmtuiy
Retrieve the result and inspect the audio encoding:

https://wolfram.com/xid/0b8eo0l276-sxxmr2

When recording an existing stream, using the VideoEncoding option will permanently change its "VideoEncoding" property:

https://wolfram.com/xid/0b8eo0l276-r431wv


https://wolfram.com/xid/0b8eo0l276-szlv4z

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