this post was submitted on 25 Jul 2023
0 points (NaN% liked)

Free and Open Source Software

17746 readers
26 users here now

If it's free and open source and it's also software, it can be discussed here. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

I have a fairly large music collection, which is 9.9 GB in size. It's mainly made up of MP3 files, with some OGG Vorbis files and a handful of WAV and WMA files. I would like to convert the entire library to AAC (or a better format, if there is one) in order to reduce the size of my collection by a considerable amount.

My library is organised using this folder structure:

~/Music/{Artist}/{Album}/{Track}

Can anyone recommend a GUI tool or shellscript which would recursively convert the files, map across the metadata, and dump the files into a different folder with the same directory structure?

EDIT: I have used a script to convert everything to Opus. Problem solved, just working out the kinks now.

top 3 comments
sorted by: hot top controversial new old
[–] aleph@lemm.ee 0 points 1 year ago* (last edited 1 year ago) (1 children)

Converting from one lossy codec another isn't generally recommended, plus you aren't likely to save that much disk space by converting to AAC.

10 GB is actually pretty small for a local music collection, quite honestly. If I were you, I would try to expand your storage capacity instead of wasting time, and potentially audio quality, by transcoding.

[–] hellfire103@sopuli.xyz 0 points 1 year ago (1 children)

I have an iPhone. The storage I have is all I've got.

[–] nx2@feddit.de 0 points 1 year ago* (last edited 1 year ago)
  1. Don't buy iPhone

  2. You need ffmpeg

  3. Read this for the exact command

  4. You can use the find command (in console) to list all mp3 files, these you can pipe into ffmpeg.

Just ask ChatGPT to write the shell script for you