Closed theRAGEhero closed 2 years ago
hi,
this is not a sharedown issue, its yt-dlp issue or ffmpeg issue
try to update both ffmpeg and yt-dlp, if you are using an older version, also you may want to try to switch to ffmpeg instead of yt-dlp and see if that works (you can do this in sharedown settings)
Hi,
I knw this isn't the place to ask it but did anyone manage to find a solution? I searched on the internet but most of pages says I need to upgrade yt-dl. but the thing is I installed it just now. So it's pretty current.
Hi,
I knw this isn't the place to ask it but did anyone manage to find a solution? I searched on the internet but most of pages says I need to upgrade yt-dl. but the thing is I installed it just now. So it's pretty current.
Same problem, can't download most part of the material. Any fixes?
have you tried ffmpeg instead of yt-dlp?
have you tried ffmpeg instead of yt-dlp?
yep, just did that
ffmpeg not working? do you get any error?
Ah no, I'm sorry, it's giving me the same 100%: Download failed YT-dlp error: Exit code: 1
I dont't understand why if in the settings I put ffmpeg. But okk
you must press save
to apply the changes
restarted everything and saved, let's see thanks
have you tried ffmpeg instead of yt-dlp?
Do you think is there is a way to fix yt-dl? ffmpeg is working perfectly fine on me but as you mentioned before, its pretty slower than yt-dl.
sure, if ffmpeg is working, it is just a matter of not doing whatever yt-dlp does to create the video
i ll open an issue in yt-dlp git
@Timsword a verbose log is required, i need to add an option for that first, unless you can produce one via cmd?
To be honest, I don't know what it actually is. I will research on the internet about it..
Thank you very much for everything.
@Timsword
this version will only print yt-dlp logs as needed by yt-dlp dev enable logs in sharedown settings, and download a video that fails with yt-dlp remove your data from logs (token, name etc..) and upload it
to run this version: (i suppose windows)
install nodejs: download (enable download additional components)
extract sharedown
open cmd or powershell in sharedown folder
type npm i
and run the command
when ready, type npm start
to run sharedown
I took a look at the code but it's a bit too complex for me. I found the catch on preload.js at line 488, which I believe is the one that throws this error. Is it possible to make the Start Download function run again after this error is thrown? This would help downloading files over night.
yes, i will add a 'retry on failure' option
I think it is an Onedrive protection action, because when I donwload any video using yt-dlp y get this error on the next video, so Throttle blocks temporarily all requests to Onedrive.
So I prefer to use ffmpeg to avoid errors.
just noticed this..https://github.com/yt-dlp/FFmpeg-Builds this could fix yt-dlp errors, can someone with yt-dlp ffmpeg errors please test?
just noticed this..https://github.com/yt-dlp/FFmpeg-Builds this could fix yt-dlp errors, can someone with yt-dlp ffmpeg errors please test?
Hello, I'm still having this issue :( I have only if I use YT-DLP to download my videos, if I select FFmpeg the download speed is very slow but it works fine.
I get consistently this error downloading a particular video, at a particular dowload %:
[download] 99.9% of ~365.19MiB at 283.81KiB/s ETA 00:00 (frag 1169/1171)
[download] 99.9% of ~365.19MiB at 282.51KiB/s ETA 00:00 (frag 1170/1171)
[download] Got server HTTP error: HTTP Error 500: Internal Server Error. Retrying (attempt 1 of 10) ...
[...]
[download] Got server HTTP error: HTTP Error 500: Internal Server Error. Retrying (attempt 10 of 10) ...
ERROR: giving up after 10 retries
File "/usr/lib/python3.8/threading.py", line 890, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 80, in _worker
work_item.run()
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/fragment.py", line 474, in _download_fragment
frag_content, frag_index = download_fragment(fragment, ctx_copy)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/fragment.py", line 427, in download_fragment
success, frag_content = self._download_fragment(ctx, fragment['url'], info_dict, headers)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/fragment.py", line 132, in _download_fragment
success = ctx['dl'].download(fragment_filename, fragment_info_dict)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/common.py", line 399, in download
ret = self.real_download(filename, info_dict)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/http.py", line 386, in real_download
self.report_error('giving up after %s retries' % retries)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/common.py", line 172, in report_error
self.ydl.report_error(*args, **kargs)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 881, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', tb)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 820, in trouble
tb_data = traceback.format_list(traceback.extract_stack())
ERROR: unable to download video data: [Errno 2] No such file or directory: 'VIDEO_DIR_PATH/sharedownTmp/VIDEO_NAME.fvcopy.mp4-Frag1171'
Traceback (most recent call last):
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 2836, in process_info
partial_success, real_download = self.dl(fname, new_info)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 2578, in dl
return fd.download(name, new_info, subtitle)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/common.py", line 399, in download
ret = self.real_download(filename, info_dict)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/dash.py", line 62, in real_download
return self.download_and_append_fragments(ctx, fragments_to_download, info_dict)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/fragment.py", line 479, in download_and_append_fragments
for fragment, frag_content, frag_index, frag_filename in pool.map(_download_fragment, fragments):
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 619, in result_iterator
yield fs.pop().result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 444, in result
return self.__get_result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
raise self._exception
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/fragment.py", line 474, in _download_fragment
frag_content, frag_index = download_fragment(fragment, ctx_copy)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/fragment.py", line 427, in download_fragment
success, frag_content = self._download_fragment(ctx, fragment['url'], info_dict, headers)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/fragment.py", line 138, in _download_fragment
return True, self._read_fragment(ctx)
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/downloader/fragment.py", line 141, in _read_fragment
down, frag_sanitized = sanitize_open(ctx['fragment_filename_sanitized'], 'rb')
File "/home/lorenzo/.local/lib/python3.8/site-packages/yt_dlp/utils.py", line 2094, in sanitize_open
stream = open(encodeFilename(filename), open_mode)
FileNotFoundError: [Errno 2] No such file or directory: 'VIDEO_DIR_PATH/sharedownTmp/VIDEO_NAME.fvcopy.mp4-Frag1171'
just noticed this..https://github.com/yt-dlp/FFmpeg-Builds this could fix yt-dlp errors, can someone with yt-dlp ffmpeg errors please test?
I tried to replace my installation (ffmpeg-4.3.1-amd64-static
) with that repo's latest release ffmpeg-N-104591-g8c150d3d97-linux64-gpl
, but the same error occured, still at the same dl%.
After searching I found that the error I'm getting is related to youtube-dl and there is an open issue about that. Problems with video formats? Idk.
With other videos, after occasional errors (not this i think, didn't looked at logs :man_facepalming: ), I managed to download them simply by retrying.
yes, it is a known issue, use ffmpeg or direct for that
still valid? latest yt-dlp should fix random fails
closing for inactivity, if the problem persists, make sure to install latest yt-dlp and sharedown and open a new issue
Hello and thank you for Sharedown, the software is working well but I cannot download some videos.
I receive this error:
It's weird because it happens only on some videos while I don't have any problems with the others. There shouldn't be any significance difference between the videos that are working and the videos that are not.
Here the last lines of the logs.
Thank you in advance