mamot.fr is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mamot.fr est un serveur Mastodon francophone, géré par La Quadrature du Net.

Server stats:

3.2K
active users

#mpd

5 posts5 participants1 post today

alojapan.com/1246467/new-tokyo New Tokyo Police Unit Faces Tall Order to Stop Lone Wolf Crimes ##visitjapanjp #ArtificialIntelligence #China #crime #cybercrime #editorial #editorials #MPD #news #NorthKorea #Politics&Security #security #terrorism #Tokyo #TokyoMetropolitanPolice #TokyoNews #YamiBaito #東京 #東京都 このページを 日本語 で読む On April 1, the Tokyo Metropolitan Police Department (MPD) launched a “Third Public Security Division” within the Public Security Bureau. Its mandate…

Musk’s Team Evicts Officials at the U.S. Institute of Peace, an independent non-profit

A simmering dispute broke into a dramatic standoff ending w/#DC #MPD involvement & #DOGE taking up residence at the independent agency.

WTAF????

#MuskTrumpPurge running amok.

Gift article: nytimes.com/2025/03/17/us/poli

The New York Times · DOGE Staff Marches Into U.S. Institute of Peace and Evicts Its OfficialsBy Aishvarya Kavi

someone asked recently why anyone would want to use a #bash shell. In my defence, I was listening to #mpd and wondered what a track was, two tracks back, and yes, I could be crude about it, but no, in a few minutes I had

grep played /var/log/mpd/mpd.log | cut -f 1,2,4 -d ':' | sed 's/played[^/]*\///;s/.mp3"$//' | cut -c 8- | tail

gives a list like

22:37 : Eighth Street Orchestra/221230 Drom Taberna/12-Route 66

Back on my remote control for #Mopidy, now the hardware buttons are working for basic music controls.

It was hard to break out of polling for updates because #Micropython doesn't seem to have a file-like object I can pass to the Poll object and write to from the interrupt handler. Instead I just reduced the timeout to 50ms, but that means more CPU activity, albeit it only connects to the server on an update. Any better suggestions are welcome.

I have this odd issue with my laptop where whenever I play music using "traditional" apps like #Lollypop, #Pragha, #StrawberryPlayer, #Rythmbox, #QuodLibet or #Exaile, it pauses at random times for a few seconds, like if the music is buffering or something.

Interestingly, it doesn't happen with #mpd, #Monophony or through #Firefox. And it has happened with every distro I used with this laptop (#Fedora, #Debian, #EndeavourOS).

I suspect is related to #pipewire-pulse, but I'm not sure.

Playing music with Mopidy or with mpd (music player daemon) part 1

This is just an introduction post to Mopidy and mpd (Music Player Daemon).

Both are music players that come without GUI but there’s a wide choice of client software for it (Console and GUI). Both default to be using localhost as server, but they can be configured to be used over a network e.g. a LAN at home or – dare I say it ? (hahaha) – a company office or government building, a desert island in the Pacific Ocean and so on.

I used to happily use mpd for years on a Raspberry Pi … but not Every After … until one day probably due to a software upgrade or some glitch or user mistake it stopped working. Because I had not documented how I configured the audio for server usage I started to try to fix and got lost in Internet searches and it was then that I decided to test Mopidy. It turned out that Mopidy was even more difficult to get going, at least for me, but it was not an uninteresting journey. I learned that Mopidy uses GStreamer, and Mopidy only supports audio files, or it seems so. Perhaps I couldn’t figure out how to let it play audio from video files with extensions like avi, mp4, mkv, webm. And converting all these music videos into audio would take a lot of time (Yes, no top500 super computer in the basement here :^).

My plan now is to use another computer here to setup mpd, and then figure out how to configure PulseAudio to make mpd available over the LAN, document that, and then do the same for Mopidy and then blog-report that into a how-to back here.

Till next time! 🙂

 

MopidyMopidyThe extensible music server
#linux#mopidy#mpd

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.

wiki.archlinux.orgyt-dlp - ArchWiki
Continued thread

CMUS and MOC are two audio players that are easier to use. They both just work out-of-the-box; you just install them and they just work without editing any configuration files.

Supposedly, MPD and ncmpcpp have more options and features but require editing configuration files to get them both to work properly. After editing a few files, I still could not get them working. Things do not have to be this hard to listen to audio files on Linux.

#Linux#cmus#moc