All 1 entries tagged <em>Audio</em>Mike Willisit's just this blag, y'know?https://blogs.warwick.ac.uk/mikewillis/tag/audio/?atom=atomWarwick Blogs, University of Warwick(C) 2024 Mike Willis2024-03-29T00:40:36ZConverting FLAC to AAC/M4A by Mike WillisMike Willishttps://blogs.warwick.ac.uk/mikewillis/entry/converting_flac_to/2012-12-31T16:11:58Z2012-12-31T16:11:28Z<p>I found myself wanting to convert some audio files that were encoded with FLAC to AAC/M4A that iTunes can understand. Conversion using ffmpeg is easy enough but I couldn't find a way to make ffmpeg copy the artwork that's embedded in the FLAC files. So I ended up using atomicparsley as well.</p>
<pre>$ for i in *flac;do of="${i/.flac/.m4a}";af=foo.jpg;ffmpeg -i "${i}" -y "${af}"; ffmpeg -i "${i}" -vn -acodec libfaac -aq 320k -f mp4 -y "${of}";atomicparsley "${of}" --artwork "${af}" --overWrite;rm -f "${af}";done<br /></pre>
<p>I had to tell ffmpeg to force the mp4 container otherwise atomicparsley wouldn't process the resulting file.<br />
</p><p>I found myself wanting to convert some audio files that were encoded with FLAC to AAC/M4A that iTunes can understand. Conversion using ffmpeg is easy enough but I couldn't find a way to make ffmpeg copy the artwork that's embedded in the FLAC files. So I ended up using atomicparsley as well.</p>
<pre>$ for i in *flac;do of="${i/.flac/.m4a}";af=foo.jpg;ffmpeg -i "${i}" -y "${af}"; ffmpeg -i "${i}" -vn -acodec libfaac -aq 320k -f mp4 -y "${of}";atomicparsley "${of}" --artwork "${af}" --overWrite;rm -f "${af}";done<br /></pre>
<p>I had to tell ffmpeg to force the mp4 container otherwise atomicparsley wouldn't process the resulting file.<br />
</p>0