예제 #1
0
        public FFmpegMediaInfo GetInfo()
        {
            if (this.MInfo == null)
            {
                this.MInfo = new FFmpegMediaInfo(this.GetFile());
            }

            return(this.MInfo);
        }
예제 #2
0
        public void PutAudioFile(string file)
        {
            string ext = Path.GetExtension(file);

            if (Regex.IsMatch(ext, @"^\.[0-9A-Za-z]+$") == false)
            {
                throw new Exception("Bad (audio) ext: " + ext);
            }

            if (this.MFile != null)
            {
                FileTools.Delete(this.MFile);
                this.MFile = null;
                this.MInfo = null;
            }

            {
                string wFile = this.WD.GetPath("audio" + ext);

                File.Copy(file, wFile);

                this.MFile = wFile;
            }
        }