Why doesn't VideoReader(filename) return?
이전 댓글 표시
I'm runnin the following code:
v = VideoReader('video.mp4')
on a video that plays with no problem in my media player, but the function just "hangs", i.e. doesn't return at all. I can't even pause execution or kill it with Ctrl+C, I have to force the whole Matlab session to end while potentially losing unsaved work.
Trying to debug this and 'stepping in' whenever poosible, I get to line 271 (function 'open' in the script
'C:\Program Files\MATLAB\R2020b\toolbox\shared\asynciolib\+asyncio\Channel.m')
% Gain exclusive access of the device.
obj.ChannelImpl.open(options);
which doesn't return. Matlab version is 2020b. Any help would be highly appreciated.
댓글 수: 4
Aditya Patil
2021년 4월 5일
Does this issue happen with only this file, or other videos as well? Would it be possible for you to share this video file?
Boldizsár Balog
2021년 5월 27일
I was facing the exact same issue, using the call you can see in the question. I've only met blocking behavior with a low resolution (32 px x 18 px), 60 fps video about an led, which I attached. I rendered this video with twice as many pixels (64 px x 36 px), with the same frame rate (60 fps) as well, and red the video successfully. The videos exceed the 5 MB limit, you can download them from this link: https://transferxl.com/08vFVGwmFXg5Hz . If it is not working I'll upload it somewhere else.
asaf benjamin
2021년 8월 4일
asaf benjamin
2021년 8월 9일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Video Formats and Interfaces에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!