VideoWriter generating unexpected results

27 visualizzazioni (ultimi 30 giorni)
Touraj Tajbakhsh
Touraj Tajbakhsh il 11 Dic 2023
Commentato: Pierre il 30 Set 2025
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 Commenti
Shaozhen
Shaozhen il 29 Apr 2025
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 il 30 Set 2025
Same bug on 2025a. It seems incredibly difficult to fix.

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by