setting FrameRate in VideoWriter

10 views (last 30 days)
Dana Galili
Dana Galili on 17 Oct 2017
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

Answers (0)

Community Treasure Hunt

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

Start Hunting!