Exemple #1
0
        public static FFmpegSession Create(
            string name,
            int width, int height, float frameRate,
            FFmpegPreset preset
            )
        {
            name += System.DateTime.Now.ToString(" yyyy MMdd HHmmss");
            var path = name.Replace(" ", "_") + preset.GetSuffix();

            return(CreateWithOutputPath(path, width, height, frameRate, preset));
        }
        public static FFmpegSession Create(
            string name,
            int width, int height, float frameRate,
            FFmpegPreset preset, bool recordAudio
            )
        {
#if !FFMPEG_OUT_CUSTOM_FILE_NAME
            name += System.DateTime.Now.ToString(" yyyy MMdd HHmmss");
#endif
            var    path       = name.Replace(" ", "_") + preset.GetSuffix();
            double sampleRate = AudioSettings.outputSampleRate;
            return(CreateWithOutputPath(path, width, height, frameRate, preset,
                                        recordAudio, sampleRate));
        }