VideoTranscode
VideoTranscode [video,"format"]
converts video to the specified format.
VideoTranscode [video,service]
converts video to the specification recommended by the specified service.
VideoTranscode [{v1,v2,…},…]
converts all vi videos to have conforming properties with respect to the given specification.
Details and Options
- VideoTranscode can be used to convert between video containers and codecs, or to prepare videos suitable for different video services.
- The "format" can be any of the supported video formats in $VideoEncoders or Inherited .
- The service can be any of the following:
-
"Facebook" regular Facebook video feed specification"Instagram" Instagram in-feed video and video ads specification"LinkedIn" LinkedIn shared video specification"Snapchat" Snapchat video specification"Twitter" Twitter video specification"YouTube" recommended YouTube video specification
- Most services automatically transcode video files when necessary. Use VideoTranscode to make sure the file is prepared for a particular service and reduce the file size, which enables faster upload.
- VideoTranscode [video] is effectively equivalent to VideoTranscode [video,Inherited ], when possible.
- By default, VideoTranscode places the new video under the "Video" directory in $WolframDocumentsDirectory .
- The following options can be given:
- VideoTranscode supports video containers and codecs specified by $VideoEncoders and $VideoDecoders .
Examples
open allclose allBasic Examples (1)
Transcode an MP4 video to Ogg:
Scope (4)
Convert a Video object to any of the supported file formats:
Convert a video to a format suitable for YouTube:
All of the services only accept videos with a single audio and video track:
Transcode and conform a list of videos:
Options (12)
AudioEncoding (2)
By default, if the second argument is a format, the original audio encoding is preserved when possible:
Specify the audio encoding to use:
BitRate (1)
Transcode video using a default bit rate:
Specify the approximate video bit rate; the audio bit rate is computed automatically:
Specify audio and video bit rates:
Display the average bit rate:
Display the bit rate used for the video track:
Display the bit rate used for the audio track:
CompressionLevel (1)
Transcode video using default compression:
Use maximum compression:
The choice of encoders affects the amount by which a file can be compressed:
When the bit rate is specified, the value of the CompressionLevel option is not used:
FrameRate (1)
By default, VideoTranscode preserves the frame rate (rounds to the nearest integer value):
Specify the frame rate to use:
GeneratedAssetLocation (1)
By default, generated video files are stored in $WolframDocumentsDirectory :
Specify output file directory:
Specify the output file path:
OverwriteTarget (1)
By default, existing files are not overwritten:
Overwrite existing file:
RasterSize (1)
By default, VideoTranscode preserves the raster size:
Specify the raster width to use while preserving the aspect ratio:
Specify the raster width and height:
SampleRate (1)
By default, VideoTranscode preserves the sample rate:
Specify the sample rate to use:
SubtitleEncoding (1)
Specify the subtitle encoding to use:
VideoEncoding (2)
By default, if the second argument is a format, the original video encoding is preserved when possible:
Specify the video encoding to use:
Related Guides
Text
Wolfram Research (2020), VideoTranscode, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoTranscode.html (updated 2023).
CMS
Wolfram Language. 2020. "VideoTranscode." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/VideoTranscode.html.
APA
Wolfram Language. (2020). VideoTranscode. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoTranscode.html
BibTeX
@misc{reference.wolfram_2025_videotranscode, author="Wolfram Research", title="{VideoTranscode}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/VideoTranscode.html}", note=[Accessed: 16-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_videotranscode, organization={Wolfram Research}, title={VideoTranscode}, year={2023}, url={https://reference.wolfram.com/language/ref/VideoTranscode.html}, note=[Accessed: 16-April-2025 ]}