필터 지우기
필터 지우기

readFrame returns nothing on videos with bit depth 10 bits

조회 수: 1 (최근 30일)
YT
YT 2018년 10월 19일
답변: YT 2018년 10월 19일
I'm trying to read the frames from MKV/MP4 videos with either `read` or `readFrame` but I noticed the following while doing so:
  • First: some MKV/MP4 files seem to work while others do not. Could this be because of different video encoding settings?
  • Second: using `read(v,framenumber)` the following error occured for some MKV/MP4 files:
Error using VideoReader/read>readFramesInIndex (line 275)
Dot indexing is not supported for variables of this type.
Error in VideoReader/read (line 154)
videoFrames = readFramesInIndex(obj, varargin{1});
  • Third: using `readFrame(v)` returns nothing and no errors.
NOTE
I've posted this question (& answer) for myself and those who may encounter the same issue in the future

채택된 답변

YT
YT 2018년 10월 19일
After carefully checking the differences between some of the videos, I noticed that some had bit depth of 10 bits (didn't work) while others had 8 bits (work). So after changing this (with ffmpeg), the videos became useable again. Still think it's weird that `readFrame` continued and finished without outputting anything.

추가 답변 (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