필터 지우기
필터 지우기

How to read a YUV video in MATLAB2015a

조회 수: 1 (최근 30일)
Ganesh K Davanagege
Ganesh K Davanagege 2015년 9월 27일
답변: Dinesh Iyer 2015년 9월 29일
How to read a YUV video in MATLAB2015a?
vision.VideoFileReader() supports avi/mpg/H.264 and others. But, not YUV.
Most of the video datasets available are in YUV.
This is the sample code to read avi file.
videoFReader = vision.VideoFileReader('viplanedeparture.avi');
videoPlayer = vision.VideoPlayer;
while ~isDone(videoFReader)
videoFrame = step(videoFReader);
step(videoPlayer, videoFrame);
end
release(videoPlayer);
release(videoFReader);
How can i convert this to read YUV file?

채택된 답변

Dinesh Iyer
Dinesh Iyer 2015년 9월 29일
You can install codecs such as ffdshow or K-lite codec pack and try and read the videos. If the vision.VideoFileReader is unable to read the file, then we you can install these codecs and try VideoReader function as well.
Dinesh

추가 답변 (1개)

Walter Roberson
Walter Roberson 2015년 9월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by