Large video file processing (~10GB)

7 ビュー (過去 30 日間)
Jacob Bucci
Jacob Bucci 2012 年 10 月 15 日
コメント済み: Image Analyst 2022 年 9 月 9 日
Hello,
I'm looking to process large video files to run an object tracking algorithm.
I've been developing using the VideoReader object to run through the images of the movie, but it gets bogged down and will never complete with large files. I read that using the vision.VideoFileReader object ( http://www.mathworks.com/matlabcentral/newsreader/view_thread/287250) is a better option for this more streaming-type application, but it seems to really struggle with the size too.
Is there an easy way to process multi-GB video files in a reasonable amount of time or should I focus on down-sampling everything into more manageable chunks?
Thanks,
Jake

回答 (2 件)

Image Analyst
Image Analyst 2012 年 10 月 15 日
Are you using imshow() to display images? If you don't use cla in between calls to it, then all the images get stored in the display buffer (the axes) and that can really slow things down a lot if you have dozens of images. Just one thing to check that might speed things up.
  1 件のコメント
Jacob Bucci
Jacob Bucci 2012 年 10 月 17 日
I am not, although at one point I was and removing it didn't make a noticeable improvement.. To give you an idea, these videos usually come with ~2 million frames to sample from. The slowest I can sample is 1 frame per second which equates to every 30th frame - and even then it still gets bogged down big time.

サインインしてコメントする。


Hb
Hb 2022 年 9 月 8 日
編集済み: Hb 2022 年 9 月 8 日
Hello, I have used the sample code that you have written, Video Processing Tutorial, and I too face the similar issue when trying to read avi video files that are about 12GB. Could you please recommend a solution? Thank you!
  7 件のコメント
Hb
Hb 2022 年 9 月 8 日
Just to clarify, I have no issue in reading and writing avi files that around 2GB, but it errors out when trying to read files around 14GB. Also, I'm not able to attach a video, as there is a 5MB limit.
Image Analyst
Image Analyst 2022 年 9 月 9 日
Then I think you'll need to work with tech support as we can't help you anymore.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by