/media-sample-python-transcode-youtube-settings

Python sample application to transcode media to YouTube recommended settings

Primary LanguagePythonCreative Commons Zero v1.0 UniversalCC0-1.0

License

Blog Picture

Transcode for YouTube

Python sample application to transcode media to YouTube recommended settings. This repo goes along with the Transcode Video to YouTube Recommendations blog.

Overview

Videos uploaded that don't follow the stipulated guidelines by YouTube will undergo an automatic re-configuration causing it not to match your specific preferences and longer upload times. With Dolby.io Media APIs, you can programmatically reconfigure your videos and deliver great media at scale. Learn how to leverage Dolby.io's API to diagnose and correctly format your videos.

Requirements

  • Install Python 3.8+
  • Sign up for a free Dolby.io account here.
  • Create a new application and save the Media API key.

How to Create Dolby.io App and Get API Key

Getting Started

  1. Clone this repo and change directory.

    git clone https://github.com/dolbyio-samples/media-sample-python-transcode-youtube-settings
    
    cd blog-transcode-for-youtube
  2. Install required packages.

    pip3 install -r requirements.txt 
  3. Create environment variable to store your Dolby.io Media API key (Replace $DOLBYIO_API_KEY with your API key).

    export DOLBYIO_API_KEY=$DOLBYIO_API_KEY

    OR

    echo "DOLBYIO_API_KEY=$DOLBYIO_API_KEY" > .env
    
  4. Run the code to transcode the video file in /videos/input/.

    python3 ./src/main.py

Report a Bug

In the case any bugs occur, report it using Github issues, and we will see to it.

Forking

We welcome your interest in trying to experiment with our repos.

Feedback

If there are any suggestions or if you would like to deliver any positive notes, feel free to open an issue and let us know!

Learn More

For a deeper dive, we welcome you to review the following:

About Dolby.io

Using decades of Dolby's research in sight and sound technology, Dolby.io provides APIs to integrate real-time streaming, voice & video communications, and file-based media processing into your applications. Sign up for a free account to get started building the next generation of immersive, interactive, and social apps.

           
      Dolby.io on YouTube       Dolby.io on Twitter       Dolby.io on LinkedIn