fix ffmpeg error, if youtube-dl runs more than once with --embed-thumbnail with same video
This commit is contained in:
parent
0c14e2fbe3
commit
149254d0d5
3 changed files with 7 additions and 7 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue