I have a problem within VideoReader
9 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および 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!