VideoWriter generating unexpected results

조회 수: 22 (최근 30일)
Touraj Tajbakhsh
Touraj Tajbakhsh 2023년 12월 11일
댓글: Pierre 2025년 9월 30일
I believe the VideoWriter in R2023b has a bug. It can be reproduced with this piece of code:
v = VideoWriter('test.mp4', 'MPEG-4'); % use h264 encoding
v.FrameRate = 30;
v.Quality = 100;
open(v)
vidFrame = ones([1920, 1080, 3]);
writeVideo(v, vidFrame);
close(v)
There are black lines appearing in the output video:
I am on MacOS Sonoma 14.1.2 (M2 Ultra).
  댓글 수: 11
Shaozhen
Shaozhen 2025년 4월 29일
Same here. Apple Silicon M4, running 2024a
I tried different resolutions too, but none of them work. The only work-around I have is to use Uncompressed AVI.
Pierre
Pierre 2025년 9월 30일
Same bug on 2025a. It seems incredibly difficult to fix.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by