Audio support now creates OGG instead of WAV
While creating the spectrogram, and alternative version of the audio file has been needed. Before this, it has been a WAV format file, the issue with WAV is that it takes a lot of space. Starting with this it will be an OGG file. Rejoice :)
This commit is contained in:
parent
089508d07b
commit
549000d991
@ -99,12 +99,13 @@ def process_audio(entry):
|
|||||||
original=os.path.splitext(
|
original=os.path.splitext(
|
||||||
queued_filepath[-1])[0]))
|
queued_filepath[-1])[0]))
|
||||||
|
|
||||||
with tempfile.NamedTemporaryFile(suffix='.wav') as wav_tmp:
|
with tempfile.NamedTemporaryFile(suffix='.ogg') as wav_tmp:
|
||||||
_log.info('Creating WAV source for spectrogram')
|
_log.info('Creating OGG source for spectrogram')
|
||||||
transcoder.transcode(
|
transcoder.transcode(
|
||||||
queued_filename,
|
queued_filename,
|
||||||
wav_tmp.name,
|
wav_tmp.name,
|
||||||
mux_string='wavenc')
|
mux_string='vorbisenc quality={0} ! oggmux'.format(
|
||||||
|
audio_config['quality']))
|
||||||
|
|
||||||
thumbnailer = AudioThumbnailer()
|
thumbnailer = AudioThumbnailer()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user