Truncated VideoReader width value when reading .mov files

조회 수: 2 (최근 30일)
Alexandra Crawford
Alexandra Crawford 2024년 9월 12일
답변: Samay Sagar 2024년 9월 17일
I am getting a consistently truncated video pixel width value when reading in my .mov files into my script using VideoReader(). This is a new issue that showed up when i started using a macbook with M3 chip (this was not an issue on my intel chip mac). The video file info description says that the dimensions are 720x480, however the return dimensions from VideoReader() say the dimensions are 640x480. Displaying a video frame confirms that part of my image is cut off on the right side.
Any help or explanation is appreciated, thanks!
  댓글 수: 2
DGM
DGM 2024년 9월 12일
Is this a change in how your new computer decodes the same files, or is this a change in how your new computer is encoding new files?
Alexandra Crawford
Alexandra Crawford 2024년 9월 13일
not sure to be honest. If i take a look at the file information for the video on my new computer in finder, the correct pixel dimensions show up. Its the return from the matlab function that provides the incorrect width dimension.

댓글을 달려면 로그인하십시오.

답변 (1개)

Samay Sagar
Samay Sagar 2024년 9월 17일
I have also faced a similar issue in the past when reading videos using "VideoReader" on MacOS 14. A possible cause of this problem is the codec used by the video file. However, I have verified that the issue no longer occurs in MATLAB R2024b. You can consider upgrading to the latest version of MATLAB to resolve this issue.
If the issue persists, you can reach out to the MathWorks support team at https://www.mathworks.com/support/contact_us.html

제품

Community Treasure Hunt

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

Start Hunting!

Translated by