OSDN Git Service

fix some bugs.
[rec10/rec10-git.git] / jTsSplitter / trunk / src / jtssplitter / Main.java
1 /*
2  * jTsSplitter - java based mpeg2ts splitter.
3  * Copyright (C) 2009-2010 Yukikaze
4  */
5 package jtssplitter;
6
7
8 /**
9  *
10  * @author Administrator
11  */
12 public class Main {
13
14     /**
15      * @param args the command line arguments
16      *
17      */
18     public static void main(String[] args) {
19         // TODO code application logic here
20         String inf;
21         String outf;
22         int ch = 0;
23         inf = "";
24         outf = "";
25         for (int i = 0; i < args.length; i++) {
26             System.out.println(args[i]);
27         }
28         if (args.length > 1) {
29             inf = args[0];
30             outf = args[1];
31             if (args.length > 2) {
32                 ch = Integer.parseInt(args[2].trim(), 10);
33             }
34         }
35         Tsfile t1 = new Tsfile();
36         inf="/home/ftpusr/ftp-tmp/バカとテストと召喚獣 第4問「愛とスパイスとお弁当」.ts.tsmix";
37         outf="/home/ftpusr/ftp-tmp/バカとテストと召喚獣 第4問「愛とスパイスとお弁当」.ts";
38         t1.splitTS_byte(inf, outf, ch);
39     }
40 }