cyberorg012 / mem2vid

FFmpeg wrapper to create MP4 videos from RGB data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Using

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 with target_link_libraries).
  • Include header include/mem2vid/mem2vid.h to your executable (with CMake, this is done with target_include_directories).
  • Place all .dll files in the same directory as your built executable.

Building

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.

About

FFmpeg wrapper to create MP4 videos from RGB data.

License:Other


Languages

Language:C 85.4%Language:CMake 14.6%