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

 

Gelukszoekers en pech en geluk en muziek

Als titel dacht ik aan “Winnaars en verliezers” en vroeg me af waarom “Verliezers en winnaars” niet zo lekker in het gehoor (no phun intended) ligt, en waarom de winnaars dan voorrang krijgen in zulke zinnen. Dan een alternatief : “Doorzetters en afhakers” of “Afhakers en doorzetters”. Toch spelen er misschien andere factoren een rol zoals een dosis geluk of een dosis pech.

Zoals u inmiddels weet is “Music was my first love” een rode draad voor mij.

Eerst de verliezers, of de afhakers, of de pechvogels :

Keith Jarrett

Klassiek opgeleide pianist Keith Jarrett was onder andere toetsenist bij de band van Miles Davis, en ging later solo concerten geven waarbij improvisatie de hoofdrol speelde. Die improvisatie concerten duurden soms meer dan een uur en zijn best indrukwekkend te noemen. Ook speelde Jarrett in jazz trio’s. Totdat tegenspoed in z’n leven kwam :

Jarrett suffered major strokes in February and May 2018. After the second, he was paralyzed and spent nearly two years in a rehabilitation facility. Although he has regained a limited ability to walk with a cane and can play piano with his right hand, he remains partly paralyzed on his left side and is not expected to perform again. “I don’t know what my future is supposed to be. I don’t feel right now like I’m a pianist”, Jarrett told The New York Times in October 2020.

Ivo Janssen

Ivo Janssen was de vaste begeleider als pianist van schrijfster Anna Enquist.

Op een bepaald moment werd een ziekte bij Ivo Janssen geconstateerd, en die is uiteindelijk problematisch voor de handen geworden. Geen piano concerten meer in het openbaar.

Op sommige dagen kijkt hij naar zijn handen en zegt tegen zichzelf: „Hoe kan jij nou pianist zijn?” De pinken trekken krom en kunnen niet meer spreiden door de vorming van verhard bindweefsel. Een week geleden heeft de arts met een naald wat strengen doorgesneden. En op die plek is de handpalm van Ivo Janssen (56) paarsblauw. (NRC, archief)

(De summiere Wikipedia pagina over Ivo Janssen ligt achter met deze informatie)

Dan de winnaars, de doorzetters, of de mazzelaars.

Yngwie Malmsteen

Yngwie Malmsteen is een hardrock gitarist, en wel een opvallende, want de inspiratie komt van onder andere Paganini en J.S.Bach. Ook tijdens de gitaar carriere van Malmsteen kwam er tegenspoed.

The tour was cancelled after Malmsteen was involved in a serious car accident,[14] smashing his V12 Jaguar E-Type into a tree, which put him in a coma for a week. Nerve damage to his right hand was reported. During this time, Malmsteen’s mother died from cancer.

“Het kan verkeren” zou Bredero misschien gezegd hebben.

Larry Carlton

Larry Carlton hebt u misschien nooit van gehoord maar misschien kent u wel de muziek bij de TV serie Hill Street Blues, daar speelde Carlton ook een aandeel in als studio muzikant. Hij heeft op veel muziek opnames als studio muzikant gespeeld. Later heeft hij vaak opgetreden met eigen band, en zijn zoon Travis Carlton die bas speelt, speelde ook in zijn band.

Bij Carlton was de tegenslag in de vorm van een kogel door z’n nek.

In 1988, while working on his next album for MCA, Carlton was shot in the neck outside his Los Angeles-area home, leaving him temporarily without control of his left arm. Fortunately, a positive attitude and intensive therapy allowed him to make a full recovery. The event also encouraged Carlton to form Helping Innocent People (HIP), a nonprofit organization designed to aid the victims of random gun violence. “It made me realize that we’re all the same, that good and bad things can happen at any time,” he told Los Angeles Times writer Bill Kohlhaase of the incident. “It was a very humbling experience. I was fortunate that nine months after the shooting I was back to playing, if not better than ever, and had full use of my arm.” Just one year after the shooting, in 1989, Carlton released the Grammy Award-nominated set On Solid Ground.

(Wikipedia heeft over het herstel andere informatie)

Toch is er bij tegenslag iets wat bijna altijd doorgaat. Muziek luisteren,

zelfs al kun je geen muziek meer maken.

Binnen in je hoofd kan muziek ook prachtig doorspelen, ook als je zo stokdoof als Ludwig van Beethoven was.

Een plaatje van J.S.Bach tot slot. De oude Bach had behoorlijk wat pech en ook allerlei mooie momenten maar daarover een ander keertje.

Portrait of Johann Sebastian Bach https://en.wikipedia.org/wiki/File:Johann_Sebastian_Bach.jpg

 

Hello 2025 … [English]

Today’s wonderful so far. After lots of days with gray (grey) clouds there’s change. The sun is out and not just for one minute. Also today, I thought many thoughts about what I want to write about but let’s keep this short so I can sit in the sun for a bit longer and watch the sky, the birds, the trees.

One thing I thought about is our Hello. For years I felt a bit uncomfortable when I would see people from the USA or Canada, and hearing their enthusiastic

“Hi! How are you ?”

But thanks to all my reading on The Fediverse I’ve learned that it is common practice (when talking to US-citizens or Canadians) to just repeat that same sentence that they are saying, (or rather shouting,) and then quickly go into a regular conversation.

In Dutch it is kind of different. When I come across people I know in the streets they would ask :  “Hi, how are you ?” and then more often than not I respond with for example “Today I am kind of OK”, and surprisingly often they would respond with wide open eyes

“What ??? Yesterday not ???”

Usually I have responded with “Every day is different” or something similar. But the others don’t seem to get used to this. Should I go lying mode and always say “Good! How are you ?”.  Well, I will not obey, not yet 🙂

So today, for now … I will say to the brand new shiny year :

Hello 2025! How are you today?

I hope this time your orbit around the sun will bring many changes for the better.

For a just and social new year.

And if you have not seen this cool dragon drone show in China have a look at this short video.

Kort maar (niet zondermeer en automatisch) krachtig

Gister (2024) ging redelijk goed. Vuurwerk was al uren bezig, en ik bedacht wat ik met Oud&Nieuw zou gaan doen. Ik deed oordopjes in, die speciaal bepaald geluid filteren maar dat hielp niet heel veel. Dus toen maar een grote hoofdtelefoon er bij op met muziek aan. Dat ging eigenlijk perfect.

Muziek is toch een ongelooflijk fijn medicijn. Waar zou ik zijn zonder muziek ? Het heeft me al zo heel erg vaak vermaakt en geresulteerd in meer good vibes.

Bij mij is muziek essentieel maar … dankzij muziek leraren op school weet ik ook dat … stilte … belangrijk is in muziek.

(Even een metal link die ik hieronder ook nog wil herhalen – Nee, geen oordoppen nodig)

En daarmee komen we bij vandaag (2025). Het was bijna magisch om wakker te worden met een enorme stilte. Dat duurde uren die zalige stilte totdat er wat jochies uit de buurt nog wat vuurwerk hadden gevonden. Daarna werd het redelijk snel weer stil.

Ben later ook nog een wandeling gaan maken en de stilte op straat was bijna uitzonderlijk mooi. Alsof je in een gelukzalige film bent gestapt voor een aantal minuten.

Ontroerend.

Kent u John Cage de muziek componist ? Cage kwam met het nummer genaamd (Wikipedia link) :

4′33″

Dat nummer is geen grap, het ging Cage er om hoe je ervaart, bijgeluiden, verkeer en andere dingen.

(Denkt u ook wel eens : “Waarom wordt er zo vaak gehoest tijdens live klassieke concert opnames ?”). En zo’n nummer kan ook prikkelen. Het brengt wat suspense de eerste keer als je het ziet en hoort.

Hier John Cage over silence (4 minuut 18 video).

Er zijn meer interviews met John Cage op b.v. YouTube te vinden.

Een metal band heeft het John Cage nummer als cover opgenomen.

Echt -> epic !!! -> Must see !!!

John Cage – 4’33” Death Metal cover bij Death Territory

In ieder geval. Tot een volgende!

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.