mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
refine macro, use ffmpeg_stub and ffmpeg_tool, 0.9.224
This commit is contained in:
parent
9789335d0b
commit
2ed794ad52
5 changed files with 13 additions and 6 deletions
11
trunk/auto/depends.sh
Normal file → Executable file
11
trunk/auto/depends.sh
Normal file → Executable file
|
@ -658,12 +658,19 @@ if [ $SRS_FFMPEG_TOOL = YES ]; then
|
|||
if [ ! -f ${SRS_OBJS}/ffmpeg/bin/ffmpeg ]; then echo "build ffmpeg-2.1 failed."; exit -1; fi
|
||||
fi
|
||||
|
||||
# whether compile ffmpeg tool
|
||||
if [ $SRS_FFMPEG_TOOL = YES ]; then
|
||||
echo "#define SRS_AUTO_FFMPEG_TOOL" >> $SRS_AUTO_HEADERS_H
|
||||
else
|
||||
echo "#undef SRS_AUTO_FFMPEG_TOOL" >> $SRS_AUTO_HEADERS_H
|
||||
fi
|
||||
|
||||
# whatever the FFMPEG tools, if transcode and ingest specified,
|
||||
# srs always compile the FFMPEG tool stub which used to start the FFMPEG process.
|
||||
if [ $SRS_FFMPEG_STUB = YES ]; then
|
||||
echo "#define SRS_AUTO_FFMPEG" >> $SRS_AUTO_HEADERS_H
|
||||
echo "#define SRS_AUTO_FFMPEG_STUB" >> $SRS_AUTO_HEADERS_H
|
||||
else
|
||||
echo "#undef SRS_AUTO_FFMPEG" >> $SRS_AUTO_HEADERS_H
|
||||
echo "#undef SRS_AUTO_FFMPEG_STUB" >> $SRS_AUTO_HEADERS_H
|
||||
fi
|
||||
|
||||
if [ $SRS_TRANSCODE = YES ]; then
|
||||
|
|
|
@ -36,7 +36,7 @@ using namespace std;
|
|||
#include <srs_kernel_log.hpp>
|
||||
#include <srs_app_config.hpp>
|
||||
|
||||
#ifdef SRS_AUTO_FFMPEG
|
||||
#ifdef SRS_AUTO_FFMPEG_STUB
|
||||
|
||||
#define SRS_RTMP_ENCODER_COPY "copy"
|
||||
#define SRS_RTMP_ENCODER_NO_VIDEO "vn"
|
||||
|
|
|
@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
*/
|
||||
#include <srs_core.hpp>
|
||||
|
||||
#ifdef SRS_AUTO_FFMPEG
|
||||
#ifdef SRS_AUTO_FFMPEG_STUB
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
|
|
@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
// current release version
|
||||
#define VERSION_MAJOR "0"
|
||||
#define VERSION_MINOR "9"
|
||||
#define VERSION_REVISION "223"
|
||||
#define VERSION_REVISION "224"
|
||||
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
|
||||
// server info.
|
||||
#define RTMP_SIG_SRS_KEY "SRS"
|
||||
|
|
|
@ -125,7 +125,7 @@ void show_macro_features()
|
|||
srs_warn("compile nginx: off");
|
||||
#endif
|
||||
|
||||
#ifdef SRS_AUTO_FFMPEG
|
||||
#ifdef SRS_AUTO_FFMPEG_TOOL
|
||||
srs_trace("compile ffmpeg: on");
|
||||
#else
|
||||
srs_warn("compile ffmpeg: off");
|
||||
|
|
Loading…
Reference in a new issue