Truncated VideoReader width value when reading .mov files

2 次查看(过去 30 天)
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