- In quod libet, check for files with low bitrates and replace them with better ones:
&(#(bitrate < 192), encoding != VBR)
- Convert + delete your music files:
dir2opus --recursive --verbose --delete-input --bitrate 128 --convert-all MyFolder
- Install opus-tools before
- Run this file https://github.com/ehmry/dir2opus/blob/master/dir2opus with python2
- The script can be stopped. It will continue where it left off.
- Disable automatic going to sleep in the system energy settings
- Close quod libet
- Backup
~/.config/quodlibet
- Run this python3 script to update the library file paths:
import os
import quodlibet.library
from quodlibet.formats.xiph import OggOpusFile
library_path = os.path.join(quodlibet.get_user_dir(), "songs")
library = quodlibet.library.init(library_path)
for song in library:
song['~filename'] = song('~filename').replace('.mp3', '.opus')
song.__class__ = OggOpusFile
library.changed([song])
library.save()
- Open quod libet and refresh the library