-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mfplat : sample size to small when decoding WMV3/NV12 #253
Comments
The new changes from a few hours ago broke wmv playback (only audio might play depending on vomstyle or if you wait a few seconds), now neither -vomstyle=overlay nor your patch fix the issue anymore. h264/mpeg still works fine though |
This applied on latest bleeding-edge helps. https://gitlab.winehq.org/wine/wine/-/merge_requests/6536 Specifically, 9d08b87, for when they force-push and the commit is lost. |
Patch to fix a regression for applications which use WMA Lossless audio in wine 9.13+ (and valve bleeding-edge since Sep 6 rebase) caused by https://gitlab.winehq.org/wine/wine/-/merge_requests/5805
|
Hello @layercak3, at a glance, that looks like something to send upstream and then request it get cherry picked for Proton after the merge request is accepted upstream. |
Just documenting it for now, when I have some time in the future to look at this again and a dev hasn't fixed it by then I will probably file a wine bug. |
Patch by Attila Fidan. Fixes: 9192b3b Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57294 (cherry picked from commit 1a4c5850772d09d2e02f3beedf49e79a40f6d584) Link: #253
Patch by Attila Fidan. Fixes: 9192b3b Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57294 (cherry picked from commit 1a4c585) Link: ValveSoftware/wine#253
As mentioned in Open-Wine-Components/umu-protonfixes#82 (comment), there's been progress on video playback in KiriKiri-powered visual novels when using a full gstreamer and no mediaconverter. This engine has 4 video playback method : overlay, layer, mixer and media foundation. Only overlay works, so I tried to make the others work because some games don't allow the user to choose.
When debugging MF and Mixer, I had these errors using GE9-12 :
wg_transform.c:714:copy_video_buffer: Output buffer is too small : 921600 < 1382400.
912600 is the computed sample size for a MFVideoFormat_NV12 1280x720 video, so 8bpp. And 1382400 is the same but with 12bpp, which seems to be what gst/quartz are reporting/using.
Naively, I changed mf_get_stride_for_format() to compute the stride using bit per pixel instead of byte per pixel and to my surprise it fixes the issue (minus some flashing frames as the beginning of playback). I'm not really sure why NV12 would be 8bpp but after some googling I'm even more confused so...
PS: only applies without mediaconverter : with it theses games don't have video playback at all even though some of them are Deck Verified (like 1230140) and have a transcoded_video.foz. Fixing this issue would at least allow them to work more easily with downstream Proton forks.
Logs : steam-1230140.log
The text was updated successfully, but these errors were encountered: