Welcome! Log In Create A New Profile

Advanced

losing webcam video stream

Posted by lucast4 
losing webcam video stream
August 31, 2020 08:18AM
I recently been running into an error with webcam video. At some random point I will lose the webcam stream and video-saving will stop. At this point I have to restart matlab to regain stream. It doesn't seem to be a hardware issue, since I can stream the webcam using another software. This only started happening a few weeks ago, and, suspiciously, it happens for two independent computer/webcams. the only major change I can think of is some Windows updates.

Here is the traceback:
Warning: No video frames were written to this file. The file may be invalid.
> In VideoWriter/close (line 282)
In mltrialdata/export_to_file (line 75)
In run_trial (line 142)
In monkeylogic/UIcallback (line 879)

Thanks!
Re: losing webcam video stream
August 31, 2020 12:23PM
Sorry. That does not give me much to test with. Try a different video resolution or the latest NIMH ML.

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.