How do I obtain the height and width of a given YUV video clip under Matlab? Is there any reader() function or get() function? Anything else?

StackOverflow https://stackoverflow.com/questions/3887649

  •  28-09-2019
  •  | 
  •  

문제

How to get the width and height of a given yuv file? The dimensions are needed for subsequent movie/matrix processing.

도움이 되었습니까?

해결책

From the help of VIDEOREADER

%# create reader object (does not load file yet)
xyloObj = VideoReader('xylophone.mpg');

%# query dimensions
nFrames = xyloObj.NumberOfFrames;
vidHeight = xyloObj.Height;
vidWidth = xyloObj.Width;

EDIT

For older versions of Matlab, you can use AVIINFO to query the properties of a movie.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top