How can I get a frame from a video using the vlc-qt library?



How can I get, for example, a QImage using vlc-qt ?

In simple libvlc, this is done using the ctx structure and the lock function.

It is assumed that VlcMediaPlayer will display the video on a widget and somewhere once a second the frame will be processed using OpenCV .


Apparently, in no way, tk. vlc-qt simply sends the widget's window handle for video output directly to libvlc. Use libvlc directly to access the video buffer.

Scroll to Top