Page 1 of 1

How to get the streaming URL of YT

Posted: 13 Feb 2024 15:50
by -Ketzer-
A retirement home films events and streams them as a YouTube live video. So that this live streaming can also be received on old televisions, it has to be converted. To do this, I need the streaming URL of the YouTube live video.

In the past, I was able to display this URL in the VLC Player under Media Information or Codec Information in the "Location:" section and copy this URL. My application worked with this.

Now it no longer works. The URL is still displayed truncated, but I can no longer copy the text. Apparently VLC Player now prevents this.

Is there a simple solution to get the URL of the HLS?

Or does YouTube no longer work at all and do I have to use a different service?

Re: How to get the streaming URL of YT

Posted: 13 Feb 2024 18:35
by RĂ©mi Denis-Courmont
This is not possible firstly because YouTube now separates audio and video tracks, and secondly because YouTube expires their media URLs fast, to force opening the intended web page.

Re: How to get the streaming URL of YT

Posted: 15 Feb 2024 12:10
by -Ketzer-
Thank you, I was afraid of that. So YouTube has changed the function drastically. Do you know where these changes are described which I can present the users?

Re: How to get the streaming URL of YT

Posted: 24 Feb 2024 00:07
by Mercury048
Use yt-dlp --get-url. It will return a URL that VLC will play.