From: pulpe Date: Sat, 22 Feb 2014 17:23:30 +0000 (+0100) Subject: fix ffmpeg metadatapp X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=39c68260c0b308e250119fa136c7e4f76d14dfea;p=youtube-dl fix ffmpeg metadatapp --- diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 75ee87e1a..d5b71b96f 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -464,7 +464,11 @@ class FFmpegMetadataPP(FFmpegPostProcessor): filename = info['filepath'] temp_filename = prepend_extension(filename, 'temp') - options = ['-c', 'copy'] + if info['ext'] == u'm4a': + options = ['-vn', '-acodec', 'copy'] + else: + options = ['-c', 'copy'] + for (name, value) in metadata.items(): options.extend(['-metadata', '%s=%s' % (name, value)])