Exemple #1
0
        /// <summary>
        /// 入力ファイルの設定
        /// </summary>
        private static void Make_InputPath(Setting_File setting)
        {
            //Input
              TsShortName = new Regex("[ $|()^ ]").Replace(TsName, "_");      //batの特殊文字
              TsShortName = (5 < TsShortName.Length) ? TsShortName.Substring(0, 5) : TsShortName;

              D2vPath = D2vPath ?? TsPath + ".pp.d2v";
              LwiPath = LwiPath ?? TsPath + ".pp.lwi";
              LwiFooterPath = LwiPath + "footer";
              SrtPath = SrtPath ?? Path.Combine(TsDir, TsNameWithoutExt + ".srt");

              if (IsAll)
              {
            if (File.Exists(D2vPath) == false && File.Exists(TsPath + ".d2v"))
              D2vPath = TsPath + ".d2v";
            if (File.Exists(LwiPath) == false && File.Exists(TsPath + ".lwi"))
              LwiPath = TsPath + ".lwi";
              }

              //Plugin  Detector  AvsVpy
              {
            string plugin = setting.InputPlugin.Trim().ToLower();
            string detector = setting.Detector.Trim().ToLower();
            bool isD2v = plugin == "d2v".ToLower();
            bool isLwi = plugin == "lwi".ToLower();
            bool isLG = detector == "LG".ToLower();
            bool isJLS = detector == "JLS".ToLower();

            InputPlugin = isD2v ? Plugin.D2v
              : isLwi ? Plugin.Lwi
              : Plugin.None;
            Detector = isJLS ? Detector.Join_Logo_Scp
              : isLG ? Detector.LogoGuillo
              : Detector.None;

            //Avs固定
            const AvsVpy avs = AvsVpy.Avs;
            AvsVpy = avs;
            if (AvsVpy == AvsVpy.Vpy)
              throw new NotImplementedException();
              }
        }
Exemple #2
0
        /// <summary>
        /// チャプター出力の設定
        /// </summary>
        private static void Set_Chap_and_Misc(Setting_File setting)
        {
            //edit chapter
              Regard_NsecCM_AsMain = setting.Regard_NsecCM_AsMain;
              Regard_NsecMain_AsCM = setting.Regard_NsecMain_AsCM;
              Regard_NsecCM_AsMain = 0 < Regard_NsecCM_AsMain ? Regard_NsecCM_AsMain : 0;
              Regard_NsecMain_AsCM = 0 < Regard_NsecMain_AsCM ? Regard_NsecMain_AsCM : 0;

              //enable output
              Output_RawFrame = setting.Output_RawFrame;
              Output_Frame = setting.Output_Frame;
              Output_Tvtp = setting.Output_Tvtp;
              Output_Ogm = setting.Output_Ogm;
              Output_Scp = setting.Output_Scp;

              //chapter directory
              ChapDir_Tvtp = setting.ChapDir_Tvtp;
              ChapDir_Misc = setting.ChapDir_Misc;
              ChapDir_Tvtp = Directory.Exists(ChapDir_Tvtp) ? ChapDir_Tvtp : TsDir;
              ChapDir_Misc = Directory.Exists(ChapDir_Misc) ? ChapDir_Misc : TsDir;

              //misc
              Detector_MultipleRun = setting.Detector_MultipleRun;
              Mode_CleanWorkItem = setting.CleanWorkItem;
        }
Exemple #3
0
        /// <summary>
        /// 初期化、パス作成
        /// </summary>
        public static void Initialize(Setting_CmdLine cmdline, Setting_File setting)
        {
            Copy_fromCommandLine(cmdline);

              Make_InputPath(setting);

              Make_WorkDir();

              Detect_PartNo();

              Get_BinaryPath();

              Set_Chap_and_Misc(setting);

              Log_and_ErrorCheck();
        }