What is Gem's recommended video backend for Windows?
If that backend is available using msys2 (which essentially has packages for everything in mingw) then I can just add it as a build dependency and package it with the installer.
It appears that even with the latest Gem on Windows, the DS backend being used there won't load any common video files. I have the same issue, but I haven't had the time to look into it, much less a solution. There must be a way to get this working, DS is supposed to handle all those formats.
The backend that does work (at least in Gem 0.93), is Quicktime (QT), but that's tricky to build (IIRC because of licensing issues the required Windows library can't be included, and I'm pretty sure that there's no libquicktime in msys2 either). I actually had the QT backend working with 32 bit vanilla at least, using some binaries of Gem 0.93+git-something I found on the web somwhere. I think that this is what the post cited by @eeight is about.
FWIW: Here, a GEM maintainer suggested to install the K-Lite Codec Pack.
After doing so, [pix_film] was able to load MP4 (h264 encoding) with no problem in Pd-vanilla and Purr Data on Windows. (I didn't test other encodings because h264 runs the world now.)
Is this the solution? Well, I'm not sure... it worked for umlaute@github and it worked for me, and it would probably work for most users. I don't know if it's guaranteed to work on every system.
But at least it suggests that the problem isn't GEM doing something fundamentally wrong. It seems more likely that it's unable to use whatever codecs that Windows Media Player or VLC have access to.