-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathjFileAnalysis.java
More file actions
32 lines (21 loc) · 1.04 KB
/
jFileAnalysis.java
File metadata and controls
32 lines (21 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import org.avtranscoder.NoDisplayProgress;
import org.avtranscoder.InputFile;
import org.avtranscoder.avtranscoder;
public class jFileAnalysis {
public static void main( String[] args ){
System.loadLibrary("avtranscoder-java");
System.out.println( "Start input file analyse");
avtranscoder.preloadCodecsAndFormats();
InputFile inputFile = new InputFile( args[0] );
NoDisplayProgress progress = new NoDisplayProgress();
inputFile.analyse( progress );
// Access the properties you want with
// inputFile.getProperties()
System.out.println( "End input file analyse");
}
}
// How to use
// Compile on UNIX: javac -cp "/path/to/jar/avtranscoder-<version>.jar:." jFileAnalysis.java
// Run on UNIX: java -Djava.library.path=/path/to/lib/ -cp "/path/to/jar/avtranscoder-<version>.jar:." jFileAnalysis <input_image>
// Compile on Windows: javac -cp "/path/to/jar/avtranscoder-<version>.jar;." jFileAnalysis.java
// Run on Windows: java -Djava.library.path=/path/to/lib/ -cp "/path/to/jar/avtranscoder-<version>.jar;." jFileAnalysis <input_image>