video_asset import VideoAsset Configuring the API client timeline import Timelineįrom shotstack_sdk. We need to import modules from the Shotstack SDK to edit and render our video plus a couple of built in modules: import shotstack_sdk as shotstackįrom shotstack_sdk. Let's import the required modules for the project. You can call it whatever you like, but for this tutorial we created a file called watermark-video.py. Create a Python script to watermark videoĬreate a file for the script in your favorite IDE or text editor. Replace your_key_here with your provided sandbox API key which is free for testing and development. Or, if using Windows (make sure to add the SHOTSTACK_KEY to the path): set SHOTSTACK_KEY =your_key_here Then, set your API key as an environment variable (Linux/Mac): export SHOTSTACK_KEY =your_key_here You may need to use pip3 depending on how your environment is configured. Otherwise follow the steps below to install dependencies and set up your API key.įirst of all, install the the Shotstack Python SDK from the command line: pip install shotstack_sdk If you want to skip ahead you can find the source code for this guide in our GitHub repository. We will also be using the Shotstack video editing Python SDK for this tutorial. Shotstack's rendering infrastructure makes it possible to build and scale media applications in days, not months. Rendering videos is resource intensive and it can take hours to edit and generate videos at scale. Shotstack provides a cloud based video editing API. watermarking multiple videos using a list. After all, Python developers love to automate, don't they? That's what this tutorial aims to teach - to build a program using Python to automatically watermark videos. But what if you need to watermark thousands of videos? Even better, what if you can build an app that enables users to watermark videos? They sure are simple and easy to watermark a single or a few videos. Of course you can use the available video editors or web apps. Especially in this hyper connected era where videos spread in a blink of an eye, it's important that brands can easily add branding to their work. It enables brands and creators add branding to their content. Watermarking is a common way to label digital content.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |