A Haxe library which provides support for handling video, audio, and multimedia files and streams on native platforms.
extension-ffmpeg
boasts the following features:
avi
, mp4
, webm
, flv
, mkv
, and more.Contributions are highly welcome! Feel free to open an issue or pull request if you have any questions or suggestions.
To build extension-ffmpeg
from source, perform these steps to fetch dependencies:
Download ZIP
button on the Github page.
git clone https://github.com/MasterEric/extension-ffmpeg
to create a local Git repository.MSVC v142 - VS 2019 C++ x64/x86 build tools
Windows SDK (10.0.17763.0)
C:/CPP/msys64
directory.git submodule update --init --recursive --remote
to download the source for FFmpeg.Then, follow these steps:
x64 Native Tools Command Prompt for VS 2019
and call "C:\CPP\msys64\msys2_shell.cmd" -use-full-path
.pacman -Su git wget make tar unzip zip mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-cmake autoconf automake libtool mingw-w64-x86_64-jq python zstd nasm
(one-time step)../lib.src/
, and run ./build_win64.sh
to build the Windows64
library files.Now, we need to build libraries for 32-bit machines.
lime rebuild
performs two builds, one for each architecture.
x86 Native Tools Command Prompt for VS 2019
and call "C:\CPP\msys64\msys2_shell.cmd" -use-full-path
../lib.src/ffmpeg
, and run make clean
../lib.src/
and run build_win32.sh
to build the Windows32
library files.This will generate the necessary .lib
files that you need to build the extension.
To build the extension itself, run lime rebuild extension-ffmpeg windows
.
You will need to repeat this step if you change any of the C++ files located in the project
folder.
Be sure to run lime rebuild extension-ffmpeg windows -debug
instead if you are planning to debug the target application.
To build extension-ffmpeg
from source, follow these steps:
Download ZIP
button on the Github page.
git clone https://github.com/MasterEric/extension-ffmpeg
to create a local Git repository.libvdpau-dev libva-dev libx11-dev
git submodule update --init --recursive --remote
to download the source for FFmpeg../lib.src/
../build_linux64.sh
.
This will generate the necessary .a
files that you need to build the extension.
To build the extension itself, run lime rebuild extension-ffmpeg linux
.
You will need to repeat this step if you change any of the C++ files located in the project
folder.
Be sure to run lime rebuild extension-ffmpeg linux -debug
instead if you are planning to debug the target application.
To build extension-ffmpeg
from source, follow these steps:
Download ZIP
button on the Github page.
git clone https://github.com/MasterEric/extension-ffmpeg
to create a local Git repository.brew install nasm openssl
git submodule update --init --recursive --remote
to download the source for FFmpeg../lib.src/
../build_mac64.sh
.
This will generate the necessary .a
files that you need to build the extension.
To build the extension itself, run lime rebuild extension-ffmpeg mac
.
You will need to repeat this step if you change any of the C++ files located in the project
folder.
Be sure to run lime rebuild extension-ffmpeg mac -debug
instead if you are planning to debug the target application.
To build extension-ffmpeg
from source, follow these steps:
git submodule update --recursive
to download the source for FFmpeg../lib.src/
.build_android64.sh
to your ndk path,./build_android64.sh
.This will generate the necessary .a
files that you need to build the extension.
To build the extension itself, run lime rebuild extension-ffmpeg android
.
this is still on testing, only 64 bits is supported as of now
Support for other platforms (Android, iOS, HTML5 via emscripten) is in development.
The extension-ffmpeg
library is made available under the permissive MIT License.
This software utilizes libraries provided by FFmpeg, licensed under the LGPLv3.0. Its sources can be downloaded here.