Skip to content

Commit

Permalink
add ffmpeg av JNI lib for raspi and load it
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jan 13, 2024
1 parent 01da823 commit 3e4027a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file added resources/common/libffmpeg_av_jni_raspi.so
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class AVActivity {

private static final String TAG = "ffmpegav.AVActivity";
static final String Version = "0.99.20";
static final String Version = "0.99.21";

public static native String ffmpegav_version();
public static native String ffmpegav_libavutil_version();
Expand Down Expand Up @@ -170,7 +170,6 @@ protected boolean isReal()
}
};


private String tag;

OperatingSystem(String tag)
Expand Down Expand Up @@ -234,18 +233,21 @@ else if (os == OperatingSystem.LINUX)
return OperatingSystem.RASPI;
}
}

return os;
}
}
return UNKNOWN;
}
}

public static int ffmpegav_loadjni(String jnilib_path) {
String linux_lib_filename = null;
if (OperatingSystem.getCurrent() == OperatingSystem.LINUX)
{
linux_lib_filename = jnilib_path + "/libffmpeg_av_jni.so";
} else if (OperatingSystem.getCurrent() == OperatingSystem.RASPI)
{
linux_lib_filename = jnilib_path + "/libffmpeg_av_jni_raspi.so";
} else if (OperatingSystem.getCurrent() == OperatingSystem.WINDOWS)
{
linux_lib_filename = jnilib_path + "/ffmpeg_av_jni.dll";
Expand Down

0 comments on commit 3e4027a

Please sign in to comment.