簡體   English   中英

OpenCV 3.0的問題-記錄視頻內存泄漏

[英]Issue with OpenCV 3.0 - Recording Video memory leak

抱歉,有一個老問題,但我沒有發現對我有幫助。 我正在使用OpenCV 3.0框架開發iOS應用。

我正在使用cvVideoCamera delgate錄制視頻,但是當我設置_cvVideoCam.recordVideo = YES; ,它總是給我內存警告錯誤。 如果我設置cvVideoCam,recordVideo = YES; ,則沒有任何內存警告,但是在錄制完成時,輸出url始終在該位置顯示(空)。

提前致謝。

    please check your

    -(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer.....

     for - 
                                                     withPresentationTime:lastSampleTime] ) 
    {
                         NSLog(@"Video Writing Error");
                     }
                    if (pixelBuffer != nullptr)
                        CVPixelBufferRelease(pixelBuffer);
                 }

             }

because, in some of earlier version OpenCV forgot to release memory upon each append operation to MPEG4 output. May be its your need.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM