fix ffmpeg error, if youtube-dl runs more than once with --embed-thumbnail with same...
[youtube-dl] / youtube_dl / postprocessor / ffmpeg.py
index 26a70491a084b5dd28c250eb705f47ea6bf55905..75ee87e1a2d853cf00ae00d3ea4dd55ef1145162 100644 (file)
@@ -484,13 +484,13 @@ class FFmpegMergerPP(FFmpegPostProcessor):
         return True, info
 
 
-class FFmpegMediaFixPP(FFmpegPostProcessor):
+class FFmpegAudioFixPP(FFmpegPostProcessor):
     def run(self, info):
         filename = info['filepath']
         temp_filename = prepend_extension(filename, 'temp')
 
-        options = ['-vcodec', 'copy', '-acodec', 'copy']
-        self._downloader.to_screen(u'[ffmpeg] Fixing media file "%s"' % filename)
+        options = ['-vn', '-acodec', 'copy']
+        self._downloader.to_screen(u'[ffmpeg] Fixing audio file "%s"' % filename)
         self.run_ffmpeg(filename, temp_filename, options)
 
         os.remove(encodeFilename(filename))