Disable video feed in ffmpeg's flac conversion

Video feeds may be found in flac files, and the current ffmpeg
conversion command does not ignore them, causing beets to fail
to convert the file.

Add `-vn` to the command line to fix the problem.

Fix issue #712.
This commit is contained in:
Bruno Cauet 2014-04-21 15:37:10 +02:00
parent d96d12440e
commit db2a2d1e25
2 changed files with 3 additions and 1 deletions

View file

@ -264,7 +264,7 @@ class ConvertPlugin(BeetsPlugin):
u'extension': u'm4a',
},
u'flac': {
u'command': u'ffmpeg -i $source -y -acodec flac $dest',
u'command': u'ffmpeg -i $source -y -acodec flac -vn $dest',
u'extension': u'flac',
},
u'mp3': {

View file

@ -21,6 +21,8 @@ Fixes:
non-ASCII characters.
* The ``%if{}`` template function now appropriately interprets the condition
as false when it contains the string "false". Thanks to Ayberk Yilmaz.
* :doc:`/plugins/convert`: Disable a potential video stream in flac files
conversion with ffmpeg
1.3.5 (April 15, 2014)