FFMPEG playlist improvements

Better playlist management, .tmp renaming, HLS playlist parameter and concurrency tweaking.
This commit is contained in:
Cameron
2026-04-24 10:08:03 -04:00
parent 13b9d54861
commit 29f32b9d22
2 changed files with 300 additions and 126 deletions
+3 -3
View File
@@ -22,16 +22,16 @@ async fn check_nvenc_available() -> bool {
}
/// Returns whether NVENC is available, caching the result after first check.
async fn is_nvenc_available() -> bool {
pub async fn is_nvenc_available() -> bool {
if let Some(&available) = NVENC_AVAILABLE.get() {
return available;
}
let available = check_nvenc_available().await;
let _ = NVENC_AVAILABLE.set(available);
if available {
info!("CUDA NVENC hardware acceleration detected and enabled for preview clips");
info!("CUDA NVENC hardware acceleration detected and enabled");
} else {
info!("NVENC not available, using CPU encoding for preview clips");
info!("NVENC not available, using CPU encoding");
}
available
}