Added TS-RIST push output support

This commit is contained in:
Thulinma 2021-12-30 14:54:25 +01:00
parent d6bd9bee46
commit 6d4c52c3c0
3 changed files with 577 additions and 0 deletions

View file

@ -174,6 +174,19 @@ else()
message("Building without native SRT support")
endif()
option(NORIST "Disable building RIST support, regardless of library being present (by default RIST is enabled if libraries are installed)")
if (NOT NORIST)
find_library(RIST_LIB rist)
if(RIST_LIB)
add_definitions(-DWITH_RIST=1)
message("Building with RIST")
else()
message("Building without RIST support")
endif()
else()
message("Building without RIST support")
endif()
########################################
# MistLib - Header Files #
@ -530,6 +543,9 @@ macro(makeOutput outputName format)
if (";${ARGN};" MATCHES ";with_srt;")
target_link_libraries(MistOut${outputName} mist_srt)
endif()
if (";${ARGN};" MATCHES ";with_rist;")
target_link_libraries(MistOut${outputName} rist cjson)
endif()
target_link_libraries(MistOut${outputName} mist )
install(
TARGETS MistOut${outputName}
@ -557,6 +573,9 @@ makeOutput(TS ts ts)
if(SRT_LIB)
makeOutput(TSSRT tssrt ts debased with_srt)
endif()
if(RIST_LIB)
makeOutput(TSRIST tsrist ts debased with_rist)
endif()
makeOutput(HTTPTS httpts http ts)
makeOutput(HLS hls http ts)
makeOutput(CMAF cmaf http)#LTS