Skip to content

Commit 2019918

Browse files
committed
Merge pull request mikrosimage#218 from cchampet/clean_jAnalyser
jFileAnalysis: clean
2 parents 28852a7 + 74cd149 commit 2019918

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/jFileAnalysis/jFileAnalysis.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
import org.avtranscoder.NoDisplayProgress;
22
import org.avtranscoder.InputFile;
3+
import org.avtranscoder.avtranscoder;
34

45

56
public class jFileAnalysis {
67
public static void main( String[] args ){
7-
System.loadLibrary("avutil");
8-
System.loadLibrary("swscale");
9-
System.loadLibrary("swresample");
10-
System.loadLibrary("avcodec");
11-
System.loadLibrary("avformat");
12-
System.loadLibrary("avtranscoder");
138
System.loadLibrary("avtranscoder-java");
149

1510
System.out.println( "Start input file analyse");
1611

12+
avtranscoder.preloadCodecsAndFormats();
13+
1714
InputFile inputFile = new InputFile( args[0] );
1815
NoDisplayProgress progress = new NoDisplayProgress();
1916
inputFile.analyse( progress );
2017

18+
// Access the properties you want with
19+
// inputFile.getProperties()
20+
2121
System.out.println( "End input file analyse");
22-
}
22+
}
2323
}
2424

2525
// How to use

0 commit comments

Comments
 (0)