AVI TO YUV conversion
조회 수: 5 (최근 30일)
이전 댓글 표시
AVI to YUV conversion in Matlab please :)
댓글 수: 0
답변 (1개)
Balaji
2023년 11월 7일
Hi Chaine,
To convert an AVI video file to YUV format in MATLAB, you can use the `VideoReader` and `VideoWriter` functions along with some additional processing. Here's an example of how you can perform the conversion:
aviFileName = 'input.avi';
yuvFileName = 'output.yuv';
videoReader = VideoReader(aviFileName);
videoWriter = VideoWriter(yuvFileName, 'YUV');
open(videoWriter);
while hasFrame(videoReader)
frameRGB = readFrame(videoReader);
frameYUV = rgb2ycbcr(frameRGB);
writeVideo(videoWriter, frameYUV);
end
close(videoWriter);
Thanks
Balaji
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!