wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
197 stars 31 forks source link

Commercial use of this package? #158

Closed Ansh-Rathod closed 1 month ago

Ansh-Rathod commented 1 month ago

Hi, Can I use this package in the commercial app? I have seen this package uses the ffmpeg libs underhood and I was reading the licensing on the FFmpeg website that if I want to use ffmpeg in commercially then I have to use it under LGPL and libraries should be dynamically linked. and if you use ffmepg under GPL you have to open-source the app. I clearly dont know but can you please help me get a clear view on this?

wang-bin commented 1 month ago

ffmpeg used in this package is lgpl, all changes can be found in my avbuild repo. the playback library libmdk used by fvp is also free for commercial usage.

Ansh-Rathod commented 1 month ago

Great! that means it's a green light. thank you for clearing this.

Ansh-Rathod commented 1 month ago

btw can I use the ffmpeg from this package?

wang-bin commented 1 month ago

for distributing, the ffmpeg binary in fvp is enough. but it's not enough for compiling, you need headers and libs for compiling and linking, which can be download from https://sourceforge.net/projects/avbuild/files/ (I use packages with ends with -lite or -lite-lto). libmdk for iOS is linked against static ffmpeg, so you have to use another ffmpeg.framework, the framework can be generated with dylib2framework.sh in prebuilt package

Ansh-Rathod commented 1 month ago

Thank you so much.

wang-bin commented 1 month ago

I also uploaded FFmpeg.xcframework for iOS(and all apple platforms). You can use xcframework and headers in include dir to build your app, and FFmpeg.framework will be copied to your app bundle.

Ansh-Rathod commented 1 month ago

I finally figured it out, btw I was building this app and it uses fvp, now I have released the beta version https://fimosa.app you can just email me saying hi at help.fimosa@gmail.com and I'll send you the license key.

wang-bin commented 1 month ago

Thanks