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
126 stars 20 forks source link

[Question] Is it possible to use the ffmpeg libs like the command line version? #80

Closed CaptainDario closed 2 months ago

CaptainDario commented 2 months ago

I just stumbled upon this package and am curious if one can reuse the ffmpeg libraries for other things. Therefore, I would like to ask if it is possible to use the dynamic library from this package like the command-line version from FFmpeg, for example, can a command like this ffmpeg -i input.avi output.mp4 be executed.

wang-bin commented 2 months ago

this libffmpeg.so is the merged version of standard ffmpeg libraries(libavcodec + libavformat + libavutils + libavfilter + libswscale + libswresample), no command line code. ffmpeg command line tool source code is in https://github.com/FFmpeg/FFmpeg/tree/master/fftools, you have to slightly modify the code to build the tool as a dynamic/static library(maybe already exist on github), for example libffmpegcmd.so, and link against libffmpeg.so from this package.

wang-bin commented 2 months ago

this libffmpeg.so is built with https://github.com/wang-bin/avbuild, many features are disabled to reduce binary size