Swap out youtube-dl for yt-dlp ? #2832
Russsgithub
started this conversation in
Ideas
Replies: 2 comments
-
Hi @Russsgithub and thanks for the detailed analysis and contribution. I sure wish we'd stop forking projects all the time haha.. Have you tried to simply change the path to
If the options we rely on are similar enough, this should work just fine.. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@tootsi'm sure that would work.Just thought I'd share findings as youtube-dll is being really slow for whatever reason.I'm unsure how just changing the binary path would affect the youtube-pl protocol.I do like the resolution limiting function in yt-dlp which would prevent downloading say 1080p files to be broadcast as say 480p.I get you on forking projects.Strangely it seems the code from yt-dlp seems at least in part to be being merged into youtube-dl. I've not done any tests but there are reports of around 100kb/s in one and 10mb/s in the other.ThanksOn 6 Jan 2023 14:25, Romain Beauxis ***@***.***> wrote:
Hi @Russsgithub and thanks for the detailed analysis and contribution. I sure wish we'd stop forking projects all the time haha..
Have you tried to simply change the path to youtube-dl:
settings.protocol.youtube_dl.path.set("yt-dlp ")
If the options we rely on are similar enough, this should work just fine..
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've recently been playing with youtube videos and noticed that youtube-dl is being very slow at downloading the videos. @smimram increased the timeout yesterday, which fixes the cmd failing from timeout issue.
After having a hunt around I found that this is a possible issue with youtube-dl which users have been fixing by using yt-dlp ( a youtube-dl fork based on the now inactive youtube-dlc )
I wrote a protocol for yt-dlp ( needs yt-dlp installed ) based on the youtube-dl protocol.
The above protocol adds
-format-sort res:#{height}
which limits the the resolution of the downloaded video to the best video available that matches or is under the video frame height set in liquidsoapsettings.frame.video.height()
The protocol is then called with
yt-dlp:uri
So thought I'd share.
This massively improves the download speeds from youtube , uses the same syntax as youtube-dl ( as far as I can see ) and seems to have many additional features which I'd be happy to work some of into the protocol if that would be useful as a pull request.
It can also be used by replacing the youtube-dl path with the yt-dlp path in scripts using
settings.protocol.youtube_dl.path.set("yt-dlp")
with yt-dlp installed which change the standard youtube-dl protocol to use yt-dlp instead of youtube-dl but may affect the usage of youtube-pl protocol (I have not tested this) and does not included the resolution limiting feature of yt-dlp.
Notes.......
The protocol was written for liquidsoap version 2.1.3 ( I'm running stable release at the moment) in 2.2 I believe the syntax of
add_protocol
changes toprotocol.add
Beta Was this translation helpful? Give feedback.
All reactions