This library is a wrapper of FFmpeg, in order to easily create MP4-formatted video from RGB
data. Start the creation of a video with video_start
, push frames to it with video_submit
, and finalize video
creation by calling video_finish
. An example is included in example/example.c
. Only one video can be created at a
time.
The following steps describe how to use this library with the MinGW-w64 compiler.
- Download and extract a release build.
- Link the import library
libmem2vid.dll.a
to your executable (with CMake, this is done withtarget_link_libraries
). - Include header
include/mem2vid/mem2vid.h
to your executable (with CMake, this is done withtarget_include_directories
). - Place all
.dll
files in the same directory as your built executable.
The following steps describe how to build this project with the MinGW-w64 compiler.
- Download FFmpeg import libraries and headers here. Choose version 4.2.2,
linking type development (
dev
). - Extract and place contents into
external/ffmpeg-4.2.2-dev
. - Download FFmpeg shared libraries here. Choose version 4.2.2,
linking type shared (
shared
). - Extract and place contents into
external/ffmpeg-4.2.2-shared
. - Build the library and example with CMake.
See here for the examples followed in creating the library.