Can you load a video from a YouTube link directly?

I want to use a YouTube video inside of a video asset. Is it possible to use the YouTube link directly?

No. You cannot use a YouTube link directly as it directs you to a HTML page.

The API expects a video file, and if one if not found it will return an error.

What you can do is first download the YouTube video using a library such as youtube-dl, make the video available publicly and then use that URL inside of a render.

If you’re not sure whether the link of the video you have directly links to an accessible video file you can use If it successfully returns the video metadata you can use that link inside of a render.

1 Like

Make sure you comply with YouTubes terms of service regarding downloading, modifying and distributing: Terms of Service