From e5cff5a3ef373a5090f45cd1dfb0b85d9c851d5d Mon Sep 17 00:00:00 2001
From: FuJuntang <strongtiger_001@163.com>
Date: 星期三, 06 七月 2022 10:04:09 +0800
Subject: [PATCH] Add video recorder and playback support.

---
 test/probe_test/Makefile |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/test/probe_test/Makefile b/test/probe_test/Makefile
index a9ba811..4b8a57b 100644
--- a/test/probe_test/Makefile
+++ b/test/probe_test/Makefile
@@ -19,16 +19,21 @@
 	@echo "  CC      " $@; 
 	@$(CC) $(CFLAGS) -c -o $@ $<
 
+FFMPEG_DIR = ../../thirdparty/ffmpeg
 OPENSSL_DIR = ../../thirdparty/openss
 
+LDFLAGS += -L$(FFMPEG_DIR)/lib
 LDFLAGS += -L$(OPENSSL_DIR)/lib
 LDFLAGS += -L../../
 LDLIBS += -lonvif_std
+LDLIBS += -lavcodec -lavdevice -lavfilter -lavformat \
+           -lavutil -lswresample -lswscale
 LDLIBS += -lcrypto -lssl -lpthread -ldl -lm -lrt
 
 INCLUDE += -I../../core/                               \
            -I../../comm/         \
            -I../../service      \
+           -I$(FFMPEG_DIR)/include          \
            -I$(OPENSSL_DIR)/include
 CFLAGS += $(INCLUDE)
 

--
Gitblit v1.8.0