revert to s302m codec

This commit is contained in:
jb-alvarado 2020-05-24 11:41:34 +02:00
parent 0b8be6e931
commit bca351707a

View File

@ -984,7 +984,12 @@ def timed_source(probe, src, begin, dur, seek, out, first, last):
def pre_audio_codec():
"""
use libtwolame if is compiled in ffmpeg, when not use normal mp2
when add_loudnorm is False we use a different audio encoder,
s302m has higher quality, but is experimental
and works not well together with the loudnorm filter
"""
acodec = 'libtwolame' if 'libtwolame' in FF_LIBS['libs'] else 'mp2'
return ['-c:a', acodec, '-b:a', '384k', '-ar', '48000', '-ac', '2']
if _pre_comp.add_loudnorm:
acodec = 'libtwolame' if 'libtwolame' in FF_LIBS['libs'] else 'mp2'
return ['-c:a', acodec, '-b:a', '384k', '-ar', '48000', '-ac', '2']
else:
return ['-c:a', 's302m', '-strict', '-2', '-ar', '48000', '-ac', '2']