[Help] Gstreamer won't load videos for non-Steam games in the standalone Runtime container unless I set `STEAMVIDEOTOKEN`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- linux, shell
- Lĩnh vực
- devops, operating-systems
Hướng nghiên cứu
Bắt đầu với docs/slr-for-game-developers.md và phần thiết lập môi trường của g_session.init_session trong script Proton. Truy vết nơi STEAMVIDEOTOKEN được sử dụng và cách Steam client cung cấp nó, sau đó ghi lại thiết lập standalone-runtime được hỗ trợ và xác minh rằng GStreamer có thể tải plugin Opus mà không cần Steam client.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello, first I acknowledge this isn't an issue, just a help request given how niche it is.
Please feel free to close this any time.
I migrated to Linux some recent years ago and started to dig my way through making everything standalone whenever I gain new knowledge, the relevant part is that I want to run my non-Steam games using the steam container runtime but without the full Steam client.
I don't know how to set ths env var STEAMVIDEOTOKEN, and its actual value is some random number + a UID, and there seems to be no docs for it, so I wanted to ask how should I set this?
The long story is that I've been using the non-Steam games feature of the store for quite some time now, but I stumbled upon this magnificent dev guide Launching non-Steam games in a Steam Linux Runtime container which does exactly what I really needed for a long time since all other online stores are really bad on Linux and without official support.
I noticed that all in-game videos are playing the fallback RGB-test video, and GStreamer log always shows failure loading opus plugin
0:00:00.007230065 71603 0xcda8d4f0 WARN WINE unixlib.c:124:find_element_factories: Failed to find any element factory matching type 64x, caps audio/x-opus, layout=(string)interleaved, rate=(int)48000, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, codec_data=(buffer)4f707573486561640102380180bb0000000000, channel-mapping-family=(int)0, block_align=(int)0, depth=(int)0, bitrate=(int)0 / audio/x-opus, parsed=(boolean)true.
But if I run the same non-Steam game inside the Steam client all videos work.
To debug this, first I spawned a shell inside the container
PRESSURE_VESSEL_SHELL=instead %command%
And tried to mimic what proton does manually by prepending ubuntu12_32/video/ and Proton 11.0/files/lib/i386-linux-gnu/ dir to LD_LIBRARY_PATH and ran something this to make sure the .so files will load
ldd '<PROTON_PATH>/files/lib/i386-linux-gnu/gstreamer-1.0/libgstopus.so' | grep -i found
This works fine and to confirm it, I removed the LD_LIBRARY_PATH override and got some failure, so next I dumped all env vars to compare them against my bare environemnt
And also modified proton script to dump all env vars before spawning wine
...
g_session.init_session(sys.argv[1] != "runinprefix")
# custom code BEGIN
with open('/home/myuser/Desktop/py-proton.json', 'w', encoding='utf-8') as fff:
fff.write(json.dumps(g_session.env, indent=2, sort_keys=True, ensure_ascii=False))
# custom code END
#determine mode
rc = 0
if sys.argv[1] == "run":
...
And what I discovered eventually is that this env var STEAMVIDEOTOKEN is what makes the ffmpeg plugins which live in ~/.steam/steam/ubuntu12_*/video/ load properly and finally the videos work without the Steam client.
Adding a dummy value to this env var doesn't work and I can't find any dev docs for it.
Any guidance would be appreciated.
- Ngôn ngữ chính
- Shell
- Star
- 1.5k
- Fork
- 98
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ValveSoftware/steam-runtime
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
ValveSoftware/steam-runtime#876 ·
-
Runtime 4 on AArch64: diagnostic for loaded libraries in the first bubblewrap prerequisite childĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
ValveSoftware/steam-runtime#875 ·
-
Pressure Vessel
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ValveSoftware/steam-runtime#873 · 4 bình luận ·
-
A Vulkan game fails to render when Steam uses the integrated GPU and the game uses the dedicated GPUĐang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 42/100
ValveSoftware/steam-runtime#872 · 25 bình luận ·
-
Nov 12th Steam Update Breaks Compatibility with any game that uses a dedicated GPU on Linux.Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
ValveSoftware/steam-runtime#871 · 13 bình luận ·
Tất cả issue của ValveSoftware/steam-runtime
Issue tương tự
-
CI repository variables is redĐang mởarea: build-and-ci guard-red-main S3: minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
manaflow-ai/cmux#65616 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
achisolomon/software-factory#300 · 1 bình luận ·
-
Bump runtime to 26.08Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
flathub/cc.arduino.IDE2#168 ·
-
documentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
oscarbol09/solwatch#28 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
difficulty:easy func:buildsystem prio:low type:task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
NatronGitHub/Natron#2070 ·
Maintainer thường phản hồi trong vòng 1 ngày