Exemplo n.º 1
0
        public void TestConvertSample4()
        {
            var convertFile = new PandaVideoConv();

            // set the output prop
            convertFile.OutputFolder   = _outputPath;
            convertFile.WorkingFolder  = _outputPath;
            convertFile.SelectedDevice = _device;

            convertFile.AnalyseFile(Path.Combine(_samplesPath, SAMPLE_FILE11));

            // Test what we found
            Assert.IsTrue(convertFile.ConvertFile());
        }
Exemplo n.º 2
0
        public void TestConvertSample10()
        {
            var convertFile = new PandaVideoConv();

            // set the output prop
            convertFile.OutputFolder   = _outputPath;
            convertFile.WorkingFolder  = _outputPath;
            convertFile.SelectedDevice = (IOutputDevice) new DeviceXBox360();

            Assert.IsTrue(
                convertFile.AnalyseFile(Path.Combine(_samplesPath,
                                                     SAMPLE_FILE8)),
                "Should have been okay");

            // Test what we found
            Assert.IsTrue(convertFile.ConvertFile());
        }
Exemplo n.º 3
0
        public void TestConvertSubtitlesSample()
        {
            var convertFile = new PandaVideoConv();

            // set the output prop
            convertFile.OutputFolder    = _outputPath;
            convertFile.WorkingFolder   = _outputPath;
            convertFile.SelectedDevice  = _device;
            convertFile.EncodeSubtitles = true;

            Assert.IsTrue(
                convertFile.AnalyseFile(Path.Combine(_samplesPath,
                                                     SAMPLE_FILE14)),
                "Should have been okay");

            // Test what we found
            Assert.IsTrue(convertFile.ConvertFile());
        }
Exemplo n.º 4
0
        public void TestConvertSample70()
        {
            var convertFile = new PandaVideoConv();

            // set the output prop
            convertFile.OutputFolder   = _outputPath;
            convertFile.WorkingFolder  = _outputPath;
            convertFile.SelectedDevice = _device;

            convertFile.AnalyseFile(Path.Combine(_samplesPath, SAMPLE_FILE12));

            List <AudioTrack> audList = convertFile.GetAudioTracks();

            convertFile.SelectedAudioTrack = audList[0];

            // Test what we found
            Assert.IsTrue(convertFile.ConvertFile());
        }