feat: add clipbin-media for reading segments with FFmpeg
Rust checks / windows-cross-check (push) Successful in 58s
Rust checks / linux (push) Failing after 10m50s

One shared FFmpeg binding (ffmpeg-next 9, dynamically linked: the system
FFmpeg on Linux, the OBS-bundled DLLs on Windows) for clip export and
playback, with a probe of segment duration, codec, size and audio tracks.
This commit is contained in:
2026-10-08 17:55:34 +02:00
parent 36c13449dd
commit f6cdef5dd2
4 changed files with 126 additions and 0 deletions
Generated
+39
View File
@@ -881,6 +881,14 @@ dependencies = [
"gpui",
]
[[package]]
name = "clipbin-media"
version = "0.1.0"
dependencies = [
"clipbin-core",
"ffmpeg-next",
]
[[package]]
name = "clipbin-obs"
version = "0.1.0"
@@ -1680,6 +1688,31 @@ dependencies = [
"simd-adler32",
]
[[package]]
name = "ffmpeg-next"
version = "9.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6380599799e175191eb7ffe82c97f36a2a90a36cbc54c738a903e5287d7f516a"
dependencies = [
"bitflags 2.13.2",
"ffmpeg-sys-next",
"libc",
]
[[package]]
name = "ffmpeg-sys-next"
version = "9.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b939bf79dd5949412a4b81cfe21a07f48ea21b47fcbb5f57816c8c2de5ae30b"
dependencies = [
"bindgen 0.72.1",
"cc",
"libc",
"num_cpus",
"pkg-config",
"vcpkg",
]
[[package]]
name = "filedescriptor"
version = "0.8.3"
@@ -5965,6 +5998,12 @@ dependencies = [
"sval_serde",
]
[[package]]
name = "vcpkg"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
[[package]]
name = "version_check"
version = "0.9.5"