This is a simple script to utilize along with something like find
or fd
to make converting music files much easier.
It finds all FLAC files in a subdirectory and then converts them to mp3. Then using id3v2 tags renames the files based on them.
Simply:
cp convert_flac_for_usb.sh ~/.local/bin/convert_flac_for_usb
chmod +x ~/.local/bin/convert_flac_for_usb
NB: Feel free to swap out
~/.local/bin/
to any directory in your$PATH
Ah, simply:
convert_flac_to_usb $INPUT_FILE $OUTPUT_FILE
But this isn't just for one off files, but for batch, parallel conversions!
fd 'flac' $MUSIC_DIR -t f -j "${THREAD_COUNT}" -x convert_flac_for_usb {} "$OUTPUT_DIR"/{/.}.mp3