diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-14 16:02:42 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-14 16:02:42 +0200 |
commit | 42e08750a5a9a112d458a5db1d6b169278e953c5 (patch) | |
tree | 595db21dd2c51b4772a7371e062023b5488c40e7 /stream/src/webvtt.rs | |
parent | 4a36d9e96853bf04d17f8377a7fbf862d108b9f1 (diff) | |
download | jellything-42e08750a5a9a112d458a5db1d6b169278e953c5.tar jellything-42e08750a5a9a112d458a5db1d6b169278e953c5.tar.bz2 jellything-42e08750a5a9a112d458a5db1d6b169278e953c5.tar.zst |
stream info for transcoding
Diffstat (limited to 'stream/src/webvtt.rs')
-rw-r--r-- | stream/src/webvtt.rs | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/stream/src/webvtt.rs b/stream/src/webvtt.rs index 960849c..e9f0181 100644 --- a/stream/src/webvtt.rs +++ b/stream/src/webvtt.rs @@ -3,23 +3,21 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2025 metamuffin <metamuffin.org> */ -use anyhow::{anyhow, Context, Result}; -use jellybase::{ - cache::async_cache_memory, - common::{stream::StreamSpec, Node}, - CONF, -}; -use jellyremuxer::extract::extract_track; -use jellytranscoder::subtitles::{parse_subtitles, write_webvtt}; +use anyhow::Result; +use jellybase::common::{stream::StreamSpec, Node}; use std::sync::Arc; -use tokio::io::{AsyncWriteExt, DuplexStream}; +use tokio::io::DuplexStream; pub async fn vtt_stream( json: bool, node: Arc<Node>, spec: StreamSpec, - mut b: DuplexStream, + b: DuplexStream, ) -> Result<()> { + let _ = b; + let _ = spec; + let _ = node; + let _ = json; // TODO cache // TODO should use fragments too? big films take too long... |