diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-03-09 21:02:55 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-03-09 21:02:55 +0100 |
commit | 62d3d6f2eee38345bc7f1f0ae7531f416fd77fc2 (patch) | |
tree | 367ecec79bee059da429b6f0858af051c209f438 /backend | |
parent | Follow redirects in makefile and use TLS (diff) | |
download | zmusic-ng-62d3d6f2eee38345bc7f1f0ae7531f416fd77fc2.tar.xz zmusic-ng-62d3d6f2eee38345bc7f1f0ae7531f416fd77fc2.zip |
Use ffmpeg and support m4a
Diffstat (limited to 'backend')
-rw-r--r-- | backend/zmusic/endpoints/song.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/zmusic/endpoints/song.py b/backend/zmusic/endpoints/song.py index 3f6e5ff..6c153e9 100644 --- a/backend/zmusic/endpoints/song.py +++ b/backend/zmusic/endpoints/song.py @@ -36,7 +36,7 @@ def song(id, ext): if ext not in [ "ogg", "mp3", "flac", "wav", "webm" ]: return abort(404) - transcode_options = [ 'avconv', '-loglevel', 'quiet', '-i', song.filename, '-f', ext, '-y', '-fflags', 'nobuffer' ]; + transcode_options = [ 'ffmpeg', '-loglevel', 'quiet', '-i', song.filename, '-f', ext, '-y', '-fflags', 'nobuffer' ]; if ext == "ogg" or ext == "webm": transcode_options.extend([ '-acodec', 'libvorbis', '-aq', '5' ]) elif ext == "mp3": |