HELP: video players only playing the first few seconds of a video then stoping

Iv’e been encountering an issue on vrc for the past few days that iv’e never gotten after years of playing:
when i load a video in any world on desktop and pcvr the video will take 30-60s to load play the first 15s then take 2-6 minutes to play the rest of the video, if the video load up at all.
It happens in any world, may be related to the fact i just updated my windows instal a few days ago.

Could anyobdy help

BTW sorry for any error in my writing as i am not a native english speaker nor writer

Update :
if you found this on google this guy could help

but personaly i found where my problem is and it’s not vrc related but yt-dlp and FUCKING WINDOWS

check-formats hang with NON-writable working directory #7894” if you wana see for yourself who is actualy related to a 2014 (still not patched) bug in python if you are having this issue too, good luck i guess

Also here is the logs that lead me to that conclusion with a few google searches:

2025.01.01 14:39:11 Log        -  [Video Playback] Attempting to resolve URL 'https://www.youtube.com/watch?v=OZ9b_psvEC8'


2025.01.01 14:39:11 Log        -  NativeProcess.Start: started process id [20536]: C:/Users/nono/AppData/LocalLow/VRChat/VRChat\Tools/yt-dlp.exe (...)


2025.01.01 14:39:11 Log        -  NativeProcess.HasExited: process exited with code 4294967295, took 87 ms. Command line: C:/Users/nono/AppData/LocalLow/VRChat/VRChat\Tools/yt-dlp.exe (...)


2025.01.01 14:39:11 Error      -  [Video Playback] [PYI-19516:ERROR] Could not create temporary directory!


2025.01.01 14:39:11 Log        -  [Video Playback] URL 'https://www.youtube.com/watch?v=OZ9b_psvEC8' resolved to 'https://www.youtube.com/watch?v=OZ9b_psvEC8'


2025.01.01 14:39:12 Error      -  [USharpVideo] Video player error when trying to load https://www.youtube.com/watch?v=OZ9b_psvEC8


2025.01.01 14:39:12 Log        -  [Behaviour] Skipping registration of a video player on 'Internals' with the VideoPlayerOverseer as automatic resync is disabled.


2025.01.01 14:39:17 Error      -  [USharpVideo] Video 'https://www.youtube.com/watch?v=OZ9b_psvEC8' failed to play with error Unknown


2025.01.01 14:39:17 Error      -  [USharpVideo] Maximum number of retries for playlist video looping hit. Stopping playlist playback.


2025.01.01 14:39:22 Warning    -  [Always] API websocket connection attempt failed (timeout=True), retrying in a bit...


i got an invite here lol


2025.01.01 14:39:54 Log        -  [Always] Websockets API connected successfully!


2025.01.01 14:39:54 Log        -  [Always] Websockets API lost connection: Socket closed

2025.01.01 14:39:11 Error - [Video Playback] [PYI-19516:ERROR] Could not create temporary directory!

Huh, so it doesn’t say what it’s trying to create? I notice that also the comments on those github pages don’t mention anything.

Maybe open up the Command Prompt and type in “set” as a command. I have a vague recollection where someone had a variable that referenced like C:\Windows\Temp

Should be like
TEMP=C:\Users\nono\AppData\Local\Temp
TMP=C:\Users\nono\AppData\Local\Temp

According to a very quick test in python 3.7.9, because that opened when I typed python in the command prompt, tempfile is going to look at the TEMP environment variable.

import tempfile
BALLSACK=tempfile.TemporaryDirectory(prefix=‘yt_dlp’)
print(BALLSACK)

These instructions for changing environment variables seem reasonable. However I haven’t read them closely enough to verify that they suggest changing things and then restarting windows :wink:

thank you for trying to help but those evironment path were already there, as i can too(error on both of our parts) read on my own post the video can load after a good 5 minutes, i have ~500mb down and up so internet may not be the issue

update : i seem to have more vrc only issues like it takes me 30-60s to join a friend or launch any menus

update:
i keep getting those websockets error i never got before even not playing videos , i also can’t upload anything on the sdk



2025.01.01 23:22:56 Warning    -  [Always] Not connected to websocket, requesting manual friends data refresh


2025.01.01 23:22:58 Warning    -  [Always] Not connected to websocket, requesting manual friends data refresh


2025.01.01 23:22:58 Warning    -  [Always] Not connected to websocket, requesting manual friends data refresh


2025.01.01 23:22:58 Warning    -  [Always] Not connected to websocket, requesting manual friends data refresh


I was mainly suggesting check for a variable referencing C:\windows\temp

Luckily your yt-dlp and VRChat connectivity problems are disconnected from each other. yt-dlp talks to youtube, not VRChat.

But I suppose network issues with VRChat are more important than watching YouTube or twitch.

1 Like