Media Textures won't display video in Preview 1 while using DirectX 12

I might have encountered a bug, or I’m missing something obvious.

None of my videos will display an image in Preview 1 if I have DirectX 12 enabled. They display black in the Media Player Editor and White when assigned to a material.

Switching the project over to DirectX 11 makes them display the video correctly.
Videos work as expected in Early Access with DirectX 12.

I’ve tried to debug this with blank projects in both Preview 1 and Early Access while following every step of this tutorial: Play a Video File | Unreal Engine 4.27 Documentation

Could I be missing something, or is this a bug? Have anyone else experienced this?

9 Likes

i get this error for every MP4 File:
LogWmfMedia: Error: Tracks 00000AB558F3AA10: Format is not supported in D3D12.

The only Codec working for me are Webm but its limited to playrates 0 or 1 … i need a dynamic playrate so ive to wait for 5.0.1 or 5.1 i guess :confused:

Looks like the WMF Stuff is broken in DX12 …

2 Likes

I’m getting the same error trying to play a mp4 h264 video. When I open the media player give me the error;
LogWmfMedia: Error: Tracks 000004FB3EE48710: Format is not supported in D3D12.

1 Like

The same happens to me. preview 2.

Electra Player is working in Preview2 with MP4 but supports only playrates 0 and 1.
No workaround to time for full dynamic playing MP4 Files like in UE4 with the WMF Plugin.

Same issue here. Rolling back to DX11 seems to do the trick but we want DX12 :frowning:
Can’t use my webcam stream with DX12, really frustrating for a release.

This is still a problem is full release. Media Player only works with DX11. Too bad all my Nanite meshes break as soon as I switch the DefaultRHI.

Also hit this issue - Needing nanite and media player in the same project but one needs dx11 the other dx12

1 Like

on official release now - if I use new image media source with a png image sequence, media player is working correctly. all other video formats are not.

Great to see that I’m not the only one with this issue. Vulkan is also working instead of DirectX. Please update so we can enjoy DX12 :frowning:

Ah, thanks for the workaround guys, at least for now until it being fixed.

Any update? Did anyone find a way to make it work?

1 Like

This is now an official bug:
UE-148398 on the Issues Tracker

2 Likes

Unfortunately nothing works on my end despite commentary on UE-148398.

Electra plugin, webm plugin, etc… all show:

Format is not supported in D3D12.

Edit:
Switching to Vulkan via Project Settings > Platforms > Default RHI

is a solution as @sylvqin_1 mentioned above.

have u set the electra player as default video encoder in the media player ?

1 Like

I created a new project with Electra by default, and it works perfectly on DX12 if I don’t play any mp4 with Wmf before playing with Electra. Thanks so much for the workaround!

THx man. It`s alive (C)

hi all,
i still can’t play video capture device with DX12 even with Electra.
any solution for this issue please?

1 Like

How to make electra a default player plz? And will the webcam/capture card work?

Electra Player as default:
media player → playback options → decoder then the codec u want.

i dont know if capture devices work … Electra Player is only an “decoder” for Movie-Files.

More infos here: https://docs.unrealengine.com/4.27/en-US/WorkingWithMedia/IntegratingMedia/MediaFramework/TechReference/

2 Likes