VideoReader returns zeros metadata

조회 수: 2 (최근 30일)
Bedi Egilmez
Bedi Egilmez 2015년 7월 3일
댓글: Francois Clemens 2018년 6월 6일
I am loading a video but I get an empty array as an result. I do not receive any error messages. Below you can see when I call VideoReader.
>> vidObj = VideoReader(filename)
vidObj =
VideoReader with properties:
General Properties:
Name: 'filename.mov'
Path: '~/filepath'
Duration: 31.2110
CurrentTime: 0
Tag: ''
UserData: []
Video Properties:
Width: 0
Height: 0
FrameRate: 0
BitsPerPixel: 0
VideoFormat: ''
As you see some metadata about my video are zero. I also can't gate frame number. What am I doing wrong?
Ubuntu 14.04 LTS, MATLAB R2015a Many thanks, bedi
  댓글 수: 5
Geoff Hayes
Geoff Hayes 2017년 5월 18일
Nicole Poltorak's answer moved here
Hi, did anyone solved that problem? I checked the formats supported for my system and everything is ok but I still get zero properties.
Francois Clemens
Francois Clemens 2018년 6월 6일
Weel,
I have the same problem as Nicole, I checked the supported formats (I'm working with high speed footage from iPhones 5 and 6) and they are mentioned as being supported, but still I get only zero for CurrentTime, which a bit annoying since I'm working on multiple camera synchronisation and want to identify missing frames.
regards
Francois Clemens

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

답변 (1개)

Harsha Medikonda
Harsha Medikonda 2015년 7월 6일
I understand that you see zeroes for the Video Properties. Video Reader supports file formats depending on the Operating System that you are working with. On executing the following line at the MATLAB command prompt, you can see the file formats that the OS supports.
formats = VideoReader.getFileFormats()
Please refer to the following link for more information VideoReader supported formats

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by