forge
Explore
Log in

Don't you dare go Hollow

Decode h264 shares through vulkan

Browse files at this commit

4a982ae81fa96b4b570ce45da88cde7a6c0ef4dbAhmet Kaan GümüşParent: d9eb963
  • feat
    • decode h264 shares through vulkan
Show full message
✨ feat: decode h264 shares through vulkan

Bumps edith_codecs so HwDecoder tries Vulkan before VA-API, which gives
Windows viewers hardware H.264 decode. The chosen decode backend is
logged when a decoder opens.
crates/client/Cargo.tomlmodified+16 -16
@@ -10,22 +10,22 @@ tokio.workspace = true
1010 quinn = { workspace = true, features = ["rustls-ring", "platform-verifier"] }
1111
1212 gpui-kit = { version = "0.11.0", features = ["syntect"] }
13-ec-opus = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
14-ec-core = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
15-ec-probe = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
16-ec-mp4 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
17-ec-matroska = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
18-ec-ogg = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
19-ec-h264 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
20-ec-vp8 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
21-ec-aac = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
22-ec-mp3 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
23-ec-vorbis = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
24-ec-flac = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
25-ec-h265 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
26-ec-hw = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
27-ec-vp9 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
28-ec-av1 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "bb053746edc1988f9a0842fa56e12195c1259d7b" }
13+ec-opus = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
14+ec-core = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
15+ec-probe = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
16+ec-mp4 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
17+ec-matroska = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
18+ec-ogg = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
19+ec-h264 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
20+ec-vp8 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
21+ec-aac = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
22+ec-mp3 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
23+ec-vorbis = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
24+ec-flac = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
25+ec-h265 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
26+ec-hw = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
27+ec-vp9 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
28+ec-av1 = { git = "https://git.tahinli.com/Tahinli/edith_codecs.git", rev = "18fc8572e95c39dc8ac47448a887172471ced4a6" }
2929 ureq = "3.5.2"
3030 bytes = "1.12.2"
3131 tracing = "0.1.44"
crates/client/src/media/decode.rsmodified+1 -0
@@ -304,6 +304,7 @@ fn hardware(codec: Codec) -> Option<VideoDecoder> {
304304 Codec::Vp8 => return None,
305305 };
306306 let decoder = ec_hw::HwDecoder::open(codec).ok()?;
307+ tracing::info!(backend = ?decoder.backend(), ?codec, "hardware decoder opened");
307308 Some(VideoDecoder::Hardware(Box::new(decoder), codec))
308309 }
309310