Matlab's video functions refuses to work, gives error missing codec DJIP
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am working on a script that will extract information from a bunch of recorded measurment log files. A part of the data is in video-format (.avi). I need to extract specific frames and croup them so I need to read them into matlab and then manipulate them in some ways. My here idea is to use a VideoReader-object and here comes the problem; when running this code:
v = VideoReader('C:\Path_To_Avi\avi_filename.avi');
I get the following error:
Error using VideoReader/init (line 619)
The file requires the following codec(s) to be installed on your system:
DJIP
Error in VideoReader (line 172)
obj.init(fileName);
I get a similar error when running this piece of code:
v = implay('C:\Path_To_Avi\avi_filename.avi');
Matlab is still complaining about DJIP codec.
So I suppose DJIP is something that is missing on my computer (a windows 7 machine) and needs to be installed. How do I do that? I get no real help when googling it : /. Or, is there some other better way to edit video in matlab? It needs to work on recent versions of matlab (post 2015) so I cannot use aviread().
Tack så mycket!
//Arvid P
0 commentaires
Réponses (1)
Steven Lord
le 28 Nov 2017
Can you play this AVI file by double-clicking on it in the Windows File Explorer? I suspect Windows will offer to download the appropriate codec (or will do it automatically.) Once you've done that, try opening it in MATLAB again.
If that doesn't work, I recommend contacting the hardware or software company whose product produced those files. I expect they can send you the codec you will need to interpret those logs or direct you to where you can get it.
0 commentaires
Voir également
Catégories
En savoir plus sur Audio and Video Data dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!