[1275] Some YouTube videos not loading
complete
Towneh
Specific YouTube videos are not loading in VRChat on the current release version 1275
After looking at the differences between URLs that worked and those that did not, I downloaded the latest release of yt-dlp and found that the videos that do not work resulted when the following error is being thrown out when downloading the file:
yt_dlp\jsinterp.py:346: FutureWarning: Possible nested set at position 3
This was also raised as an issue on their github page at https://github.com/yt-dlp/yt-dlp/issues/5749
You can see this with the following 2 example videos:
C:\>yt-dlp -f 22 https://www.youtube.com/watch?v=Jw9m8qPBmOk
[youtube] Jw9m8qPBmOk: Downloading webpage
[youtube] Jw9m8qPBmOk: Downloading android player API JSON
yt_dlp\jsinterp.py:346: FutureWarning: Possible nested set at position 3
[info] Jw9m8qPBmOk: Downloading 1 format(s): 22
^ This results in "Invalid URL" inside VRChat on the video player.
C:\>yt-dlp -f 22 https://www.youtube.com/watch?v=P1-eW4qnyog
[youtube] P1-eW4qnyog: Downloading webpage
[youtube] P1-eW4qnyog: Downloading android player API JSON
[info] P1-eW4qnyog: Downloading 1 format(s): 22
^ This works inside VRChat and loads the video.
Log In
Fax
complete
Thanks for the report! Please let us know if this issue pops up again.
Mixieǃ
Fax: It seems like this issue is back again. Some URLs refuse to play with a variety of different videoplayers and the examples given in this post have the same results again.
Fax
Mixieǃ: Oh, that's unfortunate! Perhaps we could have some more users confirm that they're experiencing issues?
We've been receiving reports from AMD users having trouble, but that might be unrelated.
nil
Fax: I created a new ticket with more details. It's a similar issue where yt-dlp emits a warning which VRChat incorrectly interprets as failure, but it's a different warning. https://feedback.vrchat.com/bug-reports/p/1275-some-youtube-videos-not-loading-again
nil
There was a new yt-dlp built today at 17:12. This seems resolved for now at least.
Towneh
nil: Can confirm the first video example is now working without error
HOBaRT
The VRC flavor of yt-dlp is already modified/patched to remove a lot of the options, right?
May be worth throwing in an additional patch with something from this: https://docs.python.org/3/library/warnings.html
e.g.
import warnings
warnings.simplefilter("ignore")
nil
I have slightly more details on the slightly older https://feedback.vrchat.com/bug-reports/p/some-youtube-videos-cannot-be-played .
I wish PYTHONWARNINGS worked because you don't need to rebuild the executable to change environment variables, but it doesn't do anything because of the exe packer being used. VRChat needs to ignore unexpected output on stderr if the expected output is received on stdout.
ScruffyRuffles
I think this has happened before and so I believe https://docs.python.org/3/using/cmdline.html#envvar-PYTHONWARNINGS (PYTHONWARNINGS=ignore) should be used when building the executable