From 993a7850d6cffb341fefabb68fbb97168c4a461c Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期一, 26 十二月 2016 16:27:16 +0800 Subject: [PATCH] rtsp server ok --- RtspFace/main.cpp | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/RtspFace/main.cpp b/RtspFace/main.cpp index c7e3c2b..ea5505d 100644 --- a/RtspFace/main.cpp +++ b/RtspFace/main.cpp @@ -14,6 +14,7 @@ PipeLine pipeLine; pipeLine.register_elem_creator("PL_RTSPClient", create_PL_RTSPClient); + pipeLine.register_elem_creator("PL_RTSPServer", create_PL_RTSPServer); pipeLine.register_elem_creator("PL_H264Decoder", create_PL_H264Decoder); pipeLine.register_elem_creator("PL_AVFrameYUV420", create_PL_AVFrameYUV420); pipeLine.register_elem_creator("PL_H264Encoder", create_PL_H264Encoder); @@ -22,6 +23,10 @@ RTSPConfig rtspConfig; rtspConfig.progName = argv[0]; rtspConfig.rtspURL = argv[1]; + rtspConfig.aux = false; // ffmpeg need aux + rtspConfig.verbosityLevel = 1; + rtspConfig.tunnelOverHTTPPortNum = 0; + rtspConfig.args = nullptr; bool ret = rtspClient->init(&rtspConfig); if (!ret) { @@ -29,8 +34,8 @@ exit(EXIT_FAILURE); } - PL_H264Decoder* h264Decoder = (PL_H264Decoder*)pipeLine.push_elem("PL_H264Decoder"); - h264Decoder->init(nullptr); + //PL_H264Decoder* h264Decoder = (PL_H264Decoder*)pipeLine.push_elem("PL_H264Decoder"); + //h264Decoder->init(nullptr); //PL_AVFrameYUV420* avFrameYUV420 = (PL_AVFrameYUV420*)pipeLine.push_elem("PL_AVFrameYUV420"); //avFrameYUV420->init(nullptr); -- Gitblit v1.8.0