diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 0b60ac7e75..5ef5e0e545 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -146,7 +146,11 @@ def run_ffmpeg_multiple_files(self, input_paths, out_path, opts): stderr = stderr.decode('utf-8', 'replace') msg = stderr.strip().split('\n')[-1] raise FFmpegPostProcessorError(msg) - os.utime(encodeFilename(out_path), (oldest_mtime, oldest_mtime)) + try: + os.utime(encodeFilename(out_path), (oldest_mtime, oldest_mtime)) + except Exception: + self._downloader.report_warning('Cannot update utime of file') + if self._deletetempfiles: for ipath in input_paths: os.remove(ipath)