video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-12-04 8c70536eac5ab003b1ff28aaf02d4e8bfd432553
csrc/worker/rec.cpp
@@ -22,7 +22,7 @@
{
    rec::rec()
    :recRef_(NULL)
    ,min_cache_len_(cache_time * 25) // 最小缓存?分钟的视频,因为整个流程会有延迟,暂定?分钟
    ,min_cache_len_(cache_time * 25)
    {}
    rec::~rec()
@@ -75,7 +75,7 @@
                        start_id = i.v_id;
                    }
                }
            }else if (recRef_->isVideoPkt(&i.data->getAVPacket())){
            }else {
                // 视频帧,看是否缓存中有所有的duration数据
                if (i.v_id - start_id == duration){
                    end = index;