diff options
Diffstat (limited to 'transcoder')
-rw-r--r-- | transcoder/src/fragment.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/transcoder/src/fragment.rs b/transcoder/src/fragment.rs index e64e690..3be7d39 100644 --- a/transcoder/src/fragment.rs +++ b/transcoder/src/fragment.rs @@ -35,7 +35,7 @@ pub async fn transcode( } .or(CONF.encoders.generic.as_ref()) .cloned() - .unwrap_or("ffmpeg %i %f %e %o".to_owned()); + .unwrap_or("ffmpeg %a".to_owned()); let filter = match kind { TrackKind::Video => format!("-vf scale={}:-1", format.width.unwrap()), @@ -58,8 +58,10 @@ pub async fn transcode( }; let args = template + .replace("%a", "-hide_banner %i %f %e %o") .replace("%i", "-f matroska -i pipe:0 -copyts") .replace("%o", "-f matroska pipe:1") + .replace("%w", &format.width.unwrap_or_default().to_string()) .replace("%f", &filter) .replace("%e", "-c:%t %c -b:%t %r") .replace("%t", typechar) |