For the past five years a lot of the posts you’ve read here are ones I wrote and posted via email, using a process I described in 2016. Having my phone or tablet become a mobile blogging platform was a tectonic shift in my blogging practice, freeing me from posting only while in the office in front of my computer. I

When I originally set this system up, I added a feature to look for an MP3 file in the email, and add this as a playable attachment to the blog post. This was fine when I was blogging from my Android phones, where I used a third-party audio recorder that saved audio in MP3 format, but since I moved to use an iPhone in mid-2020, I haven’t been able to do this because the Voice Memos app on the phone saves audio as M4A files.

I set out to solve this today by installing FFmpeg on my server, and then looking for incoming files with a MIME type of audio/x-m4a; when my script finds them, it converts them to MP3s:

system("/usr/bin/ffmpeg -i $sanitized_filename -acodec libmp3lame -ab 128k $sanitized_filename_mp3");

I used the new capability with this post this morning.

Stay tuned for a revivified Peter and Oliver Podcast, missing in action since March 2020!

Peter Rukavina

Add new comment

The content of this field is kept private and will not be shown publicly.

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /now, look at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, see things I’ve favourited elsewhere, or get in touch (peter@rukavina.net is the quickest way).

I have been writing here since May 1999: you can explore the 25+ years of blog posts in the archive.

You can subscribe to an RSS feed of posts, an RSS feed of comments, an RSS feed of favourites elsewhere, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email. I also publish an OPML blogroll.

InstagramYouTubeVimeoORCIDOpenStreetMapInternet ArchivePEI.artDrupalGithub.