Пример #1
0
        public FileTest Convert(string fileName, string format)
        {
            var file = new VideoFile(fileName);

            var sourceCodec = new CodecFactory().Extract(file);

            IMyInterface destinationCodec;

            if (format == "mp4")
            {
                destinationCodec = new MPEG4CompressionCodec();
            }
            else
            {
                destinationCodec = new OggCompressionCodec();
            }

            var buffer = BitrateReader.Read(fileName, sourceCodec);
            var result = BitrateReader.Convert(buffer, destinationCodec);

            result = (new AudioMixer()).Fix(result);

            return(new FileTest(result));
        }
Пример #2
0
 public string Extract(VideoFile file)
 {
     throw new NotImplementedException();
 }