Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to yt-dlp? #48

Closed
snarfed opened this issue Aug 18, 2021 · 9 comments
Closed

Switch to yt-dlp? #48

snarfed opened this issue Aug 18, 2021 · 9 comments

Comments

@snarfed
Copy link
Owner

snarfed commented Aug 18, 2021

youtube-dl is venerable and awesome and the workhorse behind huffduff-video, but its development progress may have stalled. It cut weekly releases for years, but the last release was 2 mos ago, 6/6/2021, and the two main maintainers now seem inactive on GitHub as a whole. Background in ytdl-org/youtube-dl#29753 and ytdl-org/youtube-dl#26462.

A couple active forks have popped up, https://github.com/yt-dlp/yt-dlp and https://github.com/blackjack4494/yt-dlc. Should we switch to one of them?

@nicolaasjan
Copy link

I've switched to yt-dlp and didn't regret it. :)
yt-dlc is also rather inactive.

@nicolaasjan
Copy link

@snarfed
Btw, when trying to go to https://huffduff-video.snarfed.org/ with Firefox,
I get:

Secure connection failed

Error while connecting to huffduff-video.snarfed.org. SSL received a record that exceeded the maximum allowed length.

Error code: SSL_ERROR_RX_RECORD_TOO_LONG

The page you want to view cannot be displayed because the authenticity of the data received could not be verified.
Please contact the website owners to inform them about this problem.

@snarfed
Copy link
Owner Author

snarfed commented Aug 19, 2021

@nicolaasjan true! huffduff-video doesn't currently support SSL. Let me know if you saw any https links to it anywhere, I can fix them!

@snarfed
Copy link
Owner Author

snarfed commented Aug 19, 2021

Ah, I see the one in the readme. Sorry! Will fix.

@nicolaasjan
Copy link

Works with http://huffduff-video.snarfed.org/.
But why don't you use https?

@nicolaasjan
Copy link

nicolaasjan commented Aug 19, 2021

(offtopic)
With the "Open With" extension you can just make an entry in your right-click menu to download mp3 without needing any website.
I just point it to a shell-script (youtube2mp3-downloader.sh):

#!/bin/bash
#youtube to mp3 downloader
yt-dlp -o '~/Music/%(title)s.%(ext)s' -f bestaudio -x --audio-format mp3 --add-metadata --embed-thumbnail --audio-quality 0 $1

screenshot1

@snarfed
Copy link
Owner Author

snarfed commented Aug 19, 2021

But why don't you use https?

No good reason, just haven't prioritized it yet, and Huffduffer profiles themselves are public, eg https://huffduffer.com/snarfed, so there's not a lot of privacy benefit.

With the "Open With" extension you can just make an entry in your right-click menu to download mp3 without needing any website.

Yes! Most huffduff-video users do something similar with the bookmarklet shown on http://huffduff-video.snarfed.org/ . I only added the web form later.

@nicolaasjan
Copy link

so there's not a lot of privacy benefit.

But...but... Then a 3 letter agency can see what mp3 you downloaded... :)

Anyway, for me the right-click on a video link is the easiest and fastest way (downloading straight to my PC).
And I usually download m4a, because the additional conversion to the outdated mp3 format involves quality loss.

@snarfed
Copy link
Owner Author

snarfed commented Oct 23, 2021

Youtube has been throttling youtube-dl for a while now. huffduff-video is only getting 40-80KB/s, which is...not ok. ☹️ ytdl-org/youtube-dl#29326 , https://code.videolan.org/videolan/vlc/-/issues/26174#note_286445 , https://twitter.com/mihai/status/1451975030686949380 . Time to prioritize this migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants