Exemplo n.º 1
0
        public void TestMethod2()
        {
            MediaDriver driver = new MediaDriver(@"F:\GitHub\WPF-FFMPEG\Document\ffmpeg\ffmpeg.exe");

            string input = @"F:\GitHub\WPF-FFMPEG\Document\ffmpeg\dg.mp4";

            string outPut = @"F:\GitHub\WPF-FFMPEG\Document\ffmpeg\dg.mp3";

            driver.MediaToSound(input, outPut);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Starting driver...");

            Console.CancelKeyPress += delegate { IsRunning = false; };

            using (var driver = new MediaDriver())
            {
                driver.LaunchEmbedded(ThreadingMode.Dedicated);

                while (IsRunning)
                {
                    Thread.Yield();
                }
            }
        }