Esempio n. 1
0
        public static AvOptions WebmVideo(string inputFile, string outputFile)
        {
            AvOptions options = new AvOptions
            {
                AudioOptions = new AudioOptions
                {
                    Bitrate = string.Empty,
                    AudioCodec = AudioCodecType.Ogg
                },
                VideoOptions = new VideoOptions
                {
                    Bitrate = "1000k",
                    VideoCodec = VideoCodecType.VP8,
                    //VideoCompression = null,
                },
                Overwrite = true,
                InputFile = inputFile,
                OutputFile = outputFile,
            };

            return options;
        }
Esempio n. 2
0
        public static AvOptions WebmAudio(string inputFile, string outputFile)
        {
            AvOptions options = new AvOptions
            {
                AudioOptions = new AudioOptions
                {
                    Bitrate = string.Empty,
                    AudioCodec = AudioCodecType.Ogg
                },
                VideoOptions = null,
                Overwrite = true,
                InputFile = inputFile,
                OutputFile = outputFile,
            };

            return options;
        }
Esempio n. 3
0
        public static AvOptions OggVideo(string inputFile, string outputFile)
        {
            AvOptions options = new AvOptions
            {
                AudioOptions = new AudioOptions
                {
                    AudioCodec = AudioCodecType.Ogg,
                    Bitrate = "44100",
                },
                VideoOptions = new VideoOptions
                {
                    Bitrate = "1000k",
                    VideoCodec = VideoCodecType.Theora,
                    //VideoCompression = null,
                },
                Overwrite = true,
                InputFile = inputFile,
                OutputFile = outputFile,
            };

            return options;
        }
Esempio n. 4
0
        public static AvOptions OggAudio(string inputFile, string outputFile)
        {
            AvOptions options = new AvOptions
            {
                VideoOptions = null,
                AudioOptions = new AudioOptions
                {
                    Bitrate = "44100",
                    AudioCodec = AudioCodecType.Ogg,
                },

                InputFile = inputFile,
                OutputFile = outputFile,
                Overwrite = true,
            };

            return options;
        }
Esempio n. 5
0
        public static AvOptions H254Video(string inputFile, string outputFile)
        {
            AvOptions options = new AvOptions
            {
                AudioOptions = new AudioOptions
                {
                    Bitrate = "44100",
                },
                VideoOptions = new VideoOptions
                {
                    Bitrate = "1000k",
                    VideoCodec = VideoCodecType.H254
                },
                Overwrite = true,
                InputFile = inputFile,
                OutputFile = outputFile,
            };

            return options;
        }
Esempio n. 6
0
        public static AvOptions FlashAudio(string inputFile, string outputFile)
        {
            AvOptions options = new AvOptions
            {
                VideoOptions = null,
                AudioOptions = new AudioOptions
                {
                    Bitrate = "44100",
                    AudioCodec = AudioCodecType.Copy
                },
                Format = "flv",
                InputFile = inputFile,
                OutputFile = outputFile,
                Overwrite = true,
            };

            return options;
        }