Make opus default encoder

This commit is contained in:
gryf committed 2026-09-25 09:52:06 +02:00
1 parent 5a45d56784
commit 7a671a5a6d
2 files changed
+7 -6

No files matched your search

+4 -3
View File
@@ -61,9 +61,10 @@ Given that there are couple of music files, simplest usage is as follows:
$ flac2ogg.py directory_of_music_files/* $ flac2ogg.py directory_of_music_files/*
All files from that directory will be encoded to *ogg* by default. If there All files from that directory will be encoded to *opus* by default. If there
are already some *ogg* files, new files would have ``_encoded_`` added into the are already some *opus* files, new files would have ``_encoded_`` added into
filename. Note, that output files will be placed next to the original files. the filename. Note, that output files will be placed next to the original
files.
License License
======= =======
+3 -3
View File
@@ -14,7 +14,7 @@ from mutagen.mp3 import MP3
from mutagen.easyid3 import EasyID3, EasyID3KeyError from mutagen.easyid3 import EasyID3, EasyID3KeyError
VERSION = '1.2' VERSION = '1.3'
def match_file(path): def match_file(path):
@@ -460,9 +460,9 @@ def main():
help='Split output file with provided *.cue file') help='Split output file with provided *.cue file')
arg.add_argument('-r', '--recursive', action='store_true', arg.add_argument('-r', '--recursive', action='store_true',
help='Do the files searching recursive') help='Do the files searching recursive')
arg.add_argument('-e', '--encoder', default='ogg', type=str, arg.add_argument('-e', '--encoder', default='opus', type=str,
choices=('ogg', 'mp3', 'opus'), choices=('ogg', 'mp3', 'opus'),
help='Encoder to use. Defaults to "ogg"') help='Encoder to use. Defaults to "opus"')
arg.add_argument('-q', '--quality', help='Quality of the encoded file. ' arg.add_argument('-q', '--quality', help='Quality of the encoded file. '
'Consult "lame", "oggenc" and "opusenc" manuals for ' 'Consult "lame", "oggenc" and "opusenc" manuals for '
'details. Defaults are -V6 for lame, -q8 for oggenc and ' 'details. Defaults are -V6 for lame, -q8 for oggenc and '