Compilation config for GstTranscoder

This commit is contained in:
Bruno Herbelin
2025-12-01 11:30:37 +01:00
parent 2dbaa70a75
commit 9fa6b6ce30
2 changed files with 7 additions and 1 deletions

View File

@@ -184,7 +184,7 @@ else ()
find_package(GStreamer 1.0 COMPONENTS base REQUIRED)
find_package(GStreamerPluginsBase 1.0.0 COMPONENTS app audio video pbutils gl)
find_package(GStreamerPluginsBase 1.0.0 COMPONENTS app audio video pbutils gl transcoder)
macro_log_feature(GSTREAMER_APP_LIBRARY_FOUND "GStreamerPluginsBase" "GStreamer app library"
"http://gstreamer.freedesktop.org/" TRUE "1.0.0")
macro_log_feature(GSTREAMER_AUDIO_LIBRARY_FOUND "GStreamerPluginsBase" "GStreamer audio library"
@@ -195,6 +195,8 @@ else ()
"http://gstreamer.freedesktop.org/" TRUE "1.0.0")
macro_log_feature(GSTREAMER_GL_LIBRARY_FOUND "GStreamerPluginsBase" "GStreamer opengl library"
"http://gstreamer.freedesktop.org/" TRUE "1.0.0")
macro_log_feature(GSTREAMER_TRANSCODER_LIBRARY_FOUND "GStreamerPluginsBase" "GStreamer transcoder library"
"http://gstreamer.freedesktop.org/" TRUE "1.0.0")
include_directories(
${GLIB2_INCLUDE_DIR}
@@ -205,6 +207,7 @@ else ()
${GSTREAMER_APP_INCLUDE_DIR}
${GSTREAMER_PBUTILS_INCLUDE_DIR}
${GSTREAMER_GL_INCLUDE_DIR}
${GSTREAMER_TRANSCODER_INCLUDE_DIR}
)
set( GSTREAMER_LIBRARIES
${GOBJECT_LIBRARIES}
@@ -215,6 +218,7 @@ else ()
${GSTREAMER_VIDEO_LIBRARY}
${GSTREAMER_PBUTILS_LIBRARY}
${GSTREAMER_GL_LIBRARY}
${GSTREAMER_TRANSCODER_LIBRARY}
)
endif ()

View File

@@ -59,6 +59,8 @@ foreach(_component ${GStreamerPluginsBase_FIND_COMPONENTS})
_find_gst_plugins_base_component(VIDEO video.h)
elseif (${_component} STREQUAL "gl")
_find_gst_plugins_base_component(GL gstglconfig.h)
elseif (${_component} STREQUAL "transcoder")
_find_gst_plugins_base_component(TRANSCODER gsttranscoder.h)
else()
message (AUTHOR_WARNING "FindGStreamer.cmake: Invalid component \"${_component}\" was specified")
endif()