X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/c64903445bdf2294335b43d464d8147f2fdf41c4..1afbdde3f6504b6e0505fd31a27c028ddc402f02:/apps/archive/tasks.py diff --git a/apps/archive/tasks.py b/apps/archive/tasks.py index e8ce4fb..bbabe6c 100755 --- a/apps/archive/tasks.py +++ b/apps/archive/tasks.py @@ -157,12 +157,13 @@ class Mp3Task(AudioFormatTask): def encode(in_path, out_path): # 44.1kHz 64kbps mono MP3 subprocess.check_call(['ffmpeg', - '-i', in_path, + '-i', in_path.encode('utf-8'), '-ar', '44100', '-ab', '64k', '-ac', '1', '-y', - out_path + '-acodec', 'libmp3lame', + out_path.encode('utf-8') ]) @classmethod @@ -188,11 +189,12 @@ class OggTask(AudioFormatTask): @staticmethod def encode(in_path, out_path): # 44.1kHz 64kbps mono Ogg Vorbis - subprocess.check_call(['oggenc', - in_path, - '--discard-comments', - '--resample', '44100', - '--downmix', - '-b', '64', - '-o', out_path + subprocess.check_call(['ffmpeg', + '-i', in_path.encode('utf-8'), + '-ar', '44100', + '-ab', '64k', + '-ac', '1', + '-y', + '-acodec', 'libvorbis', + out_path.encode('utf-8') ])