Last updated: Oct-30-2024
Overview
Learn how to upload videos in Python using the Cloudinary Python SDK.
Video tutorial
Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.
Introduction
0:00 | In this tutorial, you'll learn how to upload small and large videos to Cloudinary using the Python SDK, a crucial part of your workflow. |
Upload a small video from your local file system
0:13 | This tutorial assumes that you've already installed, imported and configured Cloudinary. If you need help with that, see Configure the Python SDK. To upload, make sure the Here's an example using a file named |
Run the script to upload a small video
1:01 | Execute your script to upload the video and display the secure URL from the response. Open the newly uploaded video in a browser using that secure URL. |
Upload a large video from your local file system
1:15 | Keep in mind that the upload method only supports files up to 100 megabytes. To upload larger videos, use the upload_large method, which has the same signature and options as upload . Pass the full path of the video as the first parameter and specify resource_type as video for the second. Break the video upload into 6 megabyte chunks. Here's an example using a file named |
Run the script to upload a small video
1:34 | Uploading your large video might take a while depending on its size. Once the upload is done, the secure URL from the response JSON is displayed in the terminal. Open the newly uploaded video in a browser using that secure URL. |
Keep learning
- Learn more about uploading images and videos using the Python SDK.
- Take a look at our Upload guide to learn about uploading to Cloudinary in general.
- Use the Upload API reference to find all the options and parameters available.
- Watch more Dev Hints videos on the Cloudinary YouTube channel.
If you like this, you might also like...
Configure the Python SDK
Install and configure the Cloudinary Python SDKUpload Images in Python
Upload images to Cloudinary using the Python SDKManage Images in a Django App
Use Django helper methods to upload, transform, and display assets.
Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.