Page 1 of 1

Error libvlc_media_read_cb'

Posted: 01 Sep 2015 23:36
by xiaoxi
Hi,

I would like to grab frames of a MP4 video and convert each frame into a grayscale image, and apply a face detection algorithm to each image as fast as possible.

After adding the libvlc library (http://stackoverflow.com/questions/1564 ... ew-project) to my Visual Studio project on Windows 8 and I have tried to run a sample code (https://wiki.videolan.org/LibVLC_Tutorial/), but I get the following errors:
Error 1 error C2065: 'libvlc_media_read_cb' : undeclared identifier c:\users\usuario\vlc\include\vlc\libvlc_media.h 306 1
Error 6 error C2061: syntax error : identifier 'libvlc_media_read_cb' c:\users\usuario\vlc\include\vlc\libvlc_media.h 416 1

How can I fix it?

Can someone also give a hint how to grab frames?

Thanks in advance

Re: Error libvlc_media_read_cb'

Posted: 08 Oct 2015 16:14
by Jean-Baptiste Kempf
You need to define ssize_t to SSIZE_T in VS headers.