protonscr

winegstreamer wg_transform: FMVs black (0 frames) — MFT output-type renegotiation not honored, no videoscale in decode pipeline (Phantom Blade Zero, 4115450)

wineclosed
ValveSoftware/wine#376 · opened 2026-10-31 by abcfy2 · updated 2026-11-05 · 1 comments · github
Aabcfy2 2026-10-31 github

Environment

  • Proton Experimental (experimental-11.0-20261027b, bundled gst 1.22.5) — broken
  • Proton 11.0-2 — broken (different failure stage)
  • Proton-CachyOS 11.0-20261015-slr (bundled gst 1.28.2) — works
  • GPU: AMD RX 580 2048SP (RADV POLARIS10), Mesa 26.x; CachyOS, kernel 7.3.0-4-cachyos
  • Game: Phantom Blade Zero (Steam AppID 4115450, UE5/D3D12 SM6). All pre-rendered FMVs (menu background, cutscenes) play as black screen with audio + subtitles. In-engine cinematics are fine, gameplay is unaffected.
  • Game-level symptom reports: ValveSoftware/Proton#10327, GloriousEggroll/proton-ge-custom#903

Mechanism (from GST_DEBUG=WINE:9 + mfplat traces)

The game creates an MFT transform with input video/x-h264, stream-format=byte-stream and sets an output type of NV12 1920x1080. The actual movie assets are 3840x1600@30 H.264 High Profile. After h264parse parses the SPS, the game calls SetOutputType again with the native size — a correct dynamic renegotiation, same as what native WMF accepts on Windows:

WINE wg_transform.c:988:wg_transform_set_output_type: output caps
  video/x-raw, format=(string)NV12, width=(int)3840, height=(int)1600,
  pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30000/1001

Proton 11.0-2: renegotiation not honored, pipeline has no scaler

wine builds h264parse → wgstepper → avdec_h264 → videoconvert → capsfilter(NV12 1920x1080) and keeps enforcing the stale 1920x1080 type. videoconvert only converts color formats, there is no videoscale, so the 3840x1600 decoder output never passes the capsfilter:

  • WINE wg_transform.c:1458: Cannot read 3110400 bytes, no output available × 12146 (3110400 = 1920*1080*1.5)
  • the game-side output buffer is allocated (3110400 bytes) but never filled (SetCurrentLength 3110400 = 0)
  • after ~14 s the fifo is flushed and the transform is torn down. Zero frames ever delivered. The output request stays 1920x1080 even when the game window is 1920x800.

Proton Experimental: earlier stage of the same subsystem

wg_media_type.c:544:caps_from_media_type emits bare video/x-h264,stream-format=byte-stream without width/height/framerate, so avdec_h264 refuses caps outright (gstvideodecoder.c:934: Subclass refused caps, repeated) and no pipeline ever links.

Proton-CachyOS 11.0-20261015: works — it honors the renegotiation

wg_transform_set_output_type (wg_transform.c:988) accepts the new native output type NV12 3840x1600 and the pipeline is rebuilt; the buffer pool then allocates 9216000-byte buffers (3840*1600*1.5) and native frames are delivered. No videoscale involved — it succeeds because the output type is renegotiated to the stream's native size, not because anything scales. ~300 frames delivered on the first menu loop (~10 s × 29.97 fps), matching the visually working menu background.

Audio goes through a separate pipeline and works on all three, hence "black screen with sound and subtitles".

On Windows this works because native WMF honors the output-type change / inserts a video processor; the game's request is legal and the game never does its own scaling of decoded frames.

Suggested fix

In wg_transform, either honor a SetOutputType that matches the stream's native size (as the CachyOS tree does), or insert videoconvertscale between the decoder and the output caps whenever the requested output size differs from the native size. As-is, any asset whose native size differs from the MFT output type is unplayable.

Full GST_DEBUG=WINE:9 + WINEDEBUG mfplat/quartz logs for all three builds available on request.

Kkisak-valve maintainer 2026-10-31 github

Hello @abcfy2, we're tracking issues with games run with Proton in the Proton issue tracker. Also, we're using one issue report per unofficially supported game title, so I've gone ahead and transferred this issue report to https://github.com/ValveSoftware/Proton/issues/10327#issuecomment-6546311861.

Proton versions

Launch options

Upstream links