cabe98cb4e
This just adds FFmpeg's default AAC encoder as an audio encoder. Going to try to start getting things going with the RTMP output library next.
48 lines
1.4 KiB
CMake
48 lines
1.4 KiB
CMake
project(obs-ffmpeg)
|
|
|
|
find_package(Libavcodec REQUIRED)
|
|
include_directories(${Libavcodec_INCLUDE_DIR})
|
|
add_definitions(${Libavcodec_DEFINITIONS})
|
|
|
|
find_package(Libavutil REQUIRED)
|
|
include_directories(${Libavutil_INCLUDE_DIR})
|
|
add_definitions(${Libavutil_DEFINITIONS})
|
|
|
|
find_package(Libswscale REQUIRED)
|
|
include_directories(${Libswscale_INCLUDE_DIR})
|
|
add_definitions(${Libswscale_DEFINITIONS})
|
|
|
|
find_package(Libavformat REQUIRED)
|
|
include_directories(${Libavformat_INCLUDE_DIR})
|
|
add_definitions(${Libavformat_DEFINITIONS})
|
|
|
|
find_package(Libswresample REQUIRED)
|
|
include_directories(${Libswresample_INCLUDE_DIR})
|
|
add_definitions(${Libswresample_DEFINITIONS})
|
|
|
|
set(obs-ffmpeg_HEADERS
|
|
obs-ffmpeg-formats.h)
|
|
set(obs-ffmpeg_SOURCES
|
|
obs-ffmpeg.c
|
|
obs-ffmpeg-aac.c
|
|
obs-ffmpeg-output.c)
|
|
|
|
add_library(obs-ffmpeg MODULE
|
|
${obs-ffmpeg_HEADERS}
|
|
${obs-ffmpeg_SOURCES})
|
|
target_link_libraries(obs-ffmpeg
|
|
libobs
|
|
${Libavcodec_LIBRARIES}
|
|
${Libavutil_LIBRARIES}
|
|
${Libswscale_LIBRARIES}
|
|
${Libavformat_LIBRARIES}
|
|
${Libswresample_LIBRARIES})
|
|
|
|
install_obs_plugin(obs-ffmpeg)
|
|
|
|
obs_fixup_install_target(obs-ffmpeg PATH ${Libavcodec_LIBRARIES})
|
|
obs_fixup_install_target(obs-ffmpeg PATH ${Libavutil_LIBRARIES})
|
|
obs_fixup_install_target(obs-ffmpeg PATH ${Libswscale_LIBRARIES})
|
|
obs_fixup_install_target(obs-ffmpeg PATH ${Libavformat_LIBRARIES})
|
|
obs_fixup_install_target(obs-ffmpeg PATH ${Libswresample_LIBRARIES})
|