Axis camera RTSP with QMediaPlayer issue

Hi!
I am new to Qt and would like to ask advice. I want to stream the video from an Axis A8105-E IP camera. The same RTSP stream URL works in VLC and with OpenCV. However, using the QMediaPlayer only a few frames of the video displays and then the video freezes, but audio is still coming through. An exception is thrown when debugging (in EVR!MFCreateVideoSampleAllocator). So I can access the camera, but I think there are some incompatible settings between the camera and codec used, causing the video to fail?

Can you please provide any guidance/recommendations based on experience where Axis cameras have been integrated with Qt on Windows? I am happy to try a different codec if you can recommend any known to work.

ou might want to consider using the VLC-Qt project that integrates both together.

Hi, thank you for your response. The inital errors I got when posting the previous message has been resolved - the header files weren't present in the vlc download. But now I have different errors.

When using nmake I got this error: module machine type x64 conflicts with target machine type x86. So I know the problem is that mismatch, but I haven't been able to solve it.

Then I also tried to use ninja but got this error: FindDirstFileExA(C:/qt/vlc-3.0.8-win64/vlc-3.0.8): The filename, directory name, or volume label syntax is incorrect. I also haven't been able to solve that yet.