setting FrameRate in VideoWriter
4 次查看(过去 30 天)
显示 更早的评论
Hello, I am using an application (gVision) to record videos using a third party software (flycapture2 from FLIR, with grasshopper3 USB3 camera). I set the camera frame rate to 30 FPS, but for some reason this information is not recognised by MATLAB. when I start recording, I get this error message. I understand that gVision calls MATLAB function VideoWriter, but according to the documentation, the default framerate value is anyway 30 FPS. so I don't know if it had changed, and how to change it back. any help will be appreciated.
if true
% Error using set
Expected FrameRate to be finite.
Error in audiovideo.writer.properties.VideoProperties/set.FrameRate (line 76)
validateattributes(value, {'numeric'}, {'positive', 'real', ...
Error in VideoWriter/setDynamicProp (line 572)
obj.Profile.VideoProperties.(propertyName) = value;
Error in VideoWriter>@(obj,value)obj.setDynamicProp(metaprop.Name,value) (line 565)
prop.SetMethod = @(obj, value) obj.setDynamicProp(metaprop.Name, value);
Error in plugins.gvPlugin/openVidFiles (line 252)
logger.aviobj.FrameRate = data.FPS;
Error in plugins.gvBasic/StartStop (line 85)
logdata = openVidFiles(plug);
Error in plugins.gvBasic>@(obj,event)StartStop(plug)
Error while evaluating UIControl Callback.
end
thank you, Dana
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!