mirror of
https://github.com/gryf/flac2ogg.git
synced 2026-10-16 20:32:30 +02:00
Compare commits
1
Commits
7a671a5a6d
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e41ba097ef |
No files matched your search
+5
-4
@@ -3,12 +3,13 @@ flac2ogg
|
|||||||
|
|
||||||
Flac2ogg is an automated Audio file converter.
|
Flac2ogg is an automated Audio file converter.
|
||||||
|
|
||||||
At the beginning, aim of ``flac2ogg`` was to produce high quality *ogg* files
|
At the beginning, aim of ``flac2ogg`` was to produce high quality *ogg Vorbis*
|
||||||
out of (preferably) lossless formats like *FLAC*/*WAVE*/*WavePack*. Over time
|
files out of (preferably) lossless formats like *FLAC*/*WAVE*/*WavePack*. Over
|
||||||
it evolved of ability to produce small-sized *mp3* files out of anything.
|
time it evolved of ability to produce small-sized *mp3* files and *ogg Opus*
|
||||||
|
which become the default encoder.
|
||||||
|
|
||||||
Of course there is no constraints on what source files would be and what output
|
Of course there is no constraints on what source files would be and what output
|
||||||
format will be, so there is a possibility to create *ogg* form low quality
|
format will be, so there is a possibility to create *ogg* from low quality
|
||||||
*mp3* files, nevertheless it doesn't make any sense :) This script automate
|
*mp3* files, nevertheless it doesn't make any sense :) This script automate
|
||||||
conversion between different type of audio formats.
|
conversion between different type of audio formats.
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -14,7 +14,7 @@ from mutagen.mp3 import MP3
|
|||||||
from mutagen.easyid3 import EasyID3, EasyID3KeyError
|
from mutagen.easyid3 import EasyID3, EasyID3KeyError
|
||||||
|
|
||||||
|
|
||||||
VERSION = '1.3'
|
VERSION = '1.3.1'
|
||||||
|
|
||||||
|
|
||||||
def match_file(path):
|
def match_file(path):
|
||||||
@@ -158,7 +158,7 @@ class OpusEncoder(Encoder):
|
|||||||
self.quality = 128
|
self.quality = 128
|
||||||
|
|
||||||
def encode(self, input_fname, output_fname):
|
def encode(self, input_fname, output_fname):
|
||||||
sp.check_call(["opusenc", "--bitrate", self.quality, input_fname,
|
sp.check_call(["opusenc", "--bitrate", str(self.quality), input_fname,
|
||||||
output_fname])
|
output_fname])
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user