Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FFmpeg.Initialize(@"C:\Program Files (x86)\ffmpeg\ffmpeg.exe","metaflac.exe");

            /*FileData d = FileService.ReadFile("test.txt");
            if (d.Type == FileDataType.IndexFile)
            {
                IndexFile ii = d.o._Cast<IndexFile>();
                ii.Update();
            }*/


            
            FileSystemPlusLoadOption lo = new FileSystemPlusLoadOption();
            lo.IgnoreException = true;
            lo.RestrictExtensionEnable = true;
            lo.RestrictExtension.AddToLower("flac");
            lo.RestrictExtension.AddToLower("mp3");

            FFmpeg.Initialize(@"C:\Program Files (x86)\ffmpeg\ffmpeg.exe", "metaflac.exe");
            //IndexFile I = 
          
            IndexFile i = new IndexFile();
            i.OnEnd += I_OnEnd;
            i.BeginLoadFromPath(@"F:\MUSICA FLAC\ORATORIO\", lo);
    


        }
Пример #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            FFmpeg.Initialize(@"C:\Program Files (x86)\ffmpeg\ffmpeg.exe", "metaflac.exe");

            FileSystemPlusLoadOption lo = new FileSystemPlusLoadOption();
            lo.IgnoreException = true;
            lo.RestrictExtensionEnable = true;
            lo.RestrictExtension.AddToLower("flac");
            lo.RestrictExtension.AddToLower("mp3");


            IndexFile i = new IndexFile();
            i.OnEnd += I_OnEnd2;
            i.BeginLoadFromPath(@"D:\Musica\DJ CAVA Mashups\", lo);


            
            /* Wrapper w = new Wrapper(new FFMpegMediaMetadataFlac());
             String ser = Json.Serialize(w);
             Wrapper tret = Json.Deserialize<Wrapper>(ser);*/

            //D:\Musica\DJ CAVA Mashups

        }