Is it possible to make Wine use libavcodec as the default handler for media codecs? I am building from the main branch, and I managed to get an old game almost fully working: the music wouldn't play due to a missing Windows Media codec. I tried installing wmp9 with winetricks but it failed because I am using a WoW64 installation Wine prefix.
Through some analysis, I think the game is using the IBaseFilter interface of the Windows Media Source filter (documented here: https://learn.microsoft.com/en-us/windo ... rce-filter), to play the WMA files, if that helps.
Setting libavcodec as the default media codec handler
Re: Setting libavcodec as the default media codec handler
As I'm unable to edit my post, the old game in question is the original version of Monopoly Tycoon. When I built the WOW64 version of Wine, I built the 32bit version of Wine without FFMPEG, which actually helped bypass a codec (known as "MPEG-1 System Stream"), preventing the intro video, and the game from running.
Re: Setting libavcodec as the default media codec handler
Probably not. If Wine could just use ffmpeg, there would be no need to keep codec verbs around in winetricks.
Check this answer.
WoW64 is still experimental, duh. You can create a parallel 32-bit or 64-bit wineprefix by specifying the path to it with the WINEPREFIX environment variable (place it in front of every “wine” command). I use 8 and a shell script to select prefix at runtime. On the other hand, you can try opening the installer .exe with an archiver (like engrampa) and see, if you can just extract DLLs from there to your prefix. Then you’ll only have to place overrides (built-in – native) as necessary. Stuffing the prefix with ordinary codecs should probably be the first step, though (see the link above).
Sounds like you too are on a good trip to make DirectShow work. Good luck. (No, really. It’s possible.)
After installing Direct media DLLs, as described in the post by the link, pay close attention to ffdshow.ax, wmadmod and wmvdmod. Try setting them to native, if this doesn’t work – to built-in, if this doesn’t work either, then set them as disabled. In the worst case, unless your game is extremely picky, it should run with these DLLs disabled, only without videos.
Re: Setting libavcodec as the default media codec handler
I would rather use git to manage changes to one prefix, instead of several, to avoid redundant copies.
However, thanks for the suggestion to use winetricks, it seems to be the easiest solution, as opposed to debugging and deriving a patch myself, either for the game, or for Wine's multimedia libraries.
However, thanks for the suggestion to use winetricks, it seems to be the easiest solution, as opposed to debugging and deriving a patch myself, either for the game, or for Wine's multimedia libraries.
Re: Setting libavcodec as the default media codec handler
Good morning bgc.bgc wrote: ↑Fri Jul 04, 2025 1:02 am I would rather use git to manage changes to one prefix, instead of several, to avoid redundant copies.
However, thanks for the suggestion to use winetricks, it seems to be the easiest solution, as opposed to debugging and deriving a patch myself, either for the game, or for Wine's multimedia libraries.
Apologies for a non-Wine related observation.
bgc wrote: the old game in question is the original version of Monopoly Tycoon
Assuming that version you are using is Monopoly Tycoon Windows - 2001 by Deep Red Games Ltd., and your main aim is to just get the program to work, then you might want to search myabandonware.bgc wrote: it seems to be the easiest solution, as opposed to debugging and deriving a patch myself, either for the game, or for Wine's multimedia libraries
Apparently some Windows users created a number of patches and fixes to get it to work under recent Windows - those might fix your issues running it under Wine.
Patch v1.4, Music Fix Installer v1.6, NoCD For version 1.4