API - Sending a YouTube URL through stream/hls request?
My eyes lit up when I realised youtube-dl (https://github.com/ytdl-org/youtube-dl/) supports streaming a YouTube video to stdout.
I was able to test it successfully in my html player by hardcoding a video URL in the transcoding string (youtube-dl.exe resides in C:\subsonic\transcode):
youtube-dl -o - 8MvtcsMAQtw
When activated, the above transcoding flawlessly streams the video to the browser.
So all I need to be able to do is specify the video URL portion (which is always letters and numbers) through the stream request. However, I've tried doing it via maxBitRate (must be numeric), size (must be numeric), etc.
I also looked into the possibility of autonomously updating the transcoding string through the API, but it doesn't allow that.
Does anybody have any ideas as to how I could achieve it?
I was able to test it successfully in my html player by hardcoding a video URL in the transcoding string (youtube-dl.exe resides in C:\subsonic\transcode):
youtube-dl -o - 8MvtcsMAQtw
When activated, the above transcoding flawlessly streams the video to the browser.
So all I need to be able to do is specify the video URL portion (which is always letters and numbers) through the stream request. However, I've tried doing it via maxBitRate (must be numeric), size (must be numeric), etc.
I also looked into the possibility of autonomously updating the transcoding string through the API, but it doesn't allow that.
Does anybody have any ideas as to how I could achieve it?