Setting video metadata
Video files can store metadata in them.
This metadata can be viewed using the npx remotion ffprobe command:
Getting metadatatxt
Adding metadatav4.0.216
You can set metadata when rendering videos with Remotion using
- --metadatain- npx remotion render
- --metadatain- npx remotion lambda render
- --metadatain- npx remotion cloudrun render
- metadatain- renderMedia()
- metadatain- renderMediaOnLambda()
- metadatain- renderMediaOnCloudrun()
Accepted metadata
ISO Base Media Format videos (.mp4, .mov) only accepts the following metadata:
- title
- artist
- album_artist
- composer
- album
- date
- encoding_tool(Already set by FFmpeg)
- comment(Already set by Remotion)
- genre
- copyright
- grouping
- lyrics
- description
- synopsis
- show
- episode_id
- network
- keywords
- episode_sort(int8)
- season_number(int8)
- media_type(int8)
- hd_video(int8)
- gapless_playback(int8)
- compilation(int8)
Fields designated with "int8" expect a numeric value between 0 and 255.
Matroska videos (.webm, .mkv) accept arbitrary key-value fields.
The keys are always case-insensitive.
Predefined metadata
Remotion already sets the comment field to Made with Remotion v[VERSION].
If you set a custom comment, it will be merged with Remotion's comment.
FFmpeg also already sets the encoder field to Lavc[VERSION] (stands for "libavcodec", FFmpeg's video codec library).