mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
Enable video stack individually (#3469)
This commit is contained in:
parent
e6506a96d4
commit
3dcd0ed463
@ -57,7 +57,8 @@ option(ENABLE_SCTP "Enable SCTP" ON)
|
|||||||
option(ENABLE_WEBRTC "Enable WebRTC" ON)
|
option(ENABLE_WEBRTC "Enable WebRTC" ON)
|
||||||
option(ENABLE_X264 "Enable x264" OFF)
|
option(ENABLE_X264 "Enable x264" OFF)
|
||||||
option(ENABLE_WEPOLL "Enable wepoll" ON)
|
option(ENABLE_WEPOLL "Enable wepoll" ON)
|
||||||
option(DISABLE_REPORT "Disable report to report.zlmediakit.com" off)
|
option(ENABLE_VIDEOSTACK "Enable video stack" OFF)
|
||||||
|
option(DISABLE_REPORT "Disable report to report.zlmediakit.com" OFF)
|
||||||
option(USE_SOLUTION_FOLDERS "Enable solution dir supported" ON)
|
option(USE_SOLUTION_FOLDERS "Enable solution dir supported" ON)
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# 设置socket默认缓冲区大小为256k.如果设置为0则不设置socket的默认缓冲区大小,使用系统内核默认值(设置为0仅对linux有效)
|
# 设置socket默认缓冲区大小为256k.如果设置为0则不设置socket的默认缓冲区大小,使用系统内核默认值(设置为0仅对linux有效)
|
||||||
@ -535,6 +536,6 @@ file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/default.pem" DESTINATION ${EXECUTABLE_OUT
|
|||||||
|
|
||||||
# 拷贝VideoStack 无视频流时默认填充的背景图片
|
# 拷贝VideoStack 无视频流时默认填充的背景图片
|
||||||
# Copy the default background image used by VideoStack when there is no video stream
|
# Copy the default background image used by VideoStack when there is no video stream
|
||||||
if (ENABLE_FFMPEG AND ENABLE_X264)
|
if (ENABLE_VIDEOSTACK AND ENABLE_FFMPEG AND ENABLE_X264)
|
||||||
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/conf/novideo.yuv" DESTINATION ${EXECUTABLE_OUTPUT_PATH})
|
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/conf/novideo.yuv" DESTINATION ${EXECUTABLE_OUTPUT_PATH})
|
||||||
endif ()
|
endif ()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#if defined(ENABLE_X264) && defined(ENABLE_FFMPEG)
|
#if defined(ENABLE_VIDEOSTACK) && defined(ENABLE_X264) && defined(ENABLE_FFMPEG)
|
||||||
#include "VideoStack.h"
|
#include "VideoStack.h"
|
||||||
#include "Codec/Transcode.h"
|
#include "Codec/Transcode.h"
|
||||||
#include "Common/Device.h"
|
#include "Common/Device.h"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#if defined(ENABLE_X264) && defined(ENABLE_FFMPEG)
|
#if defined(ENABLE_VIDEOSTACK) && defined(ENABLE_X264) && defined(ENABLE_FFMPEG)
|
||||||
#include "Codec/Transcode.h"
|
#include "Codec/Transcode.h"
|
||||||
#include "Common/Device.h"
|
#include "Common/Device.h"
|
||||||
#include "Player/MediaPlayer.h"
|
#include "Player/MediaPlayer.h"
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
#include "ZLMVersion.h"
|
#include "ZLMVersion.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ENABLE_X264) && defined (ENABLE_FFMPEG)
|
#if defined(ENABLE_VIDEOSTACK) && defined(ENABLE_X264) && defined (ENABLE_FFMPEG)
|
||||||
#include "VideoStack.h"
|
#include "VideoStack.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1910,7 +1910,7 @@ void installWebApi() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
#if defined(ENABLE_X264) && defined(ENABLE_FFMPEG)
|
#if defined(ENABLE_VIDEOSTACK) && defined(ENABLE_X264) && defined(ENABLE_FFMPEG)
|
||||||
VideoStackManager::Instance().loadBgImg("novideo.yuv");
|
VideoStackManager::Instance().loadBgImg("novideo.yuv");
|
||||||
NoticeCenter::Instance().addListener(nullptr, Broadcast::kBroadcastStreamNoneReader, [](BroadcastStreamNoneReaderArgs) {
|
NoticeCenter::Instance().addListener(nullptr, Broadcast::kBroadcastStreamNoneReader, [](BroadcastStreamNoneReaderArgs) {
|
||||||
auto id = sender.getMediaTuple().stream;
|
auto id = sender.getMediaTuple().stream;
|
||||||
|
Loading…
Reference in New Issue
Block a user