video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-07-26 e84510254860e916cbb48ec3de4557b14a99d76c
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());
        }
    }
@@ -291,6 +292,7 @@
        index = info.file_frame_index;
        path = info.file_path;
        list_rec_.pop_front();
        logIt("go get info index: %d, file: %s\n", index, path.c_str());
    }
    ////////decoder