summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/postprocessor
diff options
context:
space:
mode:
authorpulpe <[email protected]>2014-02-22 18:23:30 +0100
committerJaime Marquínez Ferrándiz <[email protected]>2014-03-26 15:22:52 +0100
commit39c68260c0b308e250119fa136c7e4f76d14dfea (patch)
tree7d9dd93c4b6507dff5d999dfcb20b87b386b0e60 /youtube_dl/postprocessor
parent149254d0d5fd9407a008e31c2e4362316e625d35 (diff)
downloadyoutube-dl-39c68260c0b308e250119fa136c7e4f76d14dfea.tar.gz
youtube-dl-39c68260c0b308e250119fa136c7e4f76d14dfea.zip
fix ffmpeg metadatapp
Diffstat (limited to 'youtube_dl/postprocessor')
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py6
1 files changed, 5 insertions, 1 deletions
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)])