Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Building libFfmpeg.so #1

Closed
chadnickbok opened this issue Oct 28, 2014 · 5 comments
Closed

Building libFfmpeg.so #1

chadnickbok opened this issue Oct 28, 2014 · 5 comments

Comments

@chadnickbok
Copy link

Hi there! Looks like a solid demo project, but I'm a little unclear as to how I can build a working libFfmpeg.so, and was wondering where to either find the file or instructions on how to build it myself.

  • Nick
@garyjamessilva
Copy link

As well as having external dependency libffmpeg.so this project seems to be missing the JNI code to bind the java to C and ffmpeg so that the following calls will work, please update.

Regards

public class Ffmpeg {

static {
    System.loadLibrary("ffmpeg");
}

public static native boolean init(int width, int height, int audio_sample_rate, String rtmpUrl);

public static native void shutdown();

// Returns the size of the encoded frame.
public static native int encodeVideoFrame(byte[] yuv_image);

public static native int encodeAudioFrame(short[] audio_data, int length);

}

@bonnyfone
Copy link
Contributor

Someone has figured out this?

@ulukaya
Copy link
Contributor

ulukaya commented Oct 31, 2014

Just updated readme file to point to https://trac.ffmpeg.org/wiki/CompilationGuide/Android
also added JNI and makefile.
JNI code is a little bit old, feel free to update and use https://support.google.com/youtube/answer/2853702?hl=en as a guide.

@ulukaya ulukaya closed this as completed Oct 31, 2014
ulukaya pushed a commit that referenced this issue Nov 4, 2014
@moonandroid
Copy link

How to build libFfmpeg.so in eclipse ?

@achinverma
Copy link

hi, i need help to solve this error #35

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants