Truncated VideoReader width value when reading .mov files

4 vues (au cours des 30 derniers jours)
Alexandra Crawford
Alexandra Crawford le 12 Sep 2024
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 commentaires
DGM
DGM le 12 Sep 2024
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 le 13 Sep 2024
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.

Connectez-vous pour commenter.

Réponses (1)

Samay Sagar
Samay Sagar le 17 Sep 2024
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

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by