The data read by VideoReader is inconsistent between Ubuntu and Windows 10.
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Using VideoReader to read the same video file on Ubuntu 24.04.1 and Windows 10 produces different data results.
On Ubuntu, MATLAB '24.1.0.2689473 (R2024a) Update 6' is used. The following code is executed for reading:
V=VideoReader('~/matlab_test/videoreader/6M7A1148.MOV');
F=read(V,1);
F([1 2 3 4 5])
The output result is:
21 21 21 21 22
Using MATLAB '9.12.0.2529717 (R2022a) Update 8' on Windows, execute the following code:
V=VideoReader('6M7A1148.MOV');
F=read(V,1);
F([1 2 3 4 5])
The output result is:
23 23 23 23 24
I compared the two files on Ubuntu and Windows, and their MD5 checksums are completely identical.
What is causing this inconsistency? How can it be resolved?
The video can be found in the link below.
1 comentario
Walter Roberson
el 31 de Mzo. de 2025
When I test on my Intel iMac back to R2015aSP1, the result is 36 36 36 36 37 for every version except R2015aSP1 (which gives a message about not being able to initialize internal resources.)
Respuesta aceptada
Más respuestas (1)
Hitesh
el 3 de Abr. de 2025
Hi 敬 杨,
The variation in frame values across different operating systems is due to the platform-specific third-party libraries used for video reading. Each OS utilizes its built-in media library, which results in these differences.
For a more comprehensive understanding of the video formats supported by each platform, kindly refer to the following MATLAB documentation:
0 comentarios
Ver también
Categorías
Más información sobre Low-Level File I/O en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!