フィルターのクリア

AVI TO YUV conversion

3 ビュー (過去 30 日間)
Chaine San Buenaventura
Chaine San Buenaventura 2013 年 10 月 6 日
回答済み: Balaji 2023 年 11 月 7 日
AVI to YUV conversion in Matlab please :)

回答 (1 件)

Balaji
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

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by