I have a problem within VideoReader

조회 수: 4 (최근 30일)
Chaewon
Chaewon 2013년 10월 16일
편집: Chaewon 2013년 10월 16일
Hi. I've try to read MP4 video in matlab.
Before I changed my computer, VideoReader worked well.
but recently I change my computer, and then I get a problem with reading the same video using VideoReader in matlab.
When I try
>> v = VideoReader('video.mp4');
I get a message like
Error using VideoReader/init (line 450)
Unable to determine the codec required.
So I search MPEG-4 video codec like ffdshow, Xvid, Z-codec ... I've try several codec except only Z-codec is work.
but I have another message like below,
>> v = VideoReader('video.mp4');
Warning: Unable to determine the number of frames in this file.
>> get(v)
General Settings:
Duration = 300.4340
Name = action_200.mp4
Path = C:\Users\code
Tag =
Type = VideoReader
UserData = []
Video Settings:
BitsPerPixel = 24
FrameRate = 29.9999
Height = 480
NumberOfFrames = []
VideoFormat = RGB24
Width = 800
and I cannot access to right frame. I mean
>> im1 = read(v, 10);
>> im2 = read(v, 10);
im1 and im2 are not same always. My current environments are
Processor: Intel® Core™ i7-3770 CPU @ 3.40GHz.
RAM: 8GB.
Graphic card: NVIDIA GeForce GTX 660.
OS: Windows 7 Enterprise KN 64bit.
MATLAB: R2013a 64bit.
I don't know what and where is wrong with this problem. Anyone can help me?

답변 (0개)

카테고리

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