All Projects → IljaKosynkin → Ffmpeg Development Kit

IljaKosynkin / Ffmpeg Development Kit

Labels

Projects that are alternatives of or similar to Ffmpeg Development Kit

Catkin tools
Command line tools for working with catkin
Stars: ✭ 115 (-9.45%)
Mutual labels:  cmake
Shiyanlou
学习C & C++ & python&汇编语言 LLVM编译器 数据结构 算法 操作系统 单片机 linux 面试
Stars: ✭ 1,909 (+1403.15%)
Mutual labels:  cmake
Chip8cpp
Chip-8 Emulator in C++
Stars: ✭ 125 (-1.57%)
Mutual labels:  cmake
Xray 16
Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World. Join OpenXRay! ;)
Stars: ✭ 1,806 (+1322.05%)
Mutual labels:  cmake
Griefly
Griefly: Yet Another Space Station Remake
Stars: ✭ 121 (-4.72%)
Mutual labels:  cmake
Flutter embedded
Embedded Flutter
Stars: ✭ 123 (-3.15%)
Mutual labels:  cmake
Sampgdk
Write SA-MP gamemodes in C/C++
Stars: ✭ 113 (-11.02%)
Mutual labels:  cmake
Opencv4androidwithcmake
Use Android Studio 3.0 (>=2.2) and Cmake Toolchain to make your Android device fly with Opencv (OpenCV 3.40)
Stars: ✭ 126 (-0.79%)
Mutual labels:  cmake
Llvm Pass Tutorial
A step-by-step tutorial for building an LLVM sample pass
Stars: ✭ 122 (-3.94%)
Mutual labels:  cmake
Core
parallel finite element unstructured meshes
Stars: ✭ 124 (-2.36%)
Mutual labels:  cmake
Commotion Router
The build system for the OpenWRT-based Commotion firmware.
Stars: ✭ 117 (-7.87%)
Mutual labels:  cmake
Gr Tpms
Tire Pressure Monitor tools for GNU Radio
Stars: ✭ 118 (-7.09%)
Mutual labels:  cmake
More Modern Cmake
Contains the slides and examples for my "More Modern CMake" and "Oh No! More Modern CMake" talks from "Meeting C++" 2018 and 2019
Stars: ✭ 123 (-3.15%)
Mutual labels:  cmake
Mars Vins
MARS-VINS binary release repository
Stars: ✭ 116 (-8.66%)
Mutual labels:  cmake
Ros Travis Integration
ROS package continuous integration using travis-CI
Stars: ✭ 125 (-1.57%)
Mutual labels:  cmake
Kernel Grok
grok the kernel via a cmake shim
Stars: ✭ 114 (-10.24%)
Mutual labels:  cmake
Sffmpeg
Full-featured static FFmpeg build helper
Stars: ✭ 122 (-3.94%)
Mutual labels:  cmake
Cmake
A set of cmake modules to assist in building code
Stars: ✭ 127 (+0%)
Mutual labels:  cmake
Openage
Free (as in freedom) open source clone of the Age of Empires II engine 🚀
Stars: ✭ 10,712 (+8334.65%)
Mutual labels:  cmake
Arduino Cmake Ng
CMake-Based framework for Arduino platforms
Stars: ✭ 123 (-3.15%)
Mutual labels:  cmake

FFmpeg Development Kit

Main purpose of this repository is to help people in building FFmpeg, mainly on mobile platforms (I tested this on Android, but armv7 shared libraries should be ok for iOS too).

Building

The project contains Android project called ffmpeg-sample which should be ready to build.

  • Make sure to hit "Refresh linked C++ project"
  • Run "Build"
  • Let it build
  • Run sample app on phone or emulator

Integrating in custom project

Navigate to app/src/main/cpp. Copy files ffmpeg.cmake, ffmpeg_build_system.cmake and copy_headers.cmake, libx264.cmake and libx264_build_system.cmake to your cpp folder. In your CMakeLists.txt file include following lines:

link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
include_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/include)

include(ExternalProject)

set(FFMPEG_LIBS avutil swresample avcodec avformat swscale avfilter avdevice)
set(FFMPEG_CONFIGURE_EXTRAS --enable-jni)
IF (${LIB_X264_ENABLED})
    include(libx264.cmake)

    set(FFMPEG_DEPENDS libx264_target)
    set(FFMPEG_EXTRA_C_FLAGS "-I${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/include")
    set(FFMPEG_EXTRA_LD_FLAGS "-L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")

    list(APPEND FFMPEG_CONFIGURE_EXTRAS --enable-gpl --enable-libx264 --enable-nonfree)
    list(APPEND FFMPEG_LIBS postproc x264)
ENDIF()
include(ffmpeg.cmake)

and modify your native library to include ${ffmpeg_src} and add dependency to the FFmpeg's target:

add_dependencies(<your target> ffmpeg_target)

Also make sure to link FFmpeg libs to your target:

target_link_libraries(<your target> ${log-lib} ${FFMPEG_LIBS})

Also add flag indicating if you want to add libx264 to your project or not to your module build.gradle like this:

externalNativeBuild {
    cmake {
        arguments "-DLIB_X264_ENABLED:BOOL=ON|OFF"
    }
}

That should be it. Sync your project with Gradle and you should have FFmpeg integrated.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].