diff --git a/config/queue.Dockerfile b/config/queue.Dockerfile index 471313f..02e917f 100644 --- a/config/queue.Dockerfile +++ b/config/queue.Dockerfile @@ -25,13 +25,13 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \ cargo build --release -p forge && \ cp /app/target/release/forge /usr/local/bin/forge + # Runtime stage -FROM --platform=$TARGETPLATFORM debian:bullseye-slim +FROM jrottenberg/ffmpeg:7.1-ubuntu2404-edge # Install runtime dependencies RUN apt-get update && apt-get install -y \ ca-certificates \ - ffmpeg \ libpq5 \ && rm -rf /var/lib/apt/lists/* diff --git a/k8s/base/queue/configmap.yaml b/k8s/base/queue/configmap.yaml index eba7c50..3c2003b 100644 --- a/k8s/base/queue/configmap.yaml +++ b/k8s/base/queue/configmap.yaml @@ -3,6 +3,7 @@ kind: ConfigMap metadata: name: farmhand-queue-config data: - RUST_LOG: "api=debug,db=debug,queue=debug,tower_http=debug,axum::rejection=trace" + RUST_LOG: "api=debug,db=debug,queue=debug,vod=debug,tower_http=debug,axum::rejection=trace" STORAGE: "videos/staging" UPLOAD_BUCKET: "farmhand" + FFMPEG_LOCATION: "/usr/local/bin/ffmpeg" diff --git a/packages/vod/src/stream.rs b/packages/vod/src/stream.rs index 56bbef4..dc158e8 100644 --- a/packages/vod/src/stream.rs +++ b/packages/vod/src/stream.rs @@ -84,6 +84,7 @@ impl Quality { impl HLSConverter { fn get_video_dimensions(&self, input_path: &Path) -> Result<(u32, u32)> { + debug!("Getting dimensions for {:?}", input_path); let output = Command::new(&self.ffmpeg_path) .arg("-i") .arg(input_path)