effy 0.11.0

A small and friendly terminal FFmpeg helper that simplifies common tasks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use tracing::debug;

use crate::visitors::CommandBuilder;

/// Always enabled and always last virtual parameter
/// Does not rely on other parameters that might be disabled by user choice
pub(crate) struct Finalizer;

impl Finalizer {
    pub fn build_command(cb: &mut CommandBuilder) {
        debug!("build_command finalizer");
        if cb.ext == "mp4" || cb.ext == "mov" {
            cb.pre_output_args.push("-movflags".to_owned());
            cb.pre_output_args.push("faststart".to_owned());
        }
    }
}