Properties of a video
4 次查看(过去 30 天)
显示 更早的评论
See attached picture. Several issues.
1:The video is OK but as you see numbers along the axes are not included. How to fix that? Or how to remove all?
2: The grid is different along all three axes, why?
3: Documentation of VideoWriter writes about many properties of a videoclip, like FrameRate. Where in the code this can be used?
axis([-3 3 -2 2 0 3.5]);
axis equal
grid on
%rest of code not shown
testfilm=VideoWriter('eerstefilm.avi');
open(testfilm);
writeVideo(testfilm,film);
close(testfilm);
0 个评论
采纳的回答
Guillaume
2019-1-14
Documentation of VideoWriter writes about many properties of a videoclip, like FrameRate. Where in the code this can be used?
Normally, before you open the video.
As for your other questions, it all depends on what film is. I would guess that it may be the result of getframe but you haven't shown that bit.
2 个评论
Guillaume
2019-1-14
In the Command screen? Somewhere in the code?
It's up to you. If the code you show is in a script, then in that script. E.g. if you wanted to set the frame rate you'd replace:
testfilm=VideoWriter('eerstefilm.avi');
open(testfilm);
by
testfilm=VideoWriter('eerstefilm.avi');
testfilm.FrameRate = 30; %must be before the call to open
open(testfilm);
更多回答(2 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!