Matlab's video functions refuses to work, gives error missing codec DJIP
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Steven Lord
2017-11-28
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!