Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CEF audio #16

Draft
wants to merge 36 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f800504
fix(ffmpeg): simplify options
ronag Mar 3, 2022
ae2e84e
fix(ffmpeg): htt pparasm
ronag Mar 3, 2022
ceee401
fix(ffmpeg): only modify mpeg demuxer if it exists
ronag Mar 3, 2022
4e99954
fix(ffmpeg): EAGAIN
ronag Mar 3, 2022
c03adde
fix typo
ronag Mar 3, 2022
c9b5a33
update cef
ronag Mar 3, 2022
b2bd466
fix: disable precompiled headers to enable debug builds
Mar 9, 2022
6f5b23f
Merge pull request #10 from deadbeef84/disable-precompiled-headers
ronag Mar 9, 2022
c51ee70
Revert "update cef"
ronag Mar 24, 2022
6ec4263
fix: pch removal
Mar 14, 2022
80dceb1
fix: upgrade boost to 1.78.0
Mar 14, 2022
4205258
fix: upgrade ffmpeg to 5.0
Mar 14, 2022
bc19d2d
fix: upgrade cef to 99
Mar 14, 2022
1127c40
fix: dont force config path to be relative to initial directory
Mar 29, 2022
61c7940
fix: exit gracefully on SIG(HUP|INT|TERM)
Mar 29, 2022
804ab35
Merge pull request #11 from nxtedition/upgrades
ronag Mar 31, 2022
afd7ea9
fix: remove unused stuff
Mar 31, 2022
5bae895
fixuP
Mar 31, 2022
2ce18d4
fixup
Mar 31, 2022
70025f8
fixup
Mar 31, 2022
b33109d
fixup
Mar 31, 2022
b359fe9
fix: broken cef log message
Mar 31, 2022
02d2a1c
Merge pull request #12 from nxtedition/cleanup2
ronag Apr 1, 2022
0fd0fba
fix: use egl instead of sfml-window to create opengl context (#13)
deadbeef84 Apr 13, 2022
1189107
fix: EGL context + improved error handling
Apr 14, 2022
59294d4
fix: egl headless (#14)
deadbeef84 May 19, 2022
ed704d1
fix: EGL surface type
Jun 17, 2022
4ce2e99
fix: dont use tbb allocator
Nov 25, 2022
edb36fa
feat: add support for LIVE background
ronag Nov 29, 2022
7e4d04f
fix: ffmpeg consumer pts
Dec 9, 2022
e06eb96
ffmpeg_consumer: remove sws scale
Dec 9, 2022
67cb25a
ffmepg_consumer: remove unused header
Dec 9, 2022
2129621
fix(ffmpeg): reconnect
ronag Feb 24, 2023
ce85e30
Add CefAudioHandler stubs to html_client
niklaspandersson Sep 20, 2023
de95e02
store mutable_frames instead of draw_frames in html_producer
niklaspandersson Sep 25, 2023
d655390
capture audio from CEF
niklaspandersson Oct 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
46 changes: 21 additions & 25 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,27 @@ option(ENABLE_HTML "Enable HTML module, require CEF" ON)
# Add custom cmake modules path
LIST (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMakeModules)

if (MSVC)
INCLUDE (Bootstrap_Windows)
else ()
INCLUDE (Bootstrap_Linux)
INCLUDE (Bootstrap_Linux)

# Output build settings
IF (SUPPORTED_PLATFORM)
MESSAGE (STATUS "Supported target platform: ${SUPPORTED_PLATFORM}")
ELSE ()
MESSAGE (STATUS "Unsupported target platform, will still attempt build!")
ENDIF ()
MESSAGE (STATUS "Target platform: ${CONFIG_PLATFORM}")
MESSAGE (STATUS "Target architecture: ${CONFIG_ARCH}")
MESSAGE (STATUS "CPU Count: ${CONFIG_CPU_COUNT}")
MESSAGE (STATUS "Target build type: ${CMAKE_BUILD_TYPE}")
MESSAGE (STATUS "Build Version: ${CONFIG_VERSION_MAJOR}.${CONFIG_VERSION_MINOR}.${CONFIG_VERSION_BUG} ${CONFIG_VERSION_TAG} (Revision: ${CONFIG_VERSION_GIT_HASH})")
# Output build settings
IF (SUPPORTED_PLATFORM)
MESSAGE (STATUS "Supported target platform: ${SUPPORTED_PLATFORM}")
ELSE ()
MESSAGE (STATUS "Unsupported target platform, will still attempt build!")
ENDIF ()
MESSAGE (STATUS "Target platform: ${CONFIG_PLATFORM}")
MESSAGE (STATUS "Target architecture: ${CONFIG_ARCH}")
MESSAGE (STATUS "CPU Count: ${CONFIG_CPU_COUNT}")
MESSAGE (STATUS "Target build type: ${CMAKE_BUILD_TYPE}")
MESSAGE (STATUS "Build Version: ${CONFIG_VERSION_MAJOR}.${CONFIG_VERSION_MINOR}.${CONFIG_VERSION_BUG} ${CONFIG_VERSION_TAG} (Revision: ${CONFIG_VERSION_GIT_HASH})")

CONFIGURE_FILE ("${PROJECT_SOURCE_DIR}/version.tmpl" "${CMAKE_BINARY_DIR}/generated/version.h")
INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}/generated")
CONFIGURE_FILE ("${PROJECT_SOURCE_DIR}/version.tmpl" "${CMAKE_BINARY_DIR}/generated/version.h")
INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}/generated")

ADD_SUBDIRECTORY (tools)
ADD_SUBDIRECTORY (accelerator)
ADD_SUBDIRECTORY (common)
ADD_SUBDIRECTORY (core)
ADD_SUBDIRECTORY (modules)
ADD_SUBDIRECTORY (protocol)
ADD_SUBDIRECTORY (shell)
endif ()
ADD_SUBDIRECTORY (tools)
ADD_SUBDIRECTORY (accelerator)
ADD_SUBDIRECTORY (common)
ADD_SUBDIRECTORY (core)
ADD_SUBDIRECTORY (modules)
ADD_SUBDIRECTORY (protocol)
ADD_SUBDIRECTORY (shell)
21 changes: 10 additions & 11 deletions src/CMakeModules/Bootstrap_Linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,17 @@ ENDIF ()

SET (BOOST_ROOT_PATH "/opt/boost" CACHE STRING "Path to Boost")
SET (ENV{BOOST_ROOT} "${BOOST_ROOT_PATH}")
SET (Boost_USE_DEBUG_LIBS ON)
SET (Boost_USE_RELEASE_LIBS OFF)
# SET (Boost_USE_DEBUG_LIBS ON)
# SET (Boost_USE_RELEASE_LIBS OFF)
SET (Boost_USE_STATIC_LIBS ON)
FIND_PACKAGE (Boost 1.66.0 COMPONENTS system thread chrono filesystem log locale regex date_time coroutine REQUIRED)
FIND_PACKAGE (Boost 1.78.0 COMPONENTS system thread chrono filesystem log locale regex date_time coroutine REQUIRED)

SET (FFMPEG_ROOT_PATH "/opt/ffmpeg/lib/pkgconfig" CACHE STRING "Path to FFMPEG")
SET (ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${FFMPEG_ROOT_PATH}")
FIND_PACKAGE (FFmpeg REQUIRED)
LINK_DIRECTORIES( ${FFMPEG_LIBRARY_DIRS} )

FIND_PACKAGE (OpenGL REQUIRED)
FIND_PACKAGE (FreeImage REQUIRED)
FIND_PACKAGE (OpenGL REQUIRED COMPONENTS OpenGL EGL)
FIND_PACKAGE (GLEW REQUIRED)
FIND_PACKAGE (TBB REQUIRED)
FIND_PACKAGE (OpenAL REQUIRED)
Expand All @@ -52,7 +51,6 @@ SET (GLEW_INCLUDE_PATH "${GLEW_INCLUDE_DIRS}")
SET (SFML_INCLUDE_PATH "${SFML_INCLUDE_DIR}")
SET (FFMPEG_INCLUDE_PATH "${FFMPEG_INCLUDE_DIRS}")
SET (ASMLIB_INCLUDE_PATH "${EXTERNAL_INCLUDE_PATH}")
SET (FREEIMAGE_INCLUDE_PATH "${FreeImage_INCLUDE_DIRS}")

set(CEF_INCLUDE_PATH "${CEF_ROOT_DIR}")
set(CEF_BIN_PATH "${CEF_ROOT_DIR}/Release")
Expand All @@ -64,13 +62,14 @@ ADD_DEFINITIONS (-DSFML_STATIC)
ADD_DEFINITIONS (-DUNICODE)
ADD_DEFINITIONS (-D_UNICODE)
ADD_DEFINITIONS (-DGLEW_NO_GLU)
ADD_DEFINITIONS (-D__NO_INLINE__) # Needed for precompiled headers to work
ADD_DEFINITIONS (-DGLEW_EGL)
# ADD_DEFINITIONS (-D__NO_INLINE__) # Needed for precompiled headers to work
ADD_DEFINITIONS (-DBOOST_NO_SWPRINTF) # swprintf on Linux seems to always use , as decimal point regardless of C-locale or C++-locale
ADD_DEFINITIONS (-DTBB_USE_CAPTURED_EXCEPTION=1)
ADD_DEFINITIONS (-DNDEBUG) # Needed for precompiled headers to work
# ADD_DEFINITIONS (-DNDEBUG) # Needed for precompiled headers to work

ADD_COMPILE_OPTIONS (-std=c++14) # Needed for precompiled headers to work
ADD_COMPILE_OPTIONS (-O3) # Needed for precompiled headers to work
# ADD_COMPILE_OPTIONS (-std=c++14) # Needed for precompiled headers to work
# ADD_COMPILE_OPTIONS (-O3) # Needed for precompiled headers to work
ADD_COMPILE_OPTIONS (-msse3)
ADD_COMPILE_OPTIONS (-mssse3)
ADD_COMPILE_OPTIONS (-msse4.1)
Expand Down Expand Up @@ -98,7 +97,7 @@ SET (CASPARCG_MODULE_COMMAND_LINE_ARG_INTERCEPTORS_STATEMENTS "" CACHE INTERNAL
SET (CASPARCG_MODULE_PROJECTS "" CACHE INTERNAL "")
SET (CASPARCG_RUNTIME_DEPENDENCIES "" CACHE INTERNAL "")

INCLUDE (PrecompiledHeader)
# INCLUDE (PrecompiledHeader)

FUNCTION (casparcg_add_include_statement HEADER_FILE_TO_INCLUDE)
SET (CASPARCG_MODULE_INCLUDE_STATEMENTS "${CASPARCG_MODULE_INCLUDE_STATEMENTS}"
Expand Down
203 changes: 0 additions & 203 deletions src/CMakeModules/Bootstrap_Windows.cmake

This file was deleted.

76 changes: 0 additions & 76 deletions src/CMakeModules/FindFreeImage.cmake

This file was deleted.

Loading