Why do i have this error? Frame must be 45 by 29, ERROR at using VideoWriter/writeVideo (line 344) Frame must be 54 by 31
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
abbxucy11
le 2 Nov 2016
Commenté : Walter Roberson
le 3 Nov 2016
i crop a video and then i save the croped video but it cant be written because of this error! any ideas how to solve it? With some videos it works and with some it doesnt,i dont know why.
0 commentaires
Réponse acceptée
Walter Roberson
le 2 Nov 2016
That error is caused by trying to write a frame that is a different size than the very first frame in the video. All frames in the video must be exactly the same size.
If you are using getframe() or saveas() or print() to capture information from the display, then you need to be aware that the size of what is displayed can change over time if you are not careful. To write a video frame it is recommend that you either generate your frame into a matrix of known size (not capturing from the display), or that if you do capture, that you imresize() or impad() or imcrop() to a fixed size.
2 commentaires
Walter Roberson
le 3 Nov 2016
Please show your imcrop() call.
Also, are you attempting to append to an existing video, or are you creating a new video?
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!