The data read by VideoReader is inconsistent between Ubuntu and Windows 10.
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Walter Roberson
2025 年 3 月 31 日
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.)
採用された回答
その他の回答 (1 件)
Hitesh
2025 年 4 月 3 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Low-Level File I/O についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!