

I searched over the Internet and found out about FFmpeg. avi (I know it’s not a free format, but I needed to). Started out doing punch cards in FORTRAN.A few days ago I downloaded a video file (.flv) from a website. Programmer in C++, Swift, Python, Javascript and more. The only remaining step is sending the file to my son via SMS or email or Apple’s quite handy AirDrop.Īlles ist gut.

A WMA input file of foo/bar.wma be converted into an MP3 file named foo/bar.mp3. Then we use the bit rate as an option to the ffmpeg command to convert from WMA to MP3. Here is the Bash/Zsh script I came up with to do the work: #!/bin/bash INPUT = " $"įirst, we use ffprobe to identify the bit rate of the WMA file. I already had FFmpeg installed (again via the lovely Homebrew macOS package manager) for another project, so it took little effort to recreate the solution. A bit heavy-handed to get a conversion, it nonetheless did what I needed to give my son a playable audio file.Ī further search revealed a command-line solution using the excellent FFmpeg toolkit. But I already had a solution to recording audio from the system output: I fired up the excellent Audio Hijack application, and started an ad-hoc recording session just to record the output of mplayer. After installing via Homebrew, I was indeed able to play the file using % mplayer Christina.mp3īut that was not going to do much good for him and his iPhone. I did a quick search and found that the most popular solution was mplayer. My son even went so far as installing GarageBand on his phone to try and play the file as an instrument. He does have an iPhone, so ideally he will be able to use it and not my personal laptop while figuring out what Christina is saying in German.Īs one might expect, macOS and iOS do not natively know what to do with a WMA file. Yet I still had to come up with a means for my son to be able to listen to these files to do his assignments. At least they are not encumbered with any digit rights management (DRM) crap. WMA stands for Windows Media Audio and in our household we don’t have any Windows devices that can natively play this proprietary format. Menu Converting WMA Files to MP3 May 20th, 2020 Audio (2) ĭuring the pandemic lockdown in France, my son’s German teacher has been sending out listening exercises in the WMA format. Adding Binary Search to Swift Collections.Variable Height UITableView Cells in Swift.Signing Embedded Frameworks in an Embedded Framework.Framework Bundles in Xcode and CocoaPods.Metalsmith Plugins for Server-side KaTeX Processing.Apple iTunes Library Manipulation with Python.Different (Key)strokes for Different Folks.Simple Image Classification using Logistic Regression.Swift Snapshot Testing in Github Actions.
