From 6edf0fd93abf7e58b4c0974e3d3e54bcf8517946 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 8 Dec 2025 19:53:12 +0100 Subject: human-readable cache keys --- transcoder/src/fragment.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'transcoder/src/fragment.rs') diff --git a/transcoder/src/fragment.rs b/transcoder/src/fragment.rs index 564c94d..4380df6 100644 --- a/transcoder/src/fragment.rs +++ b/transcoder/src/fragment.rs @@ -5,7 +5,7 @@ */ use crate::{Config, CONF, LOCAL_VIDEO_TRANSCODING_TASKS}; use anyhow::Result; -use jellycache::{cache, CacheContentType, CacheKey}; +use jellycache::{cache, HashKey}; use jellyremuxer::{demuxers::create_demuxer, muxers::write_fragment, ContainerFormat}; use jellystream_types::{StreamFormatInfo, TrackKind}; use log::info; @@ -39,7 +39,10 @@ pub fn transcode( let had_next_kf = next_kf.is_some(); let output = cache( - CacheKey::new(CacheContentType::Unknown, ("frag-tc", input_key, &command)), + &format!( + "transcode/media-fragment/{input_key}-{}.mkv", + HashKey(&command) + ), || { let _permit = LOCAL_VIDEO_TRANSCODING_TASKS.lock().unwrap(); info!("encoding with {command:?}"); -- cgit v1.3