Ask Your Question
1

License of Ffmpeg for android

asked 2017-04-13 01:32:10 -0600

Check gravatar image

Dear,

I download the "opencv-3.2.0-android-sdk.zip" file to develop an Android application for commercial. Btw, when i using tool to check the license of my application (include the "sdk" folder of "opencv-3.2.0-android-sdk.zip") then i got warning messages about ffmpeg tool is using. For example:

  • /sdk/java/javadoc/org/opencv/videoio/Videoio.html

  • /sdk/java/src/org/opencv/videoio/Videoio.java

...

I know that OpenCV include some ffmpeg source code for video processing. My questions are:

  1. Are we allowed to use this ffmpeg part for Android commercial application"?

  2. If no, how can i remove the part of ffmpeg under "sdk" folder (source code, java doc,..) ? (since my application does not use this function).

I appreciate your answer, thank you very much.

edit retag flag offensive close merge delete

Comments

1

hmm, note, that there's no support for ffmpeg on android out-of-the-box at all, so i guess, you're safe.

(by default, Videoio only has a standalone, MJPEG codec)

berak gravatar imageberak ( 2017-04-13 01:43:45 -0600 )edit

Thank you for your answer. I think it's better to remove the ffmpeg part for safe. Since i'm new so i'm not sure which necessary step to completely remove the ffmpeg part, could you please guide me? (update the make file, remove source code folder,..)

Thank you very much.

Check gravatar imageCheck ( 2017-04-13 02:13:09 -0600 )edit

again don't bother to change the src code. your apk will not contain anything ffmpeg related.

berak gravatar imageberak ( 2017-04-13 02:15:49 -0600 )edit

Thank you berak,

I confused about ffmpeg license under "opencv-3.2.0-android-sdk", is it LGPL or GPL?

Sorry but i can not found any license information of ffmpeg under "opencv-3.2.0-android-sdk" content.

Check gravatar imageCheck ( 2017-04-13 04:21:31 -0600 )edit
1

i don't have any android sdk at hand, but the license in 3rdparty/ffmpeg is LGPL.

but really don't worry. even if the sdk contains references to ffmpeg (code is shared between desktop & android builds), none of it will end up in your android app

berak gravatar imageberak ( 2017-04-13 04:28:16 -0600 )edit

Thank you very much for your answer, berek.

For some reason, my application is not allowed to contain FFmpeg, so i will re-build the OpenCV library "libopencv_java3.so" to exclude FFmpeg property.

Normally, OpenCV could re-build using "make" command, but i don't know the option to exclude FFmpeg. Can you tell me that?

Check gravatar imageCheck ( 2017-04-13 22:52:42 -0600 )edit

The option to exclude ffmpeg support is -D WITH_FFMPEG=OFF, but again, your application will not have FFMPEG since it is not supported on android... you do not have to rebuilt the library...

StevenPuttemans gravatar imageStevenPuttemans ( 2017-04-14 06:04:38 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-04-16 20:19:03 -0600

Check gravatar image

Thank you for your answer, Steven. I got it, no need to worry about FFMPEG license.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-04-13 01:30:49 -0600

Seen: 401 times

Last updated: Apr 13 '17