Convert m4a file to wav file using gstreamer
It’s as easy as this (you’ll need the fluendo codec pack to make this work):
gst-launch filesrc location=~/Music/Input-File.m4a ! qtdemux ! fluaacdec ! wavenc ! filesink location=~/Music/Output-File.wav
Use “gst-inspect -a |less” to see all possible gstreamer plugins. The above plugin chain does this:
1.) “filesrc” -> reads from a file
2.) “qtdemux” -> demultiplexes the m4a audio container format
3.) “fluaacdec” -> decodes AAC audio
4.) “wavenc” -> encodes the raw audio as PCM audio in the wav format
5.) “filesink” -> writes the wav format audio to a file
You may want to use the plugins “multifilesrc” and “multifilesink” to process multiple files at once.