RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

[Bug]: It wont download background vido

Open SpacedKhan opened this issue 1 year ago • 3 comments

Describe the bug

It didnt download due to no format available?

Reproduction Steps

python main.py

Expected behavior

Download the background video successfully

Screenshots

We need to download the backgrounds videos. they are fairly large but it's only done once. 😎 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ Downloading the backgrounds videos... please be patient 🙏 Downloading parkour.mp4 from https://www.youtube.com/watch?v=n_Dv4JMiwK8 [youtube] Extracting URL: https://www.youtube.com/watch?v=n_Dv4JMiwK8 [youtube] n_Dv4JMiwK8: Downloading webpage [youtube] n_Dv4JMiwK8: Downloading ios player API JSON [youtube] n_Dv4JMiwK8: Downloading player 94f771d8 WARNING: [youtube] n_Dv4JMiwK8: nsig extraction failed: You may experience throttling for some formats n = jrjfcrlQ6XZC7pxUa ; player = https://www.youtube.com/s/player/94f771d8/player_ias.vflset/en_US/base.js ERROR: [youtube] n_Dv4JMiwK8: Requested format is not available. Use --list-formats for a list of available formats ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Sorry, something went wrong with this version! Try again, and feel free to report this issue at GitHub or the │ │ Discord community. │ │ Version: 3.3.0 │ │ Error: ERROR: [youtube] n_Dv4JMiwK8: Requested format is not available. Use --list-formats for a list of │ │ available formats │ │ Config: {'allow_nsfw': False, 'theme': 'dark', 'times_to_run': 1, 'opacity': 0.9, 'storymode': True, │ │ 'storymodemethod': 1, 'storymode_max_length': 1000, 'resolution_w': 1080, 'resolution_h': 1920, 'zoom': 1.0, │ │ 'channel_name': 'SpacedKhan', 'background': {'background_video': 'minecraft', 'background_audio': 'lofi', │ │ 'background_audio_volume': 0.15, 'enable_extra_audio': False, 'background_thumbnail': False, │ │ 'background_thumbnail_font_family': 'arial', 'background_thumbnail_font_size': 96, │ │ 'background_thumbnail_font_color': '255,255,255'}, 'tts': {'voice_choice': 'streamlabspolly', 'random_voice': True, │ │ 'elevenlabs_voice_name': 'Bella', 'elevenlabs_api_key': 'REDACTED', 'aws_polly_voice': 'Matthew', │ │ 'streamlabs_polly_voice': 'Matthew', 'tiktok_voice': 'en_us_001', 'tiktok_sessionid': 'REDACTED', 'python_voice': │ │ '1', 'py_voice_num': '2', 'silence_duration': 0.3, 'no_emojis': False}} │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ Traceback (most recent call last): File "C:\Users\jojot\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\yt_dlp\YoutubeDL.py", line 1606, in wrapper return func(self, *args, **kwargs) File "C:\Users\jojot\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\yt_dlp\YoutubeDL.py", line 1762, in __extract_info return self.process_ie_result(ie_result, download, extra_info) File "C:\Users\jojot\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\yt_dlp\YoutubeDL.py", line 1821, in process_ie_result ie_result = self.process_video_result(ie_result, download=download) File "C:\Users\jojot\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\yt_dlp\YoutubeDL.py", line 2955, in process_video_result raise ExtractorError( yt_dlp.utils.ExtractorError: [youtube] n_Dv4JMiwK8: Requested format is not available. Use --list-formats for a list of available formats

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\jojot\OneDrive\Documents\RedditVideoMakerBot-master\main.py", line 131, in raise err File "C:\Users\jojot\OneDrive\Documents\RedditVideoMakerBot-master\main.py", line 113, in run_many(config["settings"]["times_to_run"]) File "C:\Users\jojot\OneDrive\Documents\RedditVideoMakerBot-master\main.py", line 68, in run_many main() File "C:\Users\jojot\OneDrive\Documents\RedditVideoMakerBot-master\main.py", line 57, in main download_background_video(bg_config["video"]) File "C:\Users\jojot\OneDrive\Documents\RedditVideoMakerBot-master\video_creation\background.py", line 95, in download_background_video ydl.download(uri) File "C:\Users\jojot\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\yt_dlp\YoutubeDL.py", line 3583, in download self.__download_wrapper(self.extract_info)( File "C:\Users\jojot\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\yt_dlp\YoutubeDL.py", line 3558, in wrapper res = func(*args, **kwargs) File "C:\Users\jojot\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\yt_dlp\YoutubeDL.py", line 1595, in extract_info return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process) File "C:\Users\jojot\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\yt_dlp\YoutubeDL.py", line 1624, in wrapper self.report_error(str(e), e.format_traceback()) File "C:\Users\jojot\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\yt_dlp\YoutubeDL.py", line 1073, in report_error self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs) File "C:\Users\jojot\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\yt_dlp\YoutubeDL.py", line 1012, in trouble raise DownloadError(message, exc_info) yt_dlp.utils.DownloadError: ERROR: [youtube] n_Dv4JMiwK8: Requested format is not available. Use --list-formats for a list of available formats

System Information

Operating System : Windows 11 Python version : Python 3.10 App version / Branch : latest

Checklist

  • [x] I have searched the open issues for duplicates.
  • [x] I have shown the entire traceback, if possible.

Additional Context

No response

SpacedKhan avatar Jun 18 '25 14:06 SpacedKhan

This is due to a dependency, yt-dlp, needing upgrading. Dependabot will probably handle in next release.

Current workaround is pip install --upgrade yt-dlp

Make sure to check other issue comments for other workarounds before they're merged into the next release :D

Popidge avatar Jun 21 '25 01:06 Popidge

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.

github-actions[bot] avatar Jun 29 '25 00:06 github-actions[bot]

Issue closed due to being stale. Please reopen if issue persists in latest version.

github-actions[bot] avatar Jul 15 '25 00:07 github-actions[bot]