video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2020-03-25 3b4275366b252df97c0273e30ed7f1bbee6e9995
debug for local video
1个文件已修改
10 ■■■■■ 已修改文件
csrc/wrapper.cpp 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
csrc/wrapper.cpp
@@ -222,7 +222,7 @@
            bool exist = access(input_url_.c_str(), 0) == 0;
            if (exist){
                wTime <<= 1;
                wTime += wTime/2;
                file_rebootime++;
            }
@@ -233,10 +233,6 @@
                if (in->readPacket(&data->getAVPacket()) != 0){
                    logIt("read packet error, id: %lld", id);
                    break;
                }
                if (exist){
                    // 记录解码的文件有多少帧
                    file_frame++;
                }
                // 非音视频
                if (in->notVideoAudio(&data->getAVPacket())){
@@ -263,7 +259,9 @@
                id++;
                //本地文件太快sleep一下
                if (exist){
                if (exist && in->isVideoPkt(&data->getAVPacket())){
                    // 记录解码的文件有多少帧
                    file_frame++;
                    usleep(wTime);
                }