Questions tagged [python-vlc]

python-vlc provides a pure python module to interact with the libvlc.

python-vlc provides a pure module to interact with the libvlc.

Resources

Related Tags

,

125 questions
0
votes
0 answers

How to add event and handle playback in vlc-python

In the following code # python-vlc from vlc import Media, MediaPlayer, EventType, Event class MusicPlayer: def __init__(self) -> None: self.items = ["/list/of/path/to/audio/file"] self.index = 0 self.player: MediaPlayer…
0
votes
1 answer

Why python-vlc mediaplayer doesn't work with url from list?

I tried to build a small webradio with pyhton-vlc. When I directly write the url of the radiostream in the code everything works fine. But I would like to read the urls from the "radiostationen.txt". But when I replace the hard coded url with the…
0
votes
0 answers

PyQT5 play specific video using VLC

I've been working with python for a while. I am writing a script in which the VLС media player should be launched in a PyQT5. The media player starts the video by the number entered in the terminal. After playing the video, the media player waits…
Tadont
  • 11
  • 2
0
votes
1 answer

How i can disable reopen window on use `set_mrl(...)` function?

When i use set_mrl(...) function sometimes the window is reopen i need to keep the window never closed because i used to make share screen automation app. the note i use python 3.11 with latest libvlc version, and this is my player code import…
0
votes
1 answer

How would i make a Python program to a exe that would work on all devices with a .mp4 file?

I want to convert a .py file to a .exe file that would work on all devices (or just all desktops if all devices isn't possible). I tried to use py2exe but that doesn't work because it doesnt take the .mp4 file with it. import vlc # Create an…
NielsNL
  • 39
  • 7
0
votes
0 answers

How to use vlc to combine multiple videos with different encodings into one complete video

I tried to merge video files using examples from the wiki https://wiki.videolan.org/VLC_HowTo/Merge_videos_together/ /Applications/VLC.app/Contents/MacOS/VLC -vv a.flv b.mkv c.mp4 \ --sout-keep \ --sout…
0
votes
0 answers

Access USB device on Mac in python using pyusb an libusb

I would like to read the signal from a USB keyboard that is attached to my MacBook Pro. I am using PyCharm to write my script and I installed pyusb and libusb for the backend. Really, I am at the very beginning so please excuse my little knowledge.…
immuen
  • 43
  • 4
0
votes
1 answer

python vlc, how to change a radio channel when button is pressed?

im trying to build a program (using pysimplegui) which contains a few buttons (play, stop, pause, next, previous) as you can see. and when i press "next" its stopping for some time and then the same music continues (i dont press "previous" because i…
0
votes
1 answer

Change volume before playback in python-vlc

I'm trying to adjust the volume of an instance of vlc.MediaPlayer before playback. Running the below snippet (python3 test.py) plays five seconds of the audio file path/to/file.m4a. It appears that audio_set_volume does actually set the volume of…
heds1
  • 3,203
  • 2
  • 17
  • 32
0
votes
0 answers

Play mp3 file and print word document error message

I have a class with a text to be output as an audio track and a path to a word file to be printed. I have written a method for both problems. I started with the method for the audio output. This one worked without any problems. After that I wrote…
0
votes
1 answer

Playing media from external device with python-vlc on linux

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…
3nws
  • 1,391
  • 2
  • 10
  • 21
0
votes
1 answer

How to change VLC-python output device?

In my project, I need to get sound from a radio stream URL and play it. But it needs to be played in a specific output device called "VB-Cable Input (Virtual Audio Cable)". I couldn't find a way to do it. This is my current code: import vlc import…
0
votes
0 answers

Python-VLC MediaTrack sub-object are LP_VideoTrack instead of VideoTrack object

I have been trying to check if a video media is 360 degree with python vlc version 3.0.16 for the past 48 hours. I know that I should get the media tracks then retrieve every track info and here is how I do that: import…
魏維德
  • 11
  • 3
0
votes
0 answers

How Do I Record video on libVLC(python-binding, python-vlc)?

I made an RTSP video player using libVLC python bindings (python-vlc) and pySide2. (based on this code) I want to add the recording function on the 'VLC media player' to my program, but I don't know how. VLC Media Player Recording Button 'VLC media…
Jace Ryu
  • 1
  • 1
0
votes
0 answers

How to solve vlc playing Youtube video lagging issue?

Hi guys I was facing a lagging issues when using vlc packages for video playing in python. This would effect the time sleep as the duration is no longer the same when lagging occur. youtubeURL = "https://www.youtube.com/watch?v=" +…
Wesley
  • 65
  • 9
1 2 3
8 9