The officially official Devuan Forum!

You are not logged in.

#1 2024-10-18 14:37:03

0xf4b10
Member
Registered: 2018-05-12
Posts: 33  

yt-dlp is very outdated

Hi, can u guys update yt-dlp package for the Devuan 5 repos? It is so outdate that isn't even working anymore

Offline

#2 2024-10-18 15:24:19

delgado
Member
Registered: 2022-07-14
Posts: 215  

Re: yt-dlp is very outdated

devuan / debian stable usually stays as it is after release.
This package would be a good candidate for daedalus-backports.

cat /etc/apt/sources.list | grep backports
deb http://deb.devuan.org/merged daedalus-backports main   #contrib non-free non-free-firmware
$ sudo apt-get update
$ sudo apt-get -t daedalus-backports install yt-dlp

Offline

#3 2024-10-18 15:43:07

Ron
Member
Registered: 2018-04-22
Posts: 529  

Re: yt-dlp is very outdated

0xf4b10 wrote:

It is so outdate that isn't even working anymore

It always is and always will be. This is how I keep it up-to-date when a new version is released:

sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp

I check for new versions here: https://github.com/yt-dlp/yt-dlp

If you go this route, you must totally remove the repo version first or it will get messed up, I believe.

Last edited by Ron (2024-10-18 15:43:59)

Offline

#4 2024-10-18 16:21:59

Andre4freedom
Member
Registered: 2017-11-15
Posts: 174  

Re: yt-dlp is very outdated

Thank you Ron, this is very good information - and a time-saver for many!

Offline

#5 2024-10-18 19:05:12

dzz
Member
From: Exmouth, South West England
Registered: 2016-12-01
Posts: 48  

Re: yt-dlp is very outdated

If you install yt-dlp as Ron suggests, the update option is already built-in. As root, simply:

yt-dlp -U

If you installed it from the repos,  that option is disabled. An error will show and it can only list the installed and available versions.

Offline

#6 2024-10-18 19:32:39

stargate-sg1-cheyenne-mtn
Member
Registered: 2023-11-27
Posts: 215  

Re: yt-dlp is very outdated

yt-dlp works with many different websites and is updated as frequently as is necessary and as such it is best to use the stand-alone version.

The stand-alone version is labeled "Platform-independent zipimport binary. Needs Python (recommended for Linux/BSD)" get it here:
https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#release-files

they also recommend using their modified ffmpeg, ffplay, and ffprobe(all three are in "ffmpeg"):
https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#strongly-recommended

and you can get the modified version of ffmpeg here:
https://github.com/yt-dlp/FFmpeg-Builds/releases

at the date/time of this post "ffmpeg-n7.1-latest-linux64-gpl-7.1.tar.xz" is the most current and the one we are using presently.

with the stand-alone version use python3 with yt-dlp so to check for available updates:

python3 yt-dlp -U

and to download a video

python3 yt-dlp video-url-goes-here

this is done in a terminal and is easiest if you are working in the directory where yt-dlp is located(to minimize length of command lines)
(just keep it in a directory/folder on your desktop and it will be close at hand for when you choose to utilize it)

make sure you don't have the debian/devuan version of yt-dlp installed as that would probably be/get confusing and the same can be said for ffmpeg/ffplay/ffprobe(which on our daedalus installation are all three located in /usr/bin/).

the yt-dlp github webpage is huge and has an incredible amount of information so you will probably want to scan the whole thing briefly but only focus on whatever your current task-at-hand is(and save the rest for your next adventure).

ps- i see there have been a few posts while i have been putting this together so there will probably be more than one method suggested.

Last edited by stargate-sg1-cheyenne-mtn (2024-10-18 19:33:41)


Be Excellent to each other and Party On!
https://www.youtube.com/watch?v=rph_1DODXDU
https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you!

Offline

#7 2024-10-19 14:51:23

stargate-sg1-cheyenne-mtn
Member
Registered: 2023-11-27
Posts: 215  

Re: yt-dlp is very outdated

this looks interesting as well but haven't had a chance to experiment with it yet:

https://github.com/mhogomchungu/media-downloader

found that after stumbling across this webpost:

https://www.reddit.com/r/youtubedl/comments/qsw5pv/ytdlp_different_options_for_different_websites/

edited: cleaned up a url

Last edited by stargate-sg1-cheyenne-mtn (2024-10-20 06:30:41)


Be Excellent to each other and Party On!
https://www.youtube.com/watch?v=rph_1DODXDU
https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you!

Offline

Board footer