-
Notifications
You must be signed in to change notification settings - Fork 69
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
Missing decoders for Media Foundation #692
Missing decoders for Media Foundation #692
Comments
For the sake of clarity - cutscenes for Unravel (1225560) are stored as DivX/AAC files in a game folder. With the latest Proton-GE cutscene playback works in native Steam but not in Flatpak Steam. The same goes for Blair Witch (1092660). Replacing these video files with a copy reencoded to a royalty free format such as VP8 or VP9 with the same name and extension as the originals results in working cutscenes in Flatpak Steam. No such conversion is needed in native Steam. |
Do you have |
I had already tried. Same problem. It is easy to reproduce if you happen to have any Media Foundation-based game. |
Well, I have only one wmf-based game - Thronebreaker from GOG. It doesn't work with current Proton, but works with Proton-Exp (both flatpak). Didn't test with Proton-GE. |
Attached is the relevant log. This is the placeholder I see instead of the actual video. |
Just tested Blair WItch. Videos work for me with Proton-GE, but don't with Proton and Proton-Exp. Strangely enough, I don't see the color bar, just black screen. |
@gasinvein, in Blair Witch (1092660) with Proton 5.13-4 I only see a black screen, but with Proton-GE 5.21-GE-1 I see the color bar. |
@gasinvein, do you see the cutscenes in Blair Witch with Proton-GE 5.21-GE-1 without reencoding the video files? |
@dariox86 Yes, didn't touch game files. For clarity, I've used current flatpak build of Proton-GE. |
Weird... this is the list of packages I have installed. Am I missing something?
|
No, everything seems in place. Weird indeed. Did you try clearing compatdata for the game? It also contains gstreamer cache. |
I deleted and reinstalled Steam for Flatpak multiple times, sometimes I have reinstalled the whole operating system. |
@dariox86 Can you please try disabling shader cache in Steam settings and retry Blair Witch with Proton-GE flatpak? |
Unbelievable... it works! Re-enabling shader caching again I see the color bars! |
Well, here are my findings (may be inaccurate):
So, we have two issues here: media-converter doesn't work (and prevents fallback to other gstreamer plugins) and some codecs are missing from the runtime ffmpeg extension. |
I have read discussions about not including patent-encumbered decoders in org.freedesktop.Platform.ffmpeg-full, but I am not knowledgeable enough to understand the inner workings of Flatpak packages. |
Ironically Unravel (1225560) does not work with shader caching disabled. It goes ingame and keeps loading forever. I did not try running from a clean wineprefix though. @gasinvein, how do you use Proton-Experimental? Have you installed it from within Steam itself? |
|
Thank you. |
Well, Unravel (1225560) does work with shader caching disabled, but only when launching with Proton Experimental 5.13-20210107. Moreover, the problem with red component color lacking is fixed with the experimental version. |
@dariox86 We're still missing some ffmpeg codecs. Can you please again launch with |
@gasinvein, sure. I am not home at the moment. I will get to you later. |
Here it is. Working cutscenes with wrong colors. |
@dariox86 Ah, sorry, I've misread your previous comment. Actually I needed log from Proton Experimental, not GE. |
Unravel (1225560) launched with Proton Experimental 5.13-20210107 and shader caching enabled: as opposed to my previous test, color bars again. Same Proton version, shader caching disabled: cutscene playback working (with proper colors). Both tries in the log. |
@dariox86 thanks.
^ this might be the reason for the wrong colors. Also seems like a ffmpeg-related issue to me. Looks like we'll need to bundle it with steam flatpak (again). |
Well, in the same log the game was launched twice. The first test has wrong colors, but the second one has proper colors. From my limited knowledge, it appears to me that this same message is present even when colors are right in the second test. I don't know if the problem with the colors is related to Flatpak because it is the Proton version that makes a difference here. You know, even when cutscenes are not working and the color bar shows up instead, with Proton versions other than the latest experimental build the colors are wrong with the color bar, too. |
@gasinvein so does it seem to you that we're still missing some codecs from ffmpeg-full? |
@nanonyme I'm pretty sure we do, but not sure which ones. Looks like something around aac and/or quicktime (or divx). |
Hello, I've just tried disabling the shaders cache and it seems to fix the issue (at least in the main menu, I haven't tried starting a game yet). |
@terzag try disabling shader cache. |
Yeah, I've tried to disable the shader cache and it fixed the issue, you might have seen my message before I tried and edited it. :) |
@gasinvein that doesn't sound overly great if the assumption is moving mostly to official Proton once the sub-sandboxing becomes supported everywhere. |
@nanonyme I still don't completely understand how their media-converter gstreamer plugin works, and not sure if it's expected to work for all games. For example, for me it works for Age of Empires II and Soulcalibur VI, but not for Blair Witch (in official Proton). |
@gasinvein, I am migrating my system to a new file system. It will take some time and I can't launch Steam at the moment. I will keep you updated. |
Sorry, I am very late. For the record, yes, now I think this is fixed. Even though I didn't test it thoroughly, Unravel (1225560) and Blair WItch (1092660) seem to work out of the box with cutscenes and shader pre-caching enabled under Proton-GE. At the moment, some restricted codecs only work on Proton-GE. Thank you! |
Game information
Unravel (1225560)
Blair WItch (1092660)
Distribution name and version where applicable
Parabola GNU/Linux-libre x86-64 (rolling release)
Flatpak info
Flatpak 1.9.2
default
host
Problem description
Recent work in Proton made many cutscenes working in games using Media Foundation. In Steam for Flatpak with Proton-GE 5.21-GE-1, playback for such cutscenes is not working. When cutscenes are supposed to be shown, a color bar is shown instead. If the videos in the game folder are converted to a royalty free format such as VP9, cutscenes work. For example as a workaround for Unravel (1225560), open $HOME/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Unravel/D3D11/V and convert all the video files to VP9 with a line such as:
$ ffmpeg -i [input file] -c:v libvpx-vp9 -crf 30 -b:v 0 [output file].webm
. Then delete the original files and the .webm extension from the converted files and launch the game with Proton-GE 5.21-GE-1.I am unsure whether the issue is related to Flatpak Steam or Flatpak Proton-GE.
I have attached two logs. One was taken with the unmodified game and the other one with the video files converted to VP9.
Does this issue reproduce with native Steam
This issue is not reproducible with native Steam. In native Steam cutscenes for these games work out of the box with Proton-GE 5.21-GE-1.
logs.zip
The text was updated successfully, but these errors were encountered: