From 7a671a5a6d882799d33a1240f9d30b009d1c9db6 Mon Sep 17 00:00:00 2001 From: gryf Date: Fri, 25 Sep 2026 09:52:06 +0200 Subject: [PATCH] Make opus default encoder --- README.rst | 7 ++++--- flac2ogg.py | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 8ea79f7..49e9fa4 100644 --- a/README.rst +++ b/README.rst @@ -61,9 +61,10 @@ Given that there are couple of music files, simplest usage is as follows: $ flac2ogg.py directory_of_music_files/* -All files from that directory will be encoded to *ogg* by default. If there -are already some *ogg* files, new files would have ``_encoded_`` added into the -filename. Note, that output files will be placed next to the original files. +All files from that directory will be encoded to *opus* by default. If there +are already some *opus* files, new files would have ``_encoded_`` added into +the filename. Note, that output files will be placed next to the original +files. License ======= diff --git a/flac2ogg.py b/flac2ogg.py index 1066118..b251084 100755 --- a/flac2ogg.py +++ b/flac2ogg.py @@ -14,7 +14,7 @@ from mutagen.mp3 import MP3 from mutagen.easyid3 import EasyID3, EasyID3KeyError -VERSION = '1.2' +VERSION = '1.3' def match_file(path): @@ -460,9 +460,9 @@ def main(): help='Split output file with provided *.cue file') arg.add_argument('-r', '--recursive', action='store_true', 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'), - 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. ' 'Consult "lame", "oggenc" and "opusenc" manuals for ' 'details. Defaults are -V6 for lame, -q8 for oggenc and '