Fastest Way to Read a Frame from a Video File
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ian Liu
il 6 Lug 2017
Risposto: Walter Roberson
il 6 Lug 2017
What is the quickest way to chop a video file into frames? I know of two methods: readFrame() and vision.VideoFileReader() in conjunction with step(). Are their any other methods that are faster than these two? I need to be able to move through videos as fast as possible.
Thanks, Ian
0 Commenti
Risposta accettata
Walter Roberson
il 6 Lug 2017
Yes, there are faster ways. You can construct HDL for a custom chip, or program an FPGA to read byte streams that are video files and decode them.
Be sure to store the data on a fast SSD, especially one constructed with Intel's 3D XPoint memory, perhaps using Optane Technology
Or, since MATLAB's routines are wrappers around operating-system provided media reading library, you could shave off a few microseconds here and there by writing a mex interface to an appropriate media reading library without doing any error checking.
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!