前提
初心者です。
Windows利用者です。
発生している問題・エラーメッセージ
Google colabをローカルランタイム接続し、下記コードを参考に自分でローカル構築しています。
https://github.com/jantic/DeOldify
https://colab.research.google.com/github/jantic/DeOldify/blob/master/VideoColorizerColab.ipynb
最後の動画をダウンロードするところで、「You have requested merging of multiple formats but ffmpeg is not installed.」というエラーが出てしまいます。
FFmpegのインストールは下記を実行済みですが、それでもエラーが出てしまいます。
https://jp.videoproc.com/edit-convert/how-to-download-and-install-ffmpeg.htm
どのように解決すればいいのでしょうか?ご教授ください。
エラー全文
[youtube] Ont4ZePxSsk: Downloading webpage [youtube] Ont4ZePxSsk: Downloading android player API JSON [youtube] Ont4ZePxSsk: Downloading MPD manifest [youtube] Ont4ZePxSsk: Downloading MPD manifest [info] Ont4ZePxSsk: Downloading 1 format(s): 135+140 ERROR: You have requested merging of multiple formats but ffmpeg is not installed. Aborting due to --abort-on-error --------------------------------------------------------------------------- DownloadError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_6284\1761710269.py in <module> 6 7 if source_url is not None and source_url !='': ----> 8 video_path = colorizer.colorize_from_url(source_url, 'video.mp4', render_factor, watermarked=watermarked) 9 show_video_in_notebook(video_path) 10 else: ~\Documents\GitHub\DeOldify\deoldify\visualize.py in colorize_from_url(self, source_url, file_name, render_factor, post_process, watermarked) 381 ) -> Path: 382 source_path = self.source_folder / file_name --> 383 self._download_video_from_url(source_url, source_path) 384 return self._colorize_from_path( 385 source_path, render_factor=render_factor, post_process=post_process,watermarked=watermarked ~\Documents\GitHub\DeOldify\deoldify\visualize.py in _download_video_from_url(self, source_url, source_path) 256 } 257 with youtube_dl.YoutubeDL(ydl_opts) as ydl: --> 258 ydl.download([source_url]) 259 260 def _extract_raw_frames(self, source_path: Path): ~\anaconda3\envs\Python37\lib\site-packages\yt_dlp\YoutubeDL.py in download(self, url_list) 3292 for url in url_list: 3293 self.__download_wrapper(self.extract_info)( -> 3294 url, force_generic_extractor=self.params.get('force_generic_extractor', False)) 3295 3296 return self._download_retcode ~\anaconda3\envs\Python37\lib\site-packages\yt_dlp\YoutubeDL.py in wrapper(*args, **kwargs) 3266 def wrapper(*args, **kwargs): 3267 try: -> 3268 res = func(*args, **kwargs) 3269 except UnavailableVideoError as e: 3270 self.report_error(e) ~\anaconda3\envs\Python37\lib\site-packages\yt_dlp\YoutubeDL.py in extract_info(self, url, download, ie_key, extra_info, process, force_generic_extractor) 1446 raise ExistingVideoReached() 1447 break -> 1448 return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process) 1449 else: 1450 extractors_restricted = self.params.get('allowed_extractors') not in (None, ['default']) ~\anaconda3\envs\Python37\lib\site-packages\yt_dlp\YoutubeDL.py in wrapper(self, *args, **kwargs) 1457 while True: 1458 try: -> 1459 return func(self, *args, **kwargs) 1460 except (DownloadCancelled, LazyList.IndexError, PagedList.IndexError): 1461 raise ~\anaconda3\envs\Python37\lib\site-packages\yt_dlp\YoutubeDL.py in __extract_info(self, url, ie, download, extra_info, process) 1554 if process: 1555 self._wait_for_video(ie_result) -> 1556 return self.process_ie_result(ie_result, download, extra_info) 1557 else: 1558 return ie_result ~\anaconda3\envs\Python37\lib\site-packages\yt_dlp\YoutubeDL.py in process_ie_result(self, ie_result, download, extra_info) 1612 if result_type == 'video': 1613 self.add_extra_info(ie_result, extra_info) -> 1614 ie_result = self.process_video_result(ie_result, download=download) 1615 self._raise_pending_errors(ie_result) 1616 additional_urls = (ie_result or {}).get('additional_urls') ~\anaconda3\envs\Python37\lib\site-packages\yt_dlp\YoutubeDL.py in process_video_result(self, info_dict, download) 2710 downloaded_formats.append(new_info) 2711 try: -> 2712 self.process_info(new_info) 2713 except MaxDownloadsReached: 2714 max_downloads_reached = True ~\anaconda3\envs\Python37\lib\site-packages\yt_dlp\YoutubeDL.py in process_info(self, info_dict) 3127 msg = 'You have requested merging of multiple formats but ffmpeg is not installed' 3128 if not self.params.get('ignoreerrors'): -> 3129 self.report_error(f'{msg}. Aborting due to --abort-on-error') 3130 return 3131 self.report_warning(f'{msg}. The formats won\'t be merged') ~\anaconda3\envs\Python37\lib\site-packages\yt_dlp\YoutubeDL.py in report_error(self, message, *args, **kwargs) 992 in red if stderr is a tty file. 993 ''' --> 994 self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs) 995 996 def write_debug(self, message, only_once=False): ~\anaconda3\envs\Python37\lib\site-packages\yt_dlp\YoutubeDL.py in trouble(self, message, tb, is_error) 932 else: 933 exc_info = sys.exc_info() --> 934 raise DownloadError(message, exc_info) 935 self._download_retcode = 1 936 DownloadError: ERROR: You have requested merging of multiple formats but ffmpeg is not installed. Aborting due to --abort-on-error

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。