http://bugs.winehq.org/show_bug.cgi?id=15934
Summary: Can't see Worms 2 intro films as they play Product: Wine Version: 1.0.1 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: winmm&mci AssignedTo: wine-bugs@winehq.org ReportedBy: deriziotis@gmail.com
The introduction films to Worms 2 play but you can't see the videos.
You can only hear the audio and when they finish it goes into the game as normal.
Without any debugging set a fixme line is outputted to the console when each video starts:
fixme:mciavi:MCIAVI_mciPlay Unsupported flag 02000003 fixme:mciavi:MCIAVI_mciPlay Unsupported flag 02000003
http://bugs.winehq.org/show_bug.cgi?id=15934
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|winmm&mci |-unknown
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2008-11-06 10:51:52 --- FIXME doesn't mean it's a bug in winmm/mci.
http://bugs.winehq.org/show_bug.cgi?id=15934
Tom Lloyd napalmllama@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |napalmllama@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15934
kapta ulo_kapta@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ulo_kapta@hotmail.com
--- Comment #2 from kapta ulo_kapta@hotmail.com 2009-05-09 00:05:31 --- i believe this is a duplicate of Bug 4256 which has been fixed.
http://bugs.winehq.org/show_bug.cgi?id=15934
--- Comment #3 from Tom Lloyd napalmllama@gmail.com 2009-05-09 07:32:58 --- No, it isn't. See comment 13 of that bug.
http://bugs.winehq.org/show_bug.cgi?id=15934
Denilson F. de Sá denilsonsa@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |denilsonsa@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15934
--- Comment #4 from Austin English austinenglish@gmail.com 2010-09-07 13:31:12 CDT --- Is this still an issue in current (1.3.2 or newer) wine? Does native quartz help?
http://bugs.winehq.org/show_bug.cgi?id=15934
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |00cpxxx@gmail.com Ever Confirmed|0 |1
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com 2012-05-14 18:51:39 CDT --- Still present in wine 1.5.4. Same originally reported error:
fixme:mciavi:MCIAVI_mciPlay Unsupported flag 02000003
http://bugs.winehq.org/show_bug.cgi?id=15934
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com 2013-02-16 23:56:40 CST --- Still in wine 1.5.24
fixme:mci:MCI_Break (0100) vkey 001B stub fixme:mciavi:MCIAVI_mciPlay Unsupported flag 02000003
http://bugs.winehq.org/show_bug.cgi?id=15934
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2013-02-17 00:19:29 CST --- Created attachment 43590 --> http://bugs.winehq.org/attachment.cgi?id=43590 +mci of the first video seconds
http://bugs.winehq.org/show_bug.cgi?id=15934
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle@users.sourceforge.ne | |t
--- Comment #8 from Jörg Höhle hoehle@users.sourceforge.net 2013-02-18 08:01:03 CST --- Your attachment shows
trace:mciavi:MCIAVI_GetInfoVideo ash.fccHandler='KMVC' trace:mciavi:MCIAVI_OpenVideo fcc KMVC
This is Karl Morton's Video Codec, "KMVC is used on various Worms PC games." says http://wiki.multimedia.cx/index.php?title=KMVC Wine does not find or use this codec, so the screen remains black.
One would expect Worms to install and register its non-standard ICC/VFW codecs. So you should start looking for an installer or ICC/VFW bug. An installer should leave something in c:\windows\system.ini[drivers32] or in the registry HKLM\Software\Microsoft\Windows NT\CurrentVersion\Drivers32. However, there's also the possibility of a driver registered at run-time, without creating such entries. The main VFW debug channel is +msvideo.
http://bugs.winehq.org/show_bug.cgi?id=15934
--- Comment #9 from Bruno Jesus 00cpxxx@gmail.com 2013-02-18 16:14:19 CST --- Created attachment 43620 --> http://bugs.winehq.org/attachment.cgi?id=43620 +mciavi,+mci,+msvideo,+loaddll,+winmm
Jörg, please take a look at this log.
It's important to remember that prior to the video playing there is a .wav sound being played: trace:winmm:proc_PlaySound SoundName=L"sounds\0.wav" !
+loaddll is used to prove that the video dll codec is beind loaded: trace:loaddll:load_native_dll Loaded L"C:\windows\system32\KMVIDC32.DLL" at 0x7f840000: native
The video path is: trace:mci:MCI_Open lpstrElementName=L"\autorun\video\intro.avi"
http://bugs.winehq.org/show_bug.cgi?id=15934
lizhenbo litimetal@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |litimetal@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15934
--- Comment #10 from Bruno Jesus 00cpxxx@gmail.com 2013-02-20 18:10:30 CST --- Created attachment 43661 --> http://bugs.winehq.org/attachment.cgi?id=43661 hack to make movies play
After talking to Jörg I started looking for the code that actually paints the video frames in the screen because there is nothing wrong with the video decoding. I was lucky enough that the function is called MCIAVI_PaintFrame. So I hacked the hDC that is used and now the movie is played in the desktop, over everything (but with very weird colors) - see the patch.
Question: What could happen for the hDC used by Worms to no show? It's non-zero for sure. How can I tell if it's valid?
http://bugs.winehq.org/show_bug.cgi?id=15934
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
http://bugs.winehq.org/show_bug.cgi?id=15934
--- Comment #11 from Henri Verbeet hverbeet@gmail.com 2013-02-21 08:31:13 CST --- (In reply to comment #10)
Question: What could happen for the hDC used by Worms to no show? It's non-zero for sure. How can I tell if it's valid?
There are probably a number of things that could go wrong there, but for a start you'll probably want to check where you're getting hWndPaint from, if that's a valid window, if it's visible, etc. Also, does this use ddraw?
https://bugs.winehq.org/show_bug.cgi?id=15934
--- Comment #12 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Henri Verbeet from comment #11)
There are probably a number of things that could go wrong there, but for a start you'll probably want to check where you're getting hWndPaint from, if that's a valid window, if it's visible, etc. Also, does this use ddraw?
The window is indeed invisible without the WS_VISIBLE style, so I did a ShowWindow and checked with IsWindowVisible, the return is always 0 because it hits the code:
3078 if (list[0]) 3079 { 3080 for (i = 0; list[i+1]; i++) 3081 if (!(GetWindowLongW( list[i], GWL_STYLE ) & WS_VISIBLE)) break ; 3082 retval = !list[i+1] && (list[i] == GetDesktopWindow()); /* top message window isn't visible */ 3083 }
Line 3082 makes retval = 0. So even after ShowWindow the window is still hidden somehow. I don't know what else I could do to go further.
I don't know if it uses ddraw, the game itself works perfectly. Only the videos don't play.
https://bugs.winehq.org/show_bug.cgi?id=15934
--- Comment #13 from Bruno Jesus 00cpxxx@gmail.com --- I guess the problem is most likely the missing MCI_MCIAVI_PLAY_FULLSCREEN flag support.
https://bugs.winehq.org/show_bug.cgi?id=15934
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #43661|0 |1 is obsolete| |
--- Comment #14 from Bruno Jesus 00cpxxx@gmail.com --- Created attachment 52209 --> https://bugs.winehq.org/attachment.cgi?id=52209 better hack to support fullscreen display
The problem is indeed the missing of the fullscreen flag support, the game passes a window that is hidden to mci and mci does try to show the window but it's parent is also hidden so it fails.
The attached patch is a proof of concept that makes the videos playable but not stretched to fullscreen nor centered.
https://bugs.winehq.org/show_bug.cgi?id=15934
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Can't see Worms 2 intro |Can't see Worms 2 intro |films as they play |films as they play | |(mciavi32 missing support | |to | |MCI_MCIAVI_PLAY_FULLSCREEN)
https://bugs.winehq.org/show_bug.cgi?id=15934
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |winmm&mci
https://bugs.winehq.org/show_bug.cgi?id=15934
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #15 from joaopa jeremielapuree@yahoo.fr --- Still a bug in current wine?
https://bugs.winehq.org/show_bug.cgi?id=15934
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #16 from winetest@luukku.com --- (In reply to joaopa from comment #15)
Still a bug in current wine?
yes
https://bugs.winehq.org/show_bug.cgi?id=15934
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/mciavi32-fullscr | |een_support Status|NEW |STAGED
https://bugs.winehq.org/show_bug.cgi?id=15934
--- Comment #17 from Mathew Hodson mathew.hodson@gmail.com --- Patch committed with https://source.winehq.org/git/wine.git/commitdiff/08af837a8c3732da2053d600a0...
https://bugs.winehq.org/show_bug.cgi?id=15934
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Fixed by SHA1| |08af837a8c3732da2053d600a05 | |8b3e17075df43 Resolution|--- |FIXED
--- Comment #18 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Mathew Hodson from comment #17)
Patch committed with https://source.winehq.org/git/wine.git/commitdiff/ 08af837a8c3732da2053d600a058b3e17075df43
Hopefully fixed.
https://bugs.winehq.org/show_bug.cgi?id=15934
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |minor
https://bugs.winehq.org/show_bug.cgi?id=15934
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #19 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.7.
https://bugs.winehq.org/show_bug.cgi?id=15934
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.x
https://bugs.winehq.org/show_bug.cgi?id=15934
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.x |---
--- Comment #20 from Michael Stefaniuc mstefani@winehq.org --- Removing the 4.0.x milestone from bug fixes included in 4.0.2.