VideoReader returns zeros metadata
古いコメントを表示
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
2015 年 7 月 4 日
Bedi - what has filename been initialized to?
Dinesh Iyer
2015 年 7 月 6 日
Can you confirm if the file has a video stream? It looks like the file might only have an audio stream.
Victor Chen
2016 年 8 月 12 日
I got caught up in the same problem. And I am sure that my operating system(linux) supports reading .avi files. I've been stuck for a whole day. Any ideas?
>> VideoReader(VideoName)
ans =
VideoReader with properties:
General Properties:
Name: 'v_ApplyEyeMakeup_g01_c01.avi'
Path: '/u/vis/weijia/dataset/UCF-101_original/ApplyEyeMakeup'
Duration: 0
CurrentTime: 0
Tag: ''
UserData: []
Video Properties:
Width: 0
Height: 0
FrameRate: 0
BitsPerPixel: 0
VideoFormat: ''
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
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
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()
カテゴリ
ヘルプ センター および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!