Error libvlc_media_read_cb'

This forum is about all development around libVLC.
xiaoxi
New Cone
New Cone
Posts: 1
Joined: 01 Sep 2015 23:14

Error libvlc_media_read_cb'

Postby xiaoxi » 01 Sep 2015 23:36

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Error libvlc_media_read_cb'

Postby Jean-Baptiste Kempf » 08 Oct 2015 16:14

You need to define ssize_t to SSIZE_T in VS headers.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 15 guests