1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 19:42:59 +08:00

fix ffmpeg metadatapp

This commit is contained in:
pulpe 2014-02-22 18:23:30 +01:00 committed by Jaime Marquínez Ferrándiz
parent 149254d0d5
commit 39c68260c0

View File

@ -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)])