package cn.skcks.docking.gb28181.wvp.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@ConfigurationProperties(prefix = "ffmpeg-support")
@Configuration
@Data
public class FfmpegConfig {
    private String ffmpeg;
    private String ffprobe;

    private Rtp rtp;

    @Data
    public static class Rtp {
        private String download = "-i";
        private String input = "-re -i";
        private String output = "-vcodec h264 -acodec aac -f mp4";
        private String logLevel = "fatal";
    }


    private Debug debug;

    @Data
    public static class Debug {
        private Boolean download = false;
        private Boolean input = false;
        private Boolean output = false;
    }

    private Boolean useTmpFile = true;
    private String tmpDir = System.getProperty("java.io.tmpdir");
}
