フィルターのクリア

How can I read a video with frame width and height as 6*8? Cannot read a single frame by using read() function

1 回表示 (過去 30 日間)
I am reading the attached video with Matlab R2021a, but I get an empty matrix result. However, this video can be played with PotPlayer or read by python code.
Matlab code:
file = VideoReader('tmpGetStiTimeFromFrametest.mov');
frm = read(file);

回答 (1 件)

Ananya Tewari
Ananya Tewari 2021 年 9 月 21 日
Hi,
I tried to read the frames from the provided video but it seems there is some issue with the videofile itself. I also tried to open that in my Desktop but the video was not playing. You can try checking the videofile again and use the read().
At my end I used an example ".mov" videofile and it was working fine, attaching that here for your reference.
v = VideoReader("example.mov");
frm = read(v);
  4 件のコメント
Yang Liu
Yang Liu 2021 年 9 月 22 日
@Walter Roberson The video is just a fre pixels cropped from a 720p, 120 frameRate video by ffmpeg. There is no interpolation.
Walter Roberson
Walter Roberson 2021 年 9 月 22 日
VLC is displaying at a lot larger than 6 x 8, and VLC is interpolating somehow.
That is, VLC knows the proper size of the video, but when it displays it in a larger window, it is not just replicating pixels; it is interpolating to a larger size when it displays. This is an issue with VLC.

サインインしてコメントする。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by