All posts by voltooidverledentijd

Download muziek videos van YouTube als audio bestanden met yt-dlp [Nederlands]

Als je privacy belangrijk vindt dan gebruik je misschien Invidious of Piped dot video. Al sinds een tijd hebben beide projecten problemen met laden van videos, mogelijk door Google restricties of veranderingen. Maar zelfs al dat (videos niet kunnen laden) gebeurt dan kun je alsnog de videos downloaden met yt-dlp. Nadeel is dan als je alleen de audio wilt dat de video bestanden veel groter zijn dan audio bestanden.

Je kunt het volgende gebruiken om alleen audio bestanden als resultaat te krijgen.

Installeer wel eerst ffmpeg als je die nog niet had geinstalleerd.

Hier een voorbeeld van de syntax voor yt-dlp voor audio only :

yt-dlp_linux -f bestaudio -x --audio-format mp3 --audio-quality 0 "https://yewtu.be/watch?v=2iPBvsIZBNA"

Op deze manier krijg je veel kleinere bestanden, en je kunt het dan bijvoorbeeld op een mp3-speler zonder Internet verbinding gebruiken.

 

Download audio only from YouTube with yt-dlp [English]

If you like some privacy you may have been using Invidious or Piped dot video (I have since years) and you may have seen that lately they both are suffering from Google restrictions or problems showing videos.

However, even if Invidious or Piped dot video fails to load a video you can still download the video. Since I really like to download the audio to put it on the SBC (SingleBoardComputer like ODROID, RaspberryPi and so on) where I’m running pi-hole and regarding music the most import the mpd server software. I think mpd is really cool, I can leave it on, and after a kernel upgrade and a reboot of the SBC it will simply keep on playing music, amazing. When I go to sleep I can turn off the sound speakers, and when waking up turn on the speakers and the music is (still playing and) back like nothing happened. There’s also mpd clients for mobile and desktop so imagine you live in a student house with a common kitchen, you could have mpd running there, and anyone could switch to the appropriate music during lunch together from their mobile phone (granted that the WiFi should be in the same network range as your LAN with mpd). In the future I’d like to write another blog post about how to configure mpd for LAN usage.

The other thing is that I’d like to have audio files on my little mp3 player, to be used without Internet connection.

In the past I’ve always downloaded full videos, and then I made a funny mistake lately.

I wanted to make more space, and convert music video files into music audio files,

and used for example the incorrect :

ffmpeg -i Michael_Brecker-Naima-2003.mp4 Michael_Brecker-Naima-2003.ogg

In this case ffmpeg will “obey” and apparently produce an ogg file but the resulting “audio” file will not be much smaller!

Correct is the following :

ffmpeg -i Michael_Brecker-Naima-2003.mp4 -vn Michael_Brecker-Naima-2003.ogg

The -vn switch makes the difference. The resulting audio file is much smaller.

But such a conversion can take a lot of time unless, I guess, you have fast and powerful hardware.


How to download from YouTube with yt-dlp and go for audio files directly ?

yt-dlp_linux -f bestaudio -x --audio-format mp3 --audio-quality 0 "https://yewtu.be/watch?v=2iPBvsIZBNA"

(Note : In my case I had to choose mp3 because ogg appears not to be supported in this case. Maybe some more software is needed?)

Now if you use this syntax, yt-dlp will choose a video download option which is pretty small, and then I believe ffmpeg (on the fly ?) would convert it into mp3. Doesn’t take really long usually.

Result : smaller files, and audio only for use with mp3 player or mpd.

Part 2 – self-host – A video and audio calls alternative with XMPP/Jabber

In the previous blog post (posted 6 January 2025) I’ve talked about the easiest way of having video- and audio-calls without self-hosting. In this post let’s look at one way to self-host an XMPP server for audio and video calls.

Warning : self-hosting services is not for the faint of heart. If you’ve never done this before, I’d suggest to first do some generic reading on self-hosting or maybe ask here or here.

The perhaps easiest way to self-host an XMPP server that can do video- and audio-calls is to use Snikket.

What is needed for this from you as the admin that will self-host ?

It’s been a while since I tested self-hosting Snikket but I remember that it was a matter of installing Snikket on a server, then log in to the web interface for the admin user, and then create invites for the users you want to have on-board.

After the user receives an invite they will be asked to install the Snikket app on their Android phone (The Snikket app is a soft-fork of the Conversations app. Note that -afair- installing the Snikket app is not a must. If you know your way around you can stick with the Conversations app) and continue to start using their Snikket user account on your server. And then starting an audio- or video call should be the same as in the previous blog post (posted 6 January 2025).


I’d also like to share some information for people with more experience with self-hosting. This could be difficult but perhaps not impossible ๐Ÿ˜‰

Yunohost (link to their app catalog) is software made by a group of volunteers (Mainly in France it appears) that makes self-hosting easier. After a fresh installation you would be ready to install “apps” from the Yunohost apps catalog.

Some users have asked for the feature that the XMPP software that comes with Yunohost (Metronome) can also do video- and audio-calls. In this Github issue (from May 2020) some users claim that they got it working by changing some settings.

Note, if you scroll down to the last comment you can probably see that someone commented that Metronome has become an app instead of coming with a default Yunohost installation.


Happy chatting ๐Ÿ™‚

 

A video and audio calls alternative with XMPP/Jabber

Maybe you are using video or audio calls with Signal, WhatsApp or something else which is based on a centralized server and usually from the US of A.

And maybe you are interested in some more digital sovereignty or just curious for alternatives.

XMPP does exist since a long time (1999) and was previously known as Jabber.

Maybe you’ve never heard of it but I believe XMPP is still relatively popular in Germany.

With the current Geo-political tensions in the world it might be interesting for some people to be more in the drivers seat then before when it comes to digital dependencies and maybe also slowly move towards using more open source software.

I’d like to split blog posts into :

  1. Using XMPP with Conversations app or Monal app.
  2. Self-hosting, looking at Snikket and briefly at Yunohost.

Let’s start with the by far easiest, nummer 1.

For Android users, go to the Conversation IM site and click on Buy now on GooglePlay.

Yes, even though the Conversations app is open source, the developer Daniel Gultsch has chosen to go for paid support for the project (And that serves him well since years). I think the app is quite cheap.

For F-Droid users the app is free of charge. The overview page is here (Note : recommended to install it via F-Droid app).

After Conversations app is installed, open it and sign up for a free account at conversations.im which is the default choice it will auto-suggest after you started typing your preferred username. So you won’t have to type that in.

For Apple iOS users, install Monal IM app, open it and sign up for a free account at conversations.im which is the default choice it will auto-suggest after you started typing your preferred username. So you won’t have to type that in.


When this is done you would first start a text chat conversation with the person you want to chat with. Now comes a slightly tricky part : If your contact is on a different XMPP server then it is possible that video or audio calls will not work. The XMPP server needs to support that feature. So let’s assume your contact also has a free account on conversations.im.

Start the text conversation and say “hello!” to your contact, and ask your contact to reply to your message. After you’ve exchanged some words you should see a green lock icon besides the exchanged chat messages.

After this start a video or audio call.

Nice feature : during the call you can minimize the video window with Conversations on Android and then for example look up something on your phone that you needed during the call. Haven’t tested whether Monal can do that as well.

Read more ?

On Conversations

On OMEMO (whether any other XMPP app does support OMEMO or not)

 


A little Linux “commandlinefu” fun to share – for geeks & nerds

Let’s imagine that you wanted to make Proton Drive work in Linux because the people from Proton only appears to provide Proton Drive apps for MacOS, iOS, Windows and Android. And you found this blog post Sync Proton Drive on Linux with Rclone and you went ahead without reading all that carefully first and created a new folder

~/ProtonDrive

Then after reading some more (and you see that you need to first configure rclone), you realize you were pretty tired already and wanted to do other things, including this wonderful thing called sleep.

And you think “Let’s remove that new folder” so I will not be distracted by that tomorrow when I’m busy with other computer things.

You type in :

rm ~/ProtonDrive

And you get an error because it is a directory and the rm command needs more powers from you to be able to remove a directory.

Now instead of getting annoyed and wanting to remove all that you had typed in, you can simply add the needed “minus rf” to what you already typed, so it will look like this :

rm ~/ProtonDrive -rf

You see ? Linux can often be very flexible.

And how do I know this ? I liked to experiment and do crazy things in the past, e.g. testing whether little Linux tools would use -h or –help and whether –hel would also work and for some tools it turned out it really DID. Now that I’m a bit older I don’t do that anymore (jk).

I mentioned commandlinefu in the title, here’s a site only about real commandlinefu :

https://www.commandlinefu.com/commands/browse

 

PieFed (Een Fediverse link aggregator vergelijkbaar met Reddit)

Waarschuwinkje vooraf : als je Mastodon al een beetje moeilijk vond, en altijd perse een app wilt, dan is het misschien raadzaam deze post over te slaan. Ja, het kan verkeren.

Het is nu Dinsdag 31 December, en ik wilde over van alles schrijven (Zoals “Nederland is een lagelonenland”, “Cancel cultuur” (Over dat ik diverse boekjes met Matthijs van Nieuwkerk op de cover bij minibiebjes vond, en of dat toeval was), “Boycott NOS”, en de “corrupte” media in de VS. Maar op een laatste dag van het jaar misschien beter een wat neutraal onderwerp waar ik snel en gemakkelijk over kan schrijven zonder heel erg veel zoekwerk te hoeven doen.

Even wat geschiedenis : Reddit is evenals bijvoorbeeld Tw*tter, Geocities en Myspace in de Internet geschiedenis van belang geweest. Je kon bij Reddit links op posten, en andere mensen konden daar dan op reageren.

Mastodon heeft haar succes deels te danken aan een paar “exodus” momenten (waar massaal gebruikers vertrokken) bij Twitter. Bijvoorbeeld toen Tw*tter de API richting 3rd party apps ging opheffen zodat mensen of moesten afhaken, of kiezen om de web interface of de native Tw*tter app te gebruiken.

Reddit heeft ook een paar “exodus” momenten gehad, waarbij flink wat heel erg boze ex-Reddit gebruikers alternatieven zochten.

En open source programmeurs die Reddit een goede tool vonden maar allerlei nadelen bij Reddit zagen wilden een vrije (als in freedom) Fediverse alternatief maken en daar was Lemmy. Op een bepaald moment kwamen daar onder andere ook Kbin, en de Kbin vork Mbin bij, en PieFed. Zowel Mbin als PieFed zijn min of meer “compatibel” met Lemmy. Sterker nog, aangezien het Lemmy community landschap naar verhouding enorm groot is met het PieFed community landschap zul je bij PieFed vermoedelijk snel in Lemmy communities gaan lezen en schrijven.

Ik wil nu gaan uitweiden over PieFed omdat ik vind dat het een paar interessante opties heeft.

Topics :

Als je een PieFed account hebt aangemaakt (In tegenstelling tot Lemmy is PieFed nog niet zo bekend. Er zijn maar drie verschillende instances) dan kun je kiezen uit Topics.

Dus niet zoals bij Lemmy abonneren op een community b.v. Linux zodat je uit die community dan alle geposte links ziet, maar je kunt kiezen voor een topic waarmee je dan meteen een abo neemt op allerlei communities met hetzelfde of vergelijkbaar onderwerp. Dat kan handig zijn maar ook teveel worden. Je kunt ook per community een abo nemen (subscriben).

Notify of niet :

Nu dan de PieFed feature die ik interessant vind, en dat is dat je kunt kiezen of je van je nieuw te plaatsen posts (of commentaren) interactie krijgt of niet. Dat lijkt heel onhandig als je altijd Mastodon interactie bent gewend, maar posts op Lemmy/PieFed kunnen somsย  vijftig a honderd commentaren krijgen. En soms wil je graag iets delen met de rest van de Fediverse, en dan weer verder met andere dingen. (“Free your mind …”).

Je begint dan met een post voor te bereiden en dan klik je eerst op het vinkje bij de “Notify about replies” (Dat staat standaard aan) en daarmee krijg je nul nieuwe commentaren notificaties te zien voor je eigen post.

Voortbordurend op deze feature heeft PieFed voor allerlei dingen een (un)subscribe oftewel notify knop. Je kunt bijvoorbeeld als je een bepaald geplaatst commentaar bij een post ziet, en je wilt dan weten of er op dat commentaar weer nieuwe commentaren komen, je subscriben op dat ene commentaar zodat je op de hoogte blijft van dat commentaren sub-boompje.

Accounts volgen voor posts en commentaren :

Daarnaast kun je ook Lemmy en PieFed accounts volgen. Dat is een feature die Lemmy (volgens mij nog steeds) niet heeft. Dus als jij via PieFed alle posts en commentaar van bepaalde @gebruiker op de @slrpnk Lemmy site wilt volgen dan kan dat.

Hier een schermafdruk van hoe voor het posten van een link de “Notify about replies” uit kan worden gezet.

A PieFed post edit text field with an option to turn notifications off.

 

Jonge Helden

Vandaag zag ik dat de VPRO alle 30 afleveringen van Jonge Helden on-line heeft staan op de eigen site. Bijzonder puik dat de VPRO programma’s van bijna zo’n 40 jaar geleden in ere wil houden en in eigen beheer. Helemaal top.

Alleen wel een schoonheidsfoutje elders. Bij de promo filmpjes voor Jonge Helden op YouTube staat steeds een oude link naar de VPRO site die niet meer werkt. Daarom nu hier de correct link :

https://www.vpro.nl/programmas/jonge-helden.html

Daar op dezelfde pagina staat ook nog een documentaire over de broers Daan en Willem Ekkel over hoe het balletje ging rollen.

Als je liever korte fragmentjes bekijkt dan hier een YewTube zoek opdracht waar je ook nog een Trรถckener Kecks stukje kunt zien en waar Herman Brood ook nog een kaartje met de broers legt.

https://yewtu.be/search?q=vpro+jonge+helden

Zelf zoeken op YouTube naar “Jonge Helden VPRO” mag ook ๐Ÿ˜‰

Hier een plaatje van 4 uit het overzicht van de afleveringen :

Vier plaatjes van afleveringen van het VPRO programma Jonge Helden.