video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-07-26 1518fb1f0e59beedfa32663adb3d0bee302f1ad5
csrc/wrapper.cpp
@@ -201,7 +201,7 @@
            auto in = init_reader(input_url_.c_str());
            if (!in) {
                logIt("ERROR: init_reader!\n");
                logIt("ERROR: init_reader! url: %s\n", input_url_.c_str());
                usleep(200000);
                continue;
            }
@@ -227,9 +227,9 @@
                    break;
                }
                //test
                if(recorder_)
                    if(id % 250 == 0)
                        recorder_->FireRecorder(id);
                // if(recorder_)
                //     if(id % 250 == 0)
                //         recorder_->FireRecorder(id);
            }
        }
    }
@@ -277,6 +277,7 @@
            info.file_frame_index = index;
            info.file_path = path;
            list_rec_.emplace_back(info);
            logIt("list rec files count : %d", list_rec_.size());
        }
    }