OSDN Git Service

fix program channel unselectable bug.
[rec10/rec10-git.git] / jTsSplitter / trunk / src / jtssplitter / Main.java
1 /*
2  * To change this template, choose Tools | Templates
3  * and open the template in the editor.
4  */
5
6 package jtssplitter;
7
8 /**
9  *
10  * @author Administrator
11  */
12 public class Main {
13
14     /**
15      * @param args the command line arguments
16      */
17     public static boolean debug_mode=false;
18     public static void main(String[] args) {
19         // TODO code application logic here
20         String inf,outf;
21         int ch=0;
22         inf="";
23         outf="";
24         if (args.length>1){
25             inf=args[0];
26             outf=args[1];
27             if (args.length>2){
28                 ch=Integer.parseInt(args[2].trim(),10);
29             }
30         }
31         Tsfile t1=new Tsfile();
32         //t1.readTs("D:\\jTssplitter\\test-sp.ts");
33         //inf="/home/ftpusr/ftp-tmp/tester/testcs30.tsmix";
34         //outf="/home/ftpusr/ftp-tmp/tester/test.tssp.ts";
35         //inf="D:\\jTssplitter\\NEEDLESS.ts";
36         //outf="D:\\jTssplitter\\NEEDLESS.split-2.ts";
37         //inf="/home/ftpusr/ftp-tmp/tester/NEEDLESS.tsmix.ts";
38         //outf="/home/ftpusr/ftp-tmp/tester/Needless.tssp.ts";
39         t1.splitTS(inf,outf,ch);
40     }
41 }