Hey. From the screenshot, it looks like you’re in a WSL workspace landing-page [WSL: UBUNTU], and the error “An error occurred while loading the video file” usually means Chromium or Electron can’t decode that specific codec, or the webview has an issue loading the resource via WSL.
If it’s H.265/HEVC, VP9, or something unusual, the built-in video preview won’t play it. You’ll need to re-encode to H.264 + AAC.
Copy the file to a local Windows folder, for example C:\Users\<you>\Desktop\test.mp4, and open it in a normal Cursor window without WSL. If it still doesn’t play, it’s the codec. If it plays, it’s likely WSL remote streaming.
Does the file open in Windows Media Player or VLC?
Send the results here and I can tell more clearly if this is a bug or a codec limitation.
It does open in windows yes but takes too long to open. The video is also playable as I recorded it myself with OBS. I also copied the video from windows to wsl ubuntu and it opened. Previusly I dragged it what is why it didn’t open. The thing is on both systems it takes too long to open. Also when trying to play the video the editor slows down
Got it, thanks for the details. Drag and drop not working in WSL is a known quirk with path routing between the Windows and WSL filesystems, so copying the file or opening it via Explorer in WSL is more reliable.
About the slow opening, the video preview in the editor runs through a webview (HTML5 <video>), and the file is loaded via a special resource protocol. For large videos or when using WSL, this can be noticeably slower, especially if the file is on the Windows side (/mnt/c/...) and is being read from the Linux environment. Cross-filesystem I/O in WSL2 can be significantly slower.
To figure out if this is expected or if there’s something we can fix, please share:
Where the file is located, in WSL ext4 (~/...) or on the Windows side (/mnt/c/...)
If the file is large (hundreds of MB) or uses a heavy codec (H.265, high bitrate), webview preview can genuinely lag. That’s an Electron and Chromium limitation, not Cursor-specific. In those cases it’s often faster to open the video in an external player like VLC or MPV.