video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-09-27 762251329bca80422a8e65d0cdb36e86e84883cf
csrc/buz/recorder.cpp
@@ -74,7 +74,7 @@
            
            int pid = getpid();
            file_path_ = dir_ + "/" + sole::uuid4().base62() + "-" + std::to_string(pid) + ".mp4";
            auto ret = out_->JustWriter(in_->allStreams(), file_path_.c_str());
            auto ret = out_->JustWriter(in_->getStream(AVMEDIA_TYPE_VIDEO), in_->getStream(AVMEDIA_TYPE_AUDIO), file_path_.c_str());
            if (ret){
                logIt("start record file: %s", file_path_.c_str());
                return 0;