fix ffmpeg metadatapp
authorpulpe <Pulpan3@gmail.com>
Sat, 22 Feb 2014 17:23:30 +0000 (18:23 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 26 Mar 2014 14:22:52 +0000 (15:22 +0100)
youtube_dl/postprocessor/ffmpeg.py

index 75ee87e1a2d853cf00ae00d3ea4dd55ef1145162..d5b71b96f8322181137ef4da5bc0ef9eba1a294f 100644 (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)])