General concepts > Video encoding/streaming

    Video encoding/streaming

    DatoCMS natively supports video encoding and streaming, thanks to the integration with Mux, the fastest and most advanced cloud encoding platform for on-demand streaming video.

    Every video you upload to your DatoCMS project will be instantly available for streaming. We can ingest almost every available codec, including those for broadcast and professional applications like H.264, H.265, VP9, and Apple ProRes.

    Thanks to HLS Adaptive Bitrate (ABR) streaming, every viewer will always download the right video size for their device and connection speed from the nearest CDN node.

    Would you prefer to use YouTube streaming instead?

    No problem! We also support integrations with embedded videos from YouTube/Vimeo/Facebook as a special field type you can add to your models and blocks.

    Uploading videos

    You can upload videos in the same way you upload regular assets. Through the interface, you can access some metadata related to the video, and you'll have the ability to preview it instantly:

    You can add a video to your models using the Single Asset or Asset Gallery fields.

    What gets exposed via API

    From your application, you can obtain everything you need to generate a video player through the API, as well as any thumbnails and other metadata. Take a look at the documentation of our Content Delivery API for all the details.

    DatoCMS also offers <VideoPlayer /> components for React, Vue, and Svelte, making it easy to display a fully-featured video with captions, multiple audio tracks, and timeline hover previews using data retrieved from the API.

    Subtitles, closed captions, additional audio tracks

    With every video you upload, you can make your content more accessible and reach a global audience with subtitles, closed captions, and extra audio tracks.

    After you've uploaded a video, and it's been processed correctly (i.e. you see the thumbnail and can play the preview), head over to the "Additional audio tracks and subtitles" section to upload both alternate audio tracks (in M4A, MP3, or WAV format) and subtitles (in SRT or VTT format).

    Auto-generated captions

    We offer the option to automatically generate closed captions for your video directly from its audio using speech recognition and machine learning. All you need to provide is the language of your video and the description to display in the player.

    The transcription quality is usually pretty good, but since it's machine-generated, we recommend double-checking the results, particularly when used with suboptimal audio recordings.

    Feature limited to recently added videos

    The option to automatically generate captions is only available for videos uploaded in the last 7 days.

    Pricing and availability

    Integration with Mux is offered across all DatoCMS packages, each incorporating a generous amount of encoding/streaming minutes into the cost.

    If you're subscribed to a paid plan and exceed your quota, your website will not experience any service disruption. At the end of the month, we'll bill you for any additional usage.

    What happens if you downgrade or cancel your subscription?

    Videos will be kept for 60 days after the subscription ends. After that, we'll delete the videos. If you then change your mind and reactivate the project, you will need to re-upload the videos.

    This behavior is particular to videos, as they can be very big and expensive to retain. This does not apply to other assets or data in general.

    Explore more!

    To gain a comprehensive understanding of videos and video optimization in DatoCMS, take a look at this video tutorial: