Video best practices
Last updated: Nov-26-2026
Overview
The Cloudinary video solution ensures that videos are streamed and delivered seamlessly and optimally to end-users across various devices and platforms.
Use Cloudinary to automatically crop, resize, transcode, and stream your videos. This page explains how to plan your video implementation, which delivery approach to choose, and which features help you deliver a good viewing experience while keeping costs down. Explore the linked documentation to learn how to integrate each of these into your applications.
- Overview
- Plan your video implementation
- Common mistakes to avoid
- Uploading
- Choose progressive or adaptive delivery
- Video transcoding and optimization
- Adaptive bitrate streaming
- Dynamic and intelligent transformations
- Cloudinary Video Player
- Accessibility support
- Video analytics
- Video in native mobile apps
- Test before you launch
Plan your video implementation
The right setup depends on how your videos are used. Before you start, answer these questions:
| Question | Why it matters |
|---|---|
| How long are your videos? | Duration, and whether a video plays automatically or loops, decide between progressive delivery and adaptive bitrate streaming. |
| Where do they play? | Websites, including pages that apps display in a WebView, follow the web guidance on this page. Native iOS and Android apps need a different approach. |
| Do you release videos into traffic peaks, such as product launches or major campaigns? | If so, generate your derived videos in advance so they're ready for the first viewer. |
| Do you need captions, audio descriptions, chapters, or analytics? | The Cloudinary Video Player supports all of these. |
| Do you edit videos before uploading them, for example to crop them, add a logo, or burn in subtitles? | You can usually replace those manual steps with transformations and player text tracks. |
| How do you measure the impact of your videos, for example on engagement or conversions? | More video usually means more usage. Measuring the results, for example with an A/B test, shows whether it pays off. |
Common mistakes to avoid
These are the issues that most often slow down pages and increase usage without improving what your viewers see:
-
Delivering original videos without any transformations: An original upload is often far larger than any screen needs, and a URL with no transformations gets no optimization at all, because the Default video quality setting only applies when the URL includes another transformation. Add
f_autoandq_autoto your delivery URLs, or enable default automatic format. - Not limiting the delivered dimensions: Delivering a 4K video to a phone with a 1080p screen costs bandwidth with no visible gain. Limit the width with c_limit, or let the player choose it with responsive breakpoints.
- Applying only some optimizations: Applying only one or two of automatic format, automatic quality, and limited dimensions still leaves files larger than they need to be. Use all three together.
-
Assuming automatic format selection works in native apps:
f_autorelies on the client to say which formats it supports. Browsers do this automatically, but native apps don't, so they get H.264. In a native app, check which formats the device supports and request one of them. See Video in native mobile apps. -
Loading videos nobody watches: Loading video data before playback makes it start faster, but the data is delivered even if the viewer never plays it. For players below the fold or behind a click, set the player's
preloadoption tonone, or use lazy loading.
Uploading
Before you can stream your videos to your users, you'll need to upload them to your Cloudinary account. It's important to factor upload into the delivery process as there are some video upload features that help ensure the best experience for your end users. Here are some options to consider when implementing uploads for videos:
-
Chunked uploads: For videos larger than 100 MB, you need to split the video into chunks as part of the upload. Our backend SDKs have an
upload_largemethod to handle this for you. -
Eager transformations: By default, Cloudinary generates each transformed video on the fly, the first time it's requested. While a video is being generated, Cloudinary streams it to the viewer, so the first viewer's player shows the wrong duration and can't seek. Eager transformations generate your transformed videos in advance, when you upload them, or later using the explicit method. Use them when you release videos into a traffic peak, for long or high-resolution (2K or 4K) videos, and for transformations that take a while to process. This is especially useful when generating a number of renditions to be used with adaptive bitrate streaming. Keep in mind that:
- Adding
f_autoto an eager transformation doesn't generate a version for each format. Instead, request an eager transformation for each format and codec thatf_autocan deliver, such asf_webm,vc_vp9,f_mp4,vc_h265, andf_mp4,vc_h264, keeping the format and codec in the same component. Each eager transformation must match the delivery URL exactly: the same other transformations in the same order, including your default video quality if it's applied, and the same extension. The Cloudinary Video Player and the<video>example on this page request URLs without an extension, such asc_limit,w_640/f_auto:video/<public_id>, so set the eagerformatto an empty string. See Eager transformations for videos. - Eager transformations aren't supported together with the optimize by default settings.
- If you can't generate a video in advance, add the fl_no_stream flag to the delivery URL. Cloudinary then waits for the video to be fully generated before it responds.
- Adding
-
Upload presets: Use upload presets to centrally define your upload behavior including eager transformations. See best practices for upload presets for guidance on using
f_autoandq_autowith video eager transformations. -
Captions and chapters: Request a transcript (
auto_transcription) and chapters (auto_chaptering) as part of your upload, so they're ready to display in the player. They need an audio track with speech.
Learn more about uploading in our upload guide.
Choose progressive or adaptive delivery
There are two ways to deliver video:
- Progressive delivery sends a single video file, which starts playing while the rest downloads.
- Adaptive bitrate streaming sends a manifest that lists several versions of the video, and the player switches between them as the viewer's network conditions change.
Choose one approach for each video, based on how it's used:
| Progressive delivery | Adaptive bitrate streaming | |
|---|---|---|
| Typical uses | Product videos on listing and product pages, hero banners, background loops, ads, social clips, GIF replacements, and shareable or downloadable links | Tutorials, reviews, unboxing videos, training, interviews, and documentaries |
| Duration | Under a minute, or any length if it plays automatically or loops | A minute or longer, for videos people watch through |
| Playback | Starts fast, suits autoplay and looping | Usually click to play, starts after a short buffer |
| Quality during playback | Fixed when the video loads | Adjusts as network conditions change |
| Transformations | Apply any transformation on the fly | Limited set with automatic streaming profiles |
| Formats | MP4 or WebM | HLS or MPEG-DASH |
Video transcoding and optimization
With Cloudinary, video transcoding is made easy by allowing you to convert videos from one format to another and optimize them for faster delivery, all on-the-fly and done using dynamic URL transformations. Take advantage of next-generation video codecs to automatically stream and deliver your videos in the optimal video quality and format. Also limit the delivered width to the largest size your layout needs, for example with c_limit,w_1280.
When working with short-form videos, the optimal way to process and deliver these videos is to use Cloudinary's auto optimizations and serve the videos progressively. This means Cloudinary sends the optimized video files to the user as a single, continuous download. The video is progressively loaded and played back on the user's device.
Here's how you would progressively deliver a short-form video with automatic format transcoding and quality applied:
You can also optimize videos without changing your delivery URLs, using your product environment's optimization settings:
- Default video quality: Applies your chosen quality, and an automatically selected codec, to every delivered video that includes at least one other transformation.
- Default automatic format: Applies automatic format selection to every delivered video, and because this counts as a transformation, your default video quality also applies. It's available for plans that use the video seconds metric, and you enable it through support. It's ignored when a delivery URL includes a format parameter or a named transformation. Don't enable it if you rely on eager transformations, because your delivery URLs then won't match the versions you generated in advance.
f_auto to existing videos, or deliver new format and codec combinations, expect a temporary rise in your transformation usage while those versions are generated. It settles as the derived videos are reused for later requests.If your delivery pipeline requires videos to meet a minimum bitrate, you can use constant bitrate (CBR) mode to target a consistent bitrate throughout playback.
Learn more in our video optimization guide.
Adaptive bitrate streaming
Adaptive bitrate streaming is a method of video delivery which automatically adjusts the video quality and resolution based on the user's network conditions and device capabilities, ensuring smooth playback and minimal buffering.
The process involves:
- Encoding your video into multiple renditions with different bitrates and resolutions.
- Analyzing the user's network conditions and device capabilities when they start playing a video to select the best version for delivery.
- Seamlessly switching to a lower-quality version if the user's network conditions deteriorate (for example, a drop in connection speed) to prevent buffering or interruptions.
- Upgrading to a higher-quality version if the user's network conditions improve, providing a better viewing experience.
Adaptive bitrate streaming is optimal when serving longer high resolution videos, where progressively downloading the video could result in excessive buffering.
The Cloudinary adaptive bitrate solution uses streaming profiles to configure how to stream your videos. For ease, you can let Cloudinary automatically select the best streaming profile and create the renditions on-the-fly. Automatic streaming profile selection (sp_auto) delivers up to 1080p by default, and you can set a different maximum resolution. It supports a limited set of transformations, such as trimming, image overlays, subtitles, and audio normalization.
Or, for complete control over the renditions you want to generate, and to combine other transformations with your streaming profile, you can select a streaming profile manually, including your own custom streaming profiles.
HLS has the broadest support of the two streaming protocols, and plays natively on Apple devices, in Safari, and in recent versions of Chrome for Android. Other browsers need a JavaScript player to play HLS or MPEG-DASH, so use a dedicated video player. Here's an example URL that uses automatic streaming profile selection and the video rendered using the Cloudinary Video Player to ensure cross-browser support:
Learn more in our adaptive bitrate streaming guide.
Dynamic and intelligent transformations
Just like with images, there's a wide variety of dynamic and intelligent transformations you can apply at scale to your original videos so they fit the graphic design of your website or mobile application. They can also replace manual editing that you'd otherwise repeat for every video before upload. On top of that, you can make use of AI-based transformations that are dedicated to video in order to enhance your video experiences. Here are a few examples and use cases for some of the video transformations you might want to use:
- Add text, image, or subtitle layers to your videos to help engage your users or describe what the video is about.
- Add a progressbar effect to show users the length of a video when controls are disabled. Great for social media posts.
- Intelligently crop your videos at scale for a wide variety of screen sizes and orientations while keeping the main subject in view with AI-based automatic cropping. Great for creating product or social videos at scale.
- Automatically generate engaging video summaries to use as part of your video thumbnails.
- Combine videos and images, and add transition effects to create video reels.
- Make your product images more engaging by turning them into videos with the zoompan effect.
And much more...
Here's an example combining automatic cropping and progressbar features in a social media ready aspect ratio:
Learn about how to apply transformations in our video transformation guide.
Cloudinary Video Player
The Cloudinary Video Player is a JavaScript-based video player that can be used to deliver high-quality videos from your Cloudinary account on your website or mobile application. It suits most web video, because it handles much of the delivery optimization for you.
The video player supports adaptive bitrate streaming, is fully WCAG 2.1 AA compliant, and is also highly customizable, giving you complete control over the look and feel of the player. You can customize player skins, add interactive features such as seek thumbnails or shoppable videos, and integrate with other third-party tools. To configure the player visually and preview your changes, use the Video Player Studio.
You can also make use of events and analytics to track detailed metrics on video views and user behavior to help optimize your video content for maximum impact and ROI.
Configure delivery in the player
The player builds the delivery URL for you, so set its options rather than writing delivery transformations yourself:
-
Progressive delivery: The player adds automatic format selection (
f_auto:video) to the URL, so you don't need to set a format. Because that counts as a transformation, your Default video quality setting, which sets the quality, applies too. Set breakpoints totrue, so the player requests a width that suits its container and the device's pixel density. Responsive breakpoints are off by default. Don't set sourceTypes to['mp4'], as this replaces automatic format selection with a single format for every viewer. -
Adaptive bitrate streaming: Set
sourceTypesto['hls'](or['dash']), and the player adds automatic streaming profile selection (sp_auto) to the URL. Don't enablebreakpointsfor adaptive sources, as the video can then fail to load.
For example, a short product video delivered progressively, and a long tutorial delivered with adaptive bitrate streaming:
Use a separate player for each approach, rather than switching one player between progressive and adaptive sources.
Here's an example of a customized player using a Cloudinary color scheme and custom logo:
Learn more in our video player guide, or watch a short video on how to embed the player in React.
Deliver video without the Cloudinary Video Player
If you can't use the Cloudinary Video Player, you can still optimize your delivery:
-
Progressive delivery: Use the HTML5
<video>element with a<source>element for each width you need, so the browser picks the version that suits the viewer's screen. Applyc_limit,w_<width>to limit the width,f_auto:videofor automatic format selection, andq_autofor automatic quality: Adaptive bitrate streaming: Deliver an HLS manifest with automatic streaming profile selection, for example
https://res.cloudinary.com/demo/video/upload/sp_auto/docs/waterfall.m3u8, to a third-party player that supports HLS on the browsers and devices you need. Cloudinary generates the renditions on the fly, so there's nothing else to set up in Cloudinary.
You can still collect Cloudinary video analytics when you use another HTML5 player.
Accessibility support
The Cloudinary Video Player is fully WCAG 2.1 AA compliant, ensuring an inclusive video experience for all users. Accessibility features include:
- Keyboard navigation: Full support for keyboard interactions, including tab navigation and shortcut keys.
- Screen reader compatibility: ARIA attributes ensure smooth interaction with assistive technologies.
- Closed captions and subtitles: Support for multi-language captions, live streaming captions, and customizable styling. Cloudinary can generate a transcript from your video's audio and translate it, and you can review and correct it in the Transcript and Localization editor before viewers see it.
-
Audio descriptions: Provide descriptions as a text track of the
descriptionskind, which has its own Descriptions button in the player, or as alternative audio tracks for adaptive bitrate streaming. To create the description text, you can generate an AD script in the Video Player Studio. - Video chapters: Viewers can navigate video sections using chapter markers.
If you use a different player, you can still provide captions by getting your transcript as a VTT or SRT file, and add an audio description to the video itself as an audio layer.
To learn more about configuring the video player for accessibility, see our accessibility page.
Video analytics
Access a variety of data and metrics about how your videos are viewed, and use this to understand and optimize your video content served by Cloudinary. The metrics are automatically collected for all videos delivered through the Cloudinary Video Player. You can also manually collect this data for your own video players using the Cloudinary video analytics library, and access the data programmatically to use it in your own reporting tools.
Learn more in our video analytics guide.
Video in native mobile apps
If your app displays a web page in a WebView, the web guidance on this page applies. Native iOS and Android apps need a different approach, because they don't automatically tell Cloudinary which video formats they support.
Choose the format and codec
When a native app requests a video with automatic format selection (f_auto) and doesn't send an Accept header listing the formats it supports, Cloudinary delivers H.264, which almost every device can play but which produces larger files than newer formats. To deliver a more efficient format, your app needs to check what the device supports at runtime, rather than choosing one format for all users, and then do one of the following:
-
Specify the format and codec in the delivery URL:
- iOS:
f_mp4,vc_h265(HEVC) where supported, withf_mp4,vc_h264as the fallback. - Android:
f_webm,vc_vp9(VP9) where supported, withf_mp4,vc_h264as the fallback.
- iOS:
-
Send an
Acceptheader with the request, sof_autocan choose. For example,video/mp4; codecs="hvc1"for HEVC,video/webm; codecs="vp9"for VP9, orvideo/mp4; codecs="avc1"for H.264.
For example, to check the device and build the URL with the iOS SDK:
And with the Android SDK:
AV1 compresses well, but isn't yet supported on enough mobile devices to be your main codec, and it may not be available for your account. If you deliver it to devices that support it, specify it in the URL (f_mp4,vc_av1), and don't combine it with q_auto, which supports only H.264, H.265, and VP9.
Choose the dimensions
The mobile SDK video players don't offer responsive breakpoints, so request a width that suits the device's screen, for example:
Use the Cloudinary mobile video players
Cloudinary video players are available for iOS, Android, Flutter, and React Native. They integrate directly with Cloudinary delivery, and can play adaptive bitrate streams with automatic streaming profile selection. In Flutter, this is on by default. On iOS, Android, and React Native, you enable it. The iOS and Android players also send video analytics by default, and in React Native you can enable it.
Test before you launch
Before you go live, test representative videos on the browsers, devices, and networks your viewers use, and confirm that:
- No delivery URL serves an original video, and every URL limits the delivered dimensions.
- The optimizations you intended are applied. Check the URLs your page actually requests, not the ones you wrote.
- Autoplay and loading behavior is what you intended.
- Playback works on your target browsers, devices, and networks.
- Captions, subtitles, and analytics work where you need them.
- You've planned for the initial rise in transformation usage while new derived videos are generated.
A few weeks after launch, review your usage and transformation patterns to confirm that delivery is working as planned and to spot further optimization opportunities.
- Evaluate the potential time and cost savings, as well as revenue boosts, achievable through the Cloudinary Video API by utilizing our Value Calculator. Adjust the sliders to reflect the current state of your video pipeline and see the difference Cloudinary can make.
- Browse through our extensive Video Tutorial Library to learn how to implement various video based features with Cloudinary.
- Check out our Dev Hints on YouTube for a selection of short and to the point tutorials.

