필터 지우기
필터 지우기

VideoReader is unable to read properties and frames

조회 수: 7 (최근 30일)
Maximilian Nentwich
Maximilian Nentwich 2021년 2월 8일
댓글: Adam Danz 2021년 7월 31일
Hi everyone,
I have been using VideoReader() for a while, but have run into some issues after updating to Ubuntu 20.04. It seems that it isn't able to load any of the video properties, or the frames, anymore.
Reading a file with:
vid = VideoReader('The_Present.mp4');
I just get something like this:
General Properties:
Name: 'The_Present.mp4'
Path: '/media/max/RedPassport/ECoGData/Tobii/video_files'
Duration: 258.6010
CurrentTime: 258.6010
NumFrames: 0
Video Properties:
Width: 0
Height: 0
FrameRate: 0
BitsPerPixel: 0
VideoFormat: ''
Reading a frame with
readFrame(vid)
results in
'No more frames available to read from file.'
When I loaded the same file on Ubuntu 18.04 I had no issues.
I suspect it is some issue with reading the codec. However, changing the codes on the movie file isn't an option as I need to preserve the information as is.
I tried to update gstreamer, but that didn't help.
I would apprechiate any help on this!
  댓글 수: 1
Adam Danz
Adam Danz 2021년 7월 31일
I'm also having this problem with R2021a Update 4 / Windows 10. But sometimes it works.
It's frustrating.

댓글을 달려면 로그인하십시오.

채택된 답변

Maximilian Nentwich
Maximilian Nentwich 2021년 2월 8일
Updating Matlab from 2020a to 2020b solved this issue.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by