File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
import org .avtranscoder .NoDisplayProgress ;
2
2
import org .avtranscoder .InputFile ;
3
+ import org .avtranscoder .avtranscoder ;
3
4
4
5
5
6
public class jFileAnalysis {
6
7
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" );
13
8
System .loadLibrary ("avtranscoder-java" );
14
9
15
10
System .out .println ( "Start input file analyse" );
16
11
12
+ avtranscoder .preloadCodecsAndFormats ();
13
+
17
14
InputFile inputFile = new InputFile ( args [0 ] );
18
15
NoDisplayProgress progress = new NoDisplayProgress ();
19
16
inputFile .analyse ( progress );
20
17
18
+ // Access the properties you want with
19
+ // inputFile.getProperties()
20
+
21
21
System .out .println ( "End input file analyse" );
22
- }
22
+ }
23
23
}
24
24
25
25
// How to use
You can’t perform that action at this time.
0 commit comments