Clear Filters
Clear Filters

Matlab Video File memory limitation

2 views (last 30 days)
Shawn Fernandes
Shawn Fernandes on 30 Mar 2018
Edited: Shawn Fernandes on 31 Mar 2018
I tried to open a 1080p XVID file in matlab, and 640 * 480 raw video file into matlab with the hasframe and read frame and videoreader command, but the number of frames opened by each video in matlab is less than the actual total number of frames in each video.
1080p XVID video -> original frames number -> 35,000 -> opened on matlab -> 4500
640 * 480 video -> original frames number -> 13,500 -> opened on matlab -> 11500
Using FFMPEG to extract and dump the raw frames gives me the entire range of frames of both the videos.
Is this expected? Please let me know if I have missed something.
The workaround I follow is extract all the frames using ffmpeg, and read the image sequence from the folder.

Answers (0)

Community Treasure Hunt

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

Start Hunting!