Python Binding LibVLC enabling debuging/verbosity

This forum is about all development around libVLC.
FredT
New Cone
New Cone
Posts: 1
Joined: 04 Jun 2014 04:23

Python Binding LibVLC enabling debuging/verbosity

Postby FredT » 04 Jun 2014 04:32

Hi, I'm using libVLC with python binding and It is working great but for some reason, I'm unable to activate logging to a file using the log_set_file() function or the log_set function with a callback. I'm not sure what to pass each funtion. I'm currently running the code on windows with libVLC 2.1.3 32 bits with python 2.7.x

-how to create FILE descriptor compatible with libvlc in python?

-how to create a callback function. The log_set function takea the 3 parameters. log_set(self, data, p_instance) The way I read it the function takes the lib_vlc instance twice in two parameter.
self is already a lib_vlc instance and it is asking p_instance again? I'm assuming that p_instance is the libvlc instance (self)

Anybody succeeded and can give me some hints?

Thanks

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Python Binding LibVLC enabling debuging/verbosity

Postby Rémi Denis-Courmont » 04 Jun 2014 05:57

The native function takes a pointer to the LibVLC instance, a pointer to the logging callback function and an opaque data pointer for the callback to use. I don't know about the Python bindings.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 44 guests