fix ffmpeg versioning

This commit is contained in:
osmarks
2026-08-11 15:27:20 +01:00
parent 5ae69a0ffc
commit 4490036621
3 changed files with 11 additions and 19 deletions
Generated
+9 -17
View File
@@ -305,16 +305,14 @@ checksum = "55248b47b0caf0546f7988906588779981c43bb1bc9d0c44087278f80cdb44ba"
[[package]]
name = "bindgen"
version = "0.69.5"
version = "0.72.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
dependencies = [
"bitflags 2.10.0",
"cexpr",
"clang-sys",
"itertools 0.12.1",
"lazy_static",
"lazycell",
"itertools 0.13.0",
"proc-macro2",
"quote",
"regex",
@@ -1083,9 +1081,9 @@ dependencies = [
[[package]]
name = "ffmpeg-sys-the-third"
version = "4.0.0+ffmpeg-8.0"
version = "5.0.0+ffmpeg-8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fc211d0448e9ba775923b7cac39c19d350b47b4994b658f096cd0232d09ef97"
checksum = "b00c204bb97c2b6c0329104c3e8bcf58d4d13cc88a04233326570672e0c2c5c9"
dependencies = [
"bindgen",
"cc",
@@ -1097,9 +1095,9 @@ dependencies = [
[[package]]
name = "ffmpeg-the-third"
version = "4.0.1+ffmpeg-8.0"
version = "5.0.0+ffmpeg-8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e9a3b90ff7c38b228afb4d1abaf9fce9336acb7c0674f7c99fdb4aee157820bb"
checksum = "791f0d9315e4f0a0861fa5c8ca8d70a1bd099cce72bff111b4f7ed8d6ebe8ba3"
dependencies = [
"bitflags 2.10.0",
"ffmpeg-sys-the-third",
@@ -2170,12 +2168,6 @@ dependencies = [
"spin",
]
[[package]]
name = "lazycell"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "lebe"
version = "0.5.3"
@@ -3708,9 +3700,9 @@ checksum = "a157657054ffe556d8858504af8a672a054a6e0bd9e8ee531059100c0fa11bb2"
[[package]]
name = "rustc-hash"
version = "1.1.0"
version = "2.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
[[package]]
name = "rustix"
+1 -1
View File
@@ -41,7 +41,7 @@ url = "2"
fastrand = "2"
mimalloc = "0.1"
sonic-rs = "0.3"
ffmpeg-the-third = "4.0"
ffmpeg-the-third = "5.0"
compact_str = { version = "0.8.0-beta", features = ["serde"] }
itertools = "0.13"
async-recursion = "1"
+1 -1
View File
@@ -7,7 +7,7 @@ use ffmpeg::{codec, filter, format::{self, Pixel}, media::Type, util::frame::vid
const BYTES_PER_PIXEL: usize = 3;
pub fn run<P: AsRef<std::path::Path>, F: FnMut(RgbImage) -> Result<()>>(path: P, mut frame_callback: F, frame_interval: f32) -> Result<()> {
let mut ictx = format::input(&path).context("parsing video")?;
let mut ictx = format::input(path.as_ref().as_os_str()).context("parsing video")?;
let video = ictx.streams().best(Type::Video).context("no video stream")?;
let video_index = video.index();