How can I read an .avi file on Windows?

조회 수: 3 (최근 30일)
Maximilian Nentwich
Maximilian Nentwich 2017년 11월 14일
댓글: Walter Roberson 2017년 11월 15일
Hi,
I was trying to use VideoReader to open an .avi file on Windows. I either get 'Unable to read the file.' or can read the file but no frames. Since I have been able to use the same code on Linux a few weeks ago I guess something with Windows might be the issue. The file doesn't play on Windows media player, but does play on VLC.
Does anyone have an idea how it might be possible to use VideoReader in this case?
I can convert the file to .mpg I'm sure, but I do not want anything to change in the video, so I would only like to do this as a last resort.
Thanks, Max

채택된 답변

Walter Roberson
Walter Roberson 2017년 11월 15일
On Windows, the reading code uses Windows Media Viewer, so if you do not happen to have the appropriate codecs installed for that particular encoding then you will not be able to read it that way.
You might be able to find and install the right codec, but you might have to resort to something like getting VLC to transcode into individual files and read those.
If the codec happens to be Indeo3 or Indeo5 then you will not be able to find a WMV driver for it: the people who created Indeo3 and Indeo5 do not want those codecs to survive (those codecs used 32 bit offsets and so cannot be used for large movies.)

추가 답변 (1개)

Maximilian Nentwich
Maximilian Nentwich 2017년 11월 15일
Thanks for the answer! Would you know how to find out which codec was used, if it was Indeo3 or Indeo5? Otherwise, I will transcode the video.

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by