|
Recommendation for Syncing Long Movies to Electrophysiology Rig February 21, 2024 06:19PM | Registered: 1 year ago Posts: 3 |
hotkey('x', 'escape_screen(); assignin(''caller'',''continue_'',false);');
% Path to the video file
videoFile = 'test_vid.mp4';
% Create a VideoReader object to read video properties
v = VideoReader(videoFile);
mov = MovieGraphic(null_);
mov.List = {videoFile, [0 0] }; % movie filename
mov.info.FrameByFrame = 1;
tc = TimeCounter(mov);
tc.Duration = v.Duration * 1000 + 10000; %Length of the video plus 10 additional seconds (screen turns gray after video ends)
scene = create_scene(tc);
run_scene(scene);
idle(0); % clear the screenfunction [C,timingfile,userdefined_trialholder] = MovieTask_userloop(MLConfig,TrialRecord) timingfile = 'MovieTask.m'; userdefined_trialholder = ''; C = [];
|
Re: Recommendation for Syncing Long Movies to Electrophysiology Rig February 22, 2024 05:46PM | Admin Registered: 6 years ago Posts: 999 |
|
Re: Recommendation for Syncing Long Movies to Electrophysiology Rig February 23, 2024 08:50PM | Registered: 1 year ago Posts: 3 |
|
Re: Recommendation for Syncing Long Movies to Electrophysiology Rig February 23, 2024 11:19PM | Admin Registered: 6 years ago Posts: 999 |
The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.