Naming fix.
This commit is contained in:
parent
a66cb19c69
commit
49384d9775
@ -23,7 +23,7 @@ from ..utils import (
|
|||||||
subtitles_filename,
|
subtitles_filename,
|
||||||
)
|
)
|
||||||
|
|
||||||
FFMPEG_CBR_SAMPLERATE_TABLE = {
|
LIBFDKAAC_CBR_SAMPLERATE_TABLE = {
|
||||||
"libfdkaac": [
|
"libfdkaac": [
|
||||||
[16, 23, 11025],
|
[16, 23, 11025],
|
||||||
[24, 31, 16000],
|
[24, 31, 16000],
|
||||||
@ -45,7 +45,7 @@ FFMPEG_CBR_SAMPLERATE_TABLE = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
FFMPEG_VBR_SAMPLERATE_TABLE = {
|
LIBFDKAAC_VBR_SAMPLERATE_TABLE = {
|
||||||
"libfdkaac": [
|
"libfdkaac": [
|
||||||
[1, 32000], #40kbps
|
[1, 32000], #40kbps
|
||||||
[2, 32000], #64kbps
|
[2, 32000], #64kbps
|
||||||
@ -248,7 +248,7 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
|
|||||||
raise AudioConversionError(err.msg)
|
raise AudioConversionError(err.msg)
|
||||||
|
|
||||||
def get_fdkaac_cbr_samplerate(self, codec, bitrate):
|
def get_fdkaac_cbr_samplerate(self, codec, bitrate):
|
||||||
table = FFMPEG_CBR_SAMPLERATE_TABLE[codec];
|
table = LIBFDKAAC_CBR_SAMPLERATE_TABLE[codec];
|
||||||
int_bitrate = int(bitrate)
|
int_bitrate = int(bitrate)
|
||||||
for configuration in table:
|
for configuration in table:
|
||||||
min_rate, max_rate, sample_rate = configuration[0], configuration[1], configuration[2]
|
min_rate, max_rate, sample_rate = configuration[0], configuration[1], configuration[2]
|
||||||
@ -257,7 +257,7 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
|
|||||||
raise PostProcessingError('WARNING: Can''t find fdkaac samplerate configuration for bitrate.')
|
raise PostProcessingError('WARNING: Can''t find fdkaac samplerate configuration for bitrate.')
|
||||||
|
|
||||||
def get_fdkaac_vbr_samplerate(self, codec, vbr_value):
|
def get_fdkaac_vbr_samplerate(self, codec, vbr_value):
|
||||||
table = FFMPEG_VBR_SAMPLERATE_TABLE[codec];
|
table = LIBFDKAAC_VBR_SAMPLERATE_TABLE[codec];
|
||||||
int_vbr_level = int(vbr_value)
|
int_vbr_level = int(vbr_value)
|
||||||
for configuration in table:
|
for configuration in table:
|
||||||
vbr_level, sample_rate = configuration[0], configuration[1]
|
vbr_level, sample_rate = configuration[0], configuration[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user