Description
System Information
OPENCV v4.10.0
Visual Studio Community 2022 (64-bit) v17.12.3
Build system: CMAKE
cmake -S"W:/code/libraries/3rdparty/utility/opencv/ocv-4.10.0/src" -B"c:/temp/build-opencv" -A ARM64 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_opencv_java=OFF -DBUILD_opencv_python=OFF -DWITH_FFMPEG=ON -DWITH_GSTREAMER=OFF -DWITH_QUIRC=ON -DWITH_JPEG=ON -DBUILD_JPEG=ON -DWITH_PNG=ON -DBUILD_PNG=ON -DWITH_TIFF=ON -DBUILD_TIFF=ON -DWITH_WEBP=ON -DBUILD_WEBP=ON -DWITH_OPENEXR=ON -DBUILD_OPENEXR=ON -DWITH_JPEG2000=ON -DBUILD_JPEG2000=ON -DOPENCV_MSVC_PARALLEL=ON -DCPU_BASELINE=NEON -DCPU_DISPATCH= -DWITH_IPP=OFF
General configuration for OpenCV 4.10.0
opencv-cfg.zip
Detailed description
I successfully built OpenCV as a static library for Windows x64, Windows ARM 64-bit, Linux x64, Linux ARM 32-bit, and Linux ARM 64-bit.
I'm testing an application which needs the FFMPEG codec, and it works fine on these operating systems: Linux x64, Linux ARM 32-bit, Linux ARM 64-bit, and Windows x64.
Only when using Windows 11 ARM 64-bit does such an application not work properly.
When I test it with streams which need FFMPEG the application fails to show the video.
The OpenCV building procedure for Windows ARM ends without any errors, and even the building procedure for my app ends properly.
The application works as expected until I try to show videos with the FFMPEG codec.
Apparently the file "...\ARM64\vc17\bin\opencv_videoio_ffmpeg4100_64.dll" is the same file as the one for Windows x64 architecture.
I suspect this because they have the same size in bytes (26,391,552 bytes), which is quite strange, I would have expected a different size between the two architectures x64 and ARM64.
It is the only file, comparing the bin folder contents between x64 and ARM64 architectures, that has the same size in bytes for both.
Steps to reproduce
In order to reproduce this kind of issue, it is necessary to build OpenCV for both x64 and ARM64 Windows architectures.
The final file "opencv_videoio_ffmpeg4100_64.dll" is exactly the same, and it is very strange.
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files (videos, images, onnx, etc)