Exemple #1
0
        /// <summary>
        /// サンプル設定  pfAdapter動作テスト
        /// </summary>
        private static Setting_File Sample_RunTest()
        {
            var setting = new Setting_File();

            setting.Process_GetExternalCommand = new Client();
            setting.Client_Pipe = new List <Client_WriteStdin>()
            {
                new Client_WriteStdin()
                {
                    Enable   = 1,
                    BasePath = @"   ..\Pipe2File.exe   ",
                    BaseArgs = "  \"$FilePath$.p2f.ts\"   ",
                },
            };
            setting.PreProcess  = new ClientList();
            setting.MidProcess  = new ClientList();
            setting.PostProcess = new ClientList();
            return(setting);
        }
Exemple #2
0
        /// <summary>
        /// サンプル設定  Sample_E
        /// </summary>
        private static Setting_File Sample_E()
        {
            var setting = new Setting_File();

            setting.Process_GetExternalCommand = new Client();
            //Process_Pipe
            setting.PipeTimeout_sec = -1;
            setting.Client_Pipe     = new List <Client_WriteStdin>()
            {
                new Client_WriteStdin()
                {
                    BasePath  = @"   ..\Valve2Pipe\Valve2Pipe.exe   ",
                    BaseArgs  = "  -pipe \"$FilePath$\"  -profile  $Macro1$   ",
                    Delay_sec = 1,
                }
            };
            //ClientList
            setting.PreProcess       = new ClientList();
            setting.MidProcess       = new ClientList();
            setting.PostProcess      = new ClientList();
            setting.PostProcess.List = new List <Client>()
            {
                new Client()
                {
                    Enable   = 1,
                    BasePath = @"   ..\Valve2Pipe\SplitVideo.exe   ",
                    BaseArgs = "  \"$FilePath$\"   ",
                    NoWindow = 0,
                },
                //bat
                new Client()
                {
                    Enable   = 1,
                    memo     = "  bat  ",
                    BasePath = @"   .\bat\PostProcess_pfA.bat   ",
                    BaseArgs = "   \"$FilePath$\"   ",
                },
            };
            return(setting);
        }
Exemple #3
0
        /// <summary>
        /// サンプル設定 Base
        /// </summary>
        private static Setting_File Sample_B(Setting_File setting = null)
        {
            setting = setting ?? new Setting_File();

            //GetExternalCommand
            setting.Process_GetExternalCommand = setting.Process_GetExternalCommand ?? new Client()
            {
                BasePath = @"   ..\LGLauncher\LSystem\LogoSelector.exe   ",
                BaseArgs = "   \"$Ch$\"   \"$Program$\"   \"$FilePath$\"   ",
            };

            //Process_Pipe
            setting.PipeTimeout_sec = 10;
            if (setting.Client_Pipe == null || setting.Client_Pipe.Count == 0)
            {
                setting.Client_Pipe = new List <Client_WriteStdin>()
                {
                    //Caption2Ass_PCR
                    new Client_WriteStdin()
                    {
                        Enable    = 1,
                        BasePath  = @"   ..\Caption2Ass_PCR\Caption2Ass_PCR.exe   ",
                        BaseArgs  = "   -pipe  -o \"$FilePath$\"  -format srt  -NonCapTag  ",
                        Delay_sec = 1,
                    },
                    //DGIndex
                    new Client_WriteStdin()
                    {
                        Enable    = 0,
                        BasePath  = @"   ..\DGIndex\DGIndex.exe   ",
                        BaseArgs  = "   -pipe \"$FilePath$\" -o \"$FilePath$.pp\"  -om 0  -hide  -exit  -nodialog   ",
                        Delay_sec = 1,
                    },
                    //CreateLwi
                    new Client_WriteStdin()
                    {
                        Enable    = 1,
                        BasePath  = @"   ..\CreateLwi\CreateLwi.exe   ",
                        BaseArgs  = "   -pipe \"$FilePath$\"  -lwi \"$FilePath$.pp\"  -footer   ",
                        Delay_sec = 1,
                    },
                    //Pipe2File    for debug
                    new Client_WriteStdin()
                    {
                        Enable    = 0,
                        BasePath  = @"   Pipe2File.exe   ",
                        BaseArgs  = "   \"$FilePath$.p2f.ts\"  ",
                        Delay_sec = 1,
                    },
                };
            }

            //PreProcess
            if (setting.PreProcess == null)
            {
                setting.PreProcess      = new ClientList();
                setting.PreProcess.List = new List <Client>()
                {
                    new Client()
                    {
                        Enable   = 0,
                        memo     = "  Preprocess sample  ",
                        BasePath = @"   sample.exe   ",
                        BaseArgs = "  \"$FilePath$\"   ",
                    },
                };
            }
            //MidProcess
            if (setting.MidProcess == null)
            {
                setting.MidProcess               = new ClientList();
                setting.MidProcess.Delay_sec     = 10;
                setting.MidProcess.RandDelay_sec = 20;
                setting.MidProcess.List          = new List <Client>()
                {
                    //LGLauncher
                    new Client()
                    {
                        BasePath = @"   ..\LGLauncher\LGLauncher.exe   ",
                        BaseArgs = "   -part  -ts \"$FilePath$\"   -ch \"$ch$\"   -program \"$program$\"   ",
                    },
                };
            }
            //PostProcess
            if (setting.PostProcess == null)
            {
                setting.PostProcess               = new ClientList();
                setting.PostProcess.Delay_sec     = 10;
                setting.PostProcess.RandDelay_sec = 20;
                setting.PostProcess.List          = new List <Client>()
                {
                    //LGLauncher
                    new Client()
                    {
                        BasePath = @"   ..\LGLauncher\LGLauncher.exe   ",
                        BaseArgs = "   -last  -ts \"$FilePath$\"   -ch \"$ch$\"   -program \"$program$\"   ",
                    },
                    new Client()
                    {
                        Enable   = 0,
                        BasePath = @"   ..\LGLauncher\LGLauncher.exe   ",
                        BaseArgs = "          -ts \"$FilePath$\"   -ch \"$ch$\"   -program \"$program$\"  -DisableSplit  ",
                    },
                    //bat
                    new Client()
                    {
                        Enable   = 1,
                        memo     = "  bat  ",
                        BasePath = @"   .\bat\PostProcess_pfA.bat   ",
                        BaseArgs = "   \"$FilePath$\"   ",
                    },
                    new Client()
                    {
                        Enable   = 0,
                        memo     = "   Postprocess sample  ",
                        BasePath = @"   sample.exe   ",
                        BaseArgs = "   \"$FilePath$\"   ",
                    },
                };
            }
            return(setting);
        }