server: mic dependency updates in install script

This commit is contained in:
Brad Stein 2025-12-01 15:54:03 -03:00
parent 3458b42a11
commit 103220a05a
2 changed files with 8 additions and 2 deletions

View File

@ -20,6 +20,7 @@ sudo pacman -Syq --needed --noconfirm git \
rustup \ rustup \
protobuf \ protobuf \
gcc \ gcc \
alsa-utils \
pipewire \ pipewire \
pipewire-pulse \ pipewire-pulse \
tailscale \ tailscale \

View File

@ -2,7 +2,6 @@
use anyhow::Context; use anyhow::Context;
use futures_util::Stream; use futures_util::Stream;
use gst::MessageView::*;
use gst::prelude::*; use gst::prelude::*;
use gst::{MessageView, log}; use gst::{MessageView, log};
use gstreamer as gst; use gstreamer as gst;
@ -14,6 +13,12 @@ use tracing::{Level, debug, enabled, error, info, trace, warn};
const EYE_ID: [&str; 2] = ["l", "r"]; const EYE_ID: [&str; 2] = ["l", "r"];
static START: std::sync::OnceLock<gst::ClockTime> = std::sync::OnceLock::new(); static START: std::sync::OnceLock<gst::ClockTime> = std::sync::OnceLock::new();
static DEV_MODE: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
fn dev_mode_enabled() -> bool {
*DEV_MODE
.get_or_init(|| std::env::var("LESAVKA_DEV_MODE").is_ok())
}
pub struct VideoStream { pub struct VideoStream {
_pipeline: gst::Pipeline, _pipeline: gst::Pipeline,
@ -356,7 +361,7 @@ impl CameraRelay {
"📸📥 srv pkt"); "📸📥 srv pkt");
} }
if cfg!(debug_assertions) || tracing::enabled!(tracing::Level::TRACE) { if dev_mode_enabled() && (cfg!(debug_assertions) || tracing::enabled!(tracing::Level::TRACE)) {
if n % 120 == 0 { if n % 120 == 0 {
let path = format!("/tmp/eye3-cli-{n:05}.h264"); let path = format!("/tmp/eye3-cli-{n:05}.h264");
if let Err(e) = std::fs::write(&path, &pkt.data) { if let Err(e) = std::fs::write(&path, &pkt.data) {