diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-16 14:39:27 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-16 14:39:27 +0200 |
commit | a9c897c7d7df5509a195055e95dfa821fe7aa274 (patch) | |
tree | f7508de286fc3b5d830a2e540a514c30fa7a24c8 /transcoder/src/fragment.rs | |
parent | 39dee6820db4581fa41cfac8bcfdd399a96f5319 (diff) | |
download | jellything-a9c897c7d7df5509a195055e95dfa821fe7aa274.tar jellything-a9c897c7d7df5509a195055e95dfa821fe7aa274.tar.bz2 jellything-a9c897c7d7df5509a195055e95dfa821fe7aa274.tar.zst |
the typical mse problems again...
Diffstat (limited to 'transcoder/src/fragment.rs')
-rw-r--r-- | transcoder/src/fragment.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/transcoder/src/fragment.rs b/transcoder/src/fragment.rs index 8692423..88a311e 100644 --- a/transcoder/src/fragment.rs +++ b/transcoder/src/fragment.rs @@ -56,19 +56,23 @@ pub async fn transcode( }; let fallback_encoder = match format.codec.as_str() { "A_OPUS" => "libopus", + "V_VP8" => "libvpx", + "V_VP9" => "libvpx-vp9", + "V_AV1" => "libaom", // svtav1 is x86 only :( "V_MPEG4/ISO/AVC" => "libx264", "V_MPEGH/ISO/HEVC" => "libx265", _ => "", }; let args = template - .replace("%i", "-f matroska -i pipe:0") + .replace("%i", "-f matroska -i pipe:0 -copyts") .replace("%o", "-f matroska pipe:1") .replace("%f", &filter) .replace("%e", "-c:%t %c -b:%t %r") .replace("%t", typechar) .replace("%c", fallback_encoder) - .replace("%r", &(format.bitrate as i64).to_string()); + .replace("%r", &(format.bitrate as i64).to_string()) + .replace(" ", " "); info!("encoding with {:?}", args); |