If I could, I would, but its too late, so I ain’t.
One day someone will bring this software into Haiku & we will be happy.
It is a better youtube-dl that allows you to bring most online vids onto your machine to watch with your own favourite media player. I use VLC on Linux. It works great. It would be a work around the viewing problems that we currently have with Web+ & youtube vids, for instance.
Ported software is in the repo, you can find it by asking pkgman
pkgman seach cmd:youtube-dl will list packages with that command inside and
pkgman install cmd:youtube-dl will try to install a package with the command
Cool, I like that. I’m going to have to start a new section in my reference notes for Haiku. I’ve got my Linux stuff that I’ve accumulated of the years - which really helps me out, as I forget how I do things really quickly these days. But I know I have important things noted down.
I’ve been using a file manager called Worker (incredibly configurable) I wrote this wiki page:
on it many years ago (~10 years) now (that date 7-sep-21, must be when they upgraded their wiki software? I haven’t been using Manjaro now for ~5 years plus).
Anyway, I’d have a whole bank of buttons that would just have titles of documents that mostly I’d written that I could reference.
They could remind me of something as simple as the dd command that I want to use to do something. Or how to label an NTFS partition from Linux, or how to set the sound device in alsa, or whatever. Really helpful & simple to get at. If you like doing things that way at least.
There is even a graphical app called UberTuber that you can find in HaikuDepot, that allows to make this even easier. Keep it running in the background, it will check your clipboard for anything that looks like a youtube URL, and offer to download the video and show it in MediaPlayer. It uses youtube-dl in the background, but connects it together with other Haiku apps.
Something that they did in MX, was replace youtube-dl with yt-dlp, as youtube-dl is no longer supported (I believe) & yt-dlp is 100% compatible plus has extra capabilities. The MX team didn’t really tell anyone initially that when they called youtube-dl they were actually calling yt-dlp.
I expect that a lot of tools that were made for youtube-dl maybe also doing the same thing in the background?
Worker uses X11 for its GUI directly. I tried building it with Xlibe some months ago, but I just got mostly white screens with some text drawn. Probably there’s some major bug(s) in Xlibe in the drawing logic, but I didn’t really spend much time trying to find it. Perhaps someone who has worked on Worker before can investigate.
I would avoid UberTuber…
It much more reliable to use a little script directly, see this example.
I tried to use yt-dlp with UberTuber, but it is not 100% compatible with youtube-dl: There’s no command to get the title of the video, and the parameter “–get-filename” doesn’t return the exact filename of the video that gets downloaded. The latter pretty much makes UberTuber useless, and prevents adding the META:url attribute in above mentioned script.
Thanks for the info’ @waddlesplash , I’ll get around to having installing Xlibe & seeing if I can come up with anything useful. Beyond minimal scripting, I’m no dev.
On Linux I mostly just copy the URL to the terminal. I used to use a simple little script:
#!/bin/bash
#
# I run this from ~/.bashrc with the following alias:
# alias dv="sh ./dl-youtube"
# youtube-dl is set in its ~/.config to download to a specific path.
# 136 = 720p (much smaller file size than 1080p).
# 137 = 1080p ~twice the size as that from using "136"
# 248 = 1080p webm format, much larger than if using "137" but best quality available.
# 140 = best sound quality format available. Adding this to 136 caused access failure?
echo Please, Enter a URL
read URL
/usr/bin/youtube-dl $URL ## I've gone to this (& it still isn't working?)
## $ youtube-dl <URL> seems to be working. G**gle must have changed something.
## USE THE FOLLOWING WHEN YOU GET THIS ERROR:
## "ERROR: requested format not available"
## & the youtube-dl will use it instead of failing.
#/usr/bin/youtube-dl $URL