-
-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Videos do not download (or do not show up properly in UI) when CRAWLER_VIDEO_DOWNLOAD_MAX_SIZE set to -1 #778
Comments
Workaround is setting it to a very high number that will likely never be reached, like 9999999999999. Effectively the same as having no limit. |
works fine for me, have you tried other browsers to see if maybe Safari does not support the video format? |
It appears to work in Brave (i.e. Chrome) but Hoarder must be doing something different with the video (aside from the compression I assume) when set to -1 since using any other value besides -1 (even an arbitrarily large value like 9999999999999) makes it playable in Safari. |
hoarder merely passes this parameter to yt-dlp, which then chooses which file to download. |
Looks like with -1 set it's downloading it AV1 format. Perhaps that's the original Youtube is serving up and with any other value passed it's converting to MP4. In either case AV1 is relatively new and not widely supported yet which probably explains playback problems in Safari. Video format with Video format with Video format with This kind of issue may be solved by proxy if #775 were to implement different options to control the resolution, format, etc. Hoarder could be set to give consistent formats so these kinds of inconsistencies are avoided. |
Yeah, i don't think it makes sense to track this separately and should be fixed as part of #775. |
Closing in favour of #775 |
Describe the Bug
When
CRAWLER_VIDEO_DOWNLOAD_MAX_SIZE
is set to -1 the videos downloaded from youtube (for example this one) don't work. I get the following instead of a playable video...Screen.Recording.2024-12-27.at.5.48.30.PM.mov
When setting
CRAWLER_VIDEO_DOWNLOAD_MAX_SIZE
back to another value like 1000 it works. Default value (i.e. not including the env var) also works.Steps to Reproduce
CRAWLER_VIDEO_DOWNLOAD_MAX_SIZE
to-1
Expected Behaviour
Video is playable
Screenshots or Additional Context
Log entries from successful download (CRAWLER_VIDEO_DOWNLOAD_MAX_SIZE set to 1000)
Log when set to -1
Device Details
Safari 17.6 on macOS
Exact Hoarder Version
v0.20.0
The text was updated successfully, but these errors were encountered: