mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
First pass at adding transcode support
This does a hard-coded audio encode to vorbis-in-ogg. In the long term, this should use encodebin and real encoding profiles.
This commit is contained in:
parent
efecef0a6c
commit
e915be9208
4 changed files with 131 additions and 0 deletions
10
src/org/wikimedia/commons/Transcoder.java
Normal file
10
src/org/wikimedia/commons/Transcoder.java
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package org.wikimedia.commons;
|
||||
|
||||
public class Transcoder {
|
||||
public static native int transcode(String infile, String outfile,
|
||||
String profile);
|
||||
|
||||
static {
|
||||
System.loadLibrary("transcode");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue