From 5dc20e14010d1cf87db73ddd0de2de452049e542 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期六, 28 九月 2019 16:33:18 +0800 Subject: [PATCH] add rec h265 --- csrc/buz/recorder.hpp | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/csrc/buz/recorder.hpp b/csrc/buz/recorder.hpp index d05ebb8..9c88bbb 100644 --- a/csrc/buz/recorder.hpp +++ b/csrc/buz/recorder.hpp @@ -50,6 +50,15 @@ void end_writer(); void maybe_dump_gop(); + + int init_write_h264(const bool audio); + int write_h264(const CPacket &pkt); + int end_write_h264(); + + int init_write_hevc(const bool audio); + int write_hevc(const CPacket &pkt); + int end_write_hevc(); + int mux_hevc(FILE *fp, const char *outfile); private: ffwrapper::FormatIn *in_; ffwrapper::FormatOut *out_; @@ -59,7 +68,7 @@ int end_frame; int cur_frame; int cur_frame_a; - + std::list<CPacket> list_pkt_; std::atomic_bool stop_recorder_; @@ -79,6 +88,8 @@ bool error_occured_; bool audio_; + + FILE *fp_; }; } } -- Gitblit v1.8.0