vlc

How to use vlc equalizer in python

How to use vlc equalizer in python Question: I am using vlc in python for a small internet radio player I have a problem when i try to set the equalizer for audio output Instance = vlc.Instance() player = Instance.media_player_new() radiourl = radios[0][1] # setting the radio streaming url Media = Instance.media_new(radiourl) player.set_media(Media) player.audio_set_volume(playvol) # …

Total answers: 1

Playing media from external device with python-vlc on linux

Playing media from external device with python-vlc on linux Question: I’m trying to play a media file. This is the example on the python-vlc repository: import platform import os import sys from PyQt5 import QtWidgets, QtGui, QtCore import vlc class Player(QtWidgets.QMainWindow): """A simple Media Player using VLC and Qt """ def __init__(self, master=None): QtWidgets.QMainWindow.__init__(self, master) …

Total answers: 1

Why is VLC's .py modue returning 'NoneType' in 'media_player_new'?

Why is VLC's .py modue returning 'NoneType' in 'media_player_new'? Question: I’ve been running around in circles for a few weeks, and can’t get past an infuriating problem… firstly; I’m running 64-bit Win10, with 64-bit Powershell invoking python 3.9 (also 64-bit), which is an app with a Tk GUI, and uses python-vlc. It’s been running fine …

Total answers: 2

Media List in Python VLC

Media List in Python VLC Question: I need to write a program in Python that will play video files from a folder in the VLC player, using the Linux OS. These files must be in the playlist. Code: import vlc mrl1 = ‘….1.3gp’ mrl2 = ‘….2.3gp’ Instance = vlc.Instance(‘–input-repeat=-1’, ‘–fullscreen’, ‘–mouse-hide-timeout=0’) MediaList = Instance.media_list_new() MediaList.add_media(Instance.media_new(mrl2)) …

Total answers: 3

Import Vlc module in python

Import Vlc module in python Question: I am trying to create a media player using vlc and python but it throws an Error which is No module named vlc. how to fix this? Asked By: Rajesh Rajendran || Source Answers: I had a same issue. You should try sudo pip install python-vlc Answered By: SivamNatesan …

Total answers: 5

How to install the VLC module in Python

How to install the VLC module in Python Question: I was trying to install VLC using PIP, but get the following error: pip install VLC Downloading/unpacking vlc Cannot fetch index base URL https://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement vlc Cleaning up… No distributions at all found for vlc Storing complete log …

Total answers: 4

executing a subprocess from python

executing a subprocess from python Question: I think something is getting subtly mangeled when I attempt to execute a subprocess from a python script I attempt to execute vlc with some (a lot) of arguments. the instance of vlc that arises complains: Your input can’t be opened: VLC is unable to open the MRL ‘ …

Total answers: 3

VLC Python EventManager callback type?

VLC Python EventManager callback type? Question: I’m having trouble attaching an event handler to tell when a song has finished playing when using the VLC Python bindings. The event_attach function is complaining about the callback type. def __init__(self): self.vlc = vlc.Instance() self.vlc_playlist = self.vlc.media_list_new() self.vlc_player = self.vlc.media_list_player_new() self.vlc_player.set_media_list(self.vlc_playlist) self.vlc_events = self.vlc_player.event_manager() self.vlc_events.event_attach(vlc.EventType.MediaPlayerEndReached, self.SongFinished, 1) …. …

Total answers: 3

vlc python bindings – how to receive keyboard input?

vlc python bindings – how to receive keyboard input? Question: I’m trying to use VLC’s python bindings to create my own little video player. The demo implementation is quite simple and nice, but it requires all the keyboard commands to be typed into the console from which the script was run. Is there any way …

Total answers: 4