这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@robertkirkman
Copy link
Member

@robertkirkman robertkirkman commented Sep 22, 2025

Copy link
Member

@TomJo2000 TomJo2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user in the associated issue mentioned wanting to use GSLS support.
As far as I am aware libplacebo alone doesn't enable this and it also requires gslslang.

@robertkirkman
Copy link
Member Author

The user in the associated issue mentioned wanting to use GSLS support. As far as I am aware libplacebo alone doesn't enable this and it also requires gslslang.

this is WIP - I also tried enabling glslang simultaneously locally and I wasn't able to observe any difference in the test I tried despite that.

@robertkirkman robertkirkman marked this pull request as draft September 22, 2025 19:37
@robertkirkman robertkirkman force-pushed the ffmpeg-libplacebo branch 2 times, most recently from 94ee73e to ced6ef7 Compare September 22, 2025 20:52
@robertkirkman robertkirkman marked this pull request as ready for review September 22, 2025 20:52
@robertkirkman
Copy link
Member Author

I've managed to do things to Termux's glslang, libplacebo and ffmpeg packages until my test command now shows the same exact error in Termux that it does on GNU/Linux for me, which seems like progress:

[libplacebo @ 0xb400007ede0176f0] Found no suitable device, giving up.
[libplacebo @ 0xb400007ede0176f0] Failed initializing vulkan device
[libplacebo @ 0xb400007ede0176f0] Failed creating Vulkan device!
[Parsed_libplacebo_0 @ 0xb400007dfe031ad0] Query format failed for 'Parsed_libplacebo_0': Generic error in an external library

Copy link
Member

@TomJo2000 TomJo2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
I've also rebuilt the reverse dependencies for libplacebo locally (which is just mpv and mpv-x)
I'm not entirely sure if they need to be rebuilt on the repos as well.

@robertkirkman
Copy link
Member Author

Good point, I think they do. I see this:

CANNOT LINK EXECUTABLE "mpv": cannot locate symbol "pl_log_create_338" referenced by "/data/data/com.termux/files/usr/bin/mpv"...

After I recompiled mpv in the same container where I bumped libplacebo, then installed that build, the error stopped.

@robertkirkman robertkirkman force-pushed the ffmpeg-libplacebo branch 2 times, most recently from dcef0dd to a342ac4 Compare September 24, 2025 08:29
@robertkirkman
Copy link
Member Author

The PR has been confirmed to work, without errors, with GPU acceleration enabled on this device:

Samsung Xclipse 920

while using this driver:

by user: NoNameForIdea

@robertkirkman robertkirkman force-pushed the ffmpeg-libplacebo branch 2 times, most recently from b45c993 to 15af444 Compare September 27, 2025 05:14
…angToSpv.h`

- Needed for building an improved `libplacebo` package
- Switch from git download to `.tar.gz` + `termux_download` `fast_float.h` in order to more easily unvendor dependencies

- Enable `vulkan-icd`

- Enable `glslang`

- Enable `littlecms`
- Enable `vulkan-icd`

- Enable `glslang`

- Enable `libplacebo`
@robertkirkman
Copy link
Member Author

I will merge it in 24 hours if no problems are found.

On some devices this does not help, but this will not break preexisting ffmpeg scripts on those devices because Vulkan was never enabled fully in ffmpeg in Termux previously, so never worked before.

On other devices it does help and will allow writing new scripts that work on those devices where this does work.

@robertkirkman robertkirkman merged commit e4abe7f into termux:master Oct 14, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Package]: FFmpeg with libplacebo support

2 participants