AttributeError: module 'vlc' has no attribute 'Instance'

This forum is about all development around libVLC.
discuss99
New Cone
New Cone
Posts: 2
Joined: 27 Nov 2020 08:22

AttributeError: module 'vlc' has no attribute 'Instance'

Postby discuss99 » 27 Nov 2020 08:28

I have both vlc 4.0 64 bit and python 3 64 bit..install those python module properly....but have error when exec it. spend few days...install and uninstall , can't fix it...
anyone can help?

Error as below
vlc_instance = vlc.Instance(vlc_option)
AttributeError: module 'vlc' has no attribute 'Instance'

Code: Select all

#pip install pafy #pip install youtube_dl #pip install python-vlc import pafy import vlc import time vlc_option = '--video-filter=invert' #player = vlc.MediaPlayer("/path/to/file.flac") url = """https://youtu.be/xxxxxxxx""" vid = pafy.new(url) best = vid.getbest() best_player = best.url vlc_instance = vlc.Instance(vlc_option)

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: AttributeError: module 'vlc' has no attribute 'Instance'

Postby mfkl » 14 Dec 2020 04:23

try the samples from the vlc-python repository https://github.com/oaubert/python-vlc/t ... r/examples
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests