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
1 answer

How to exit fullscreen VLC invoked from Python?

I'm using Python to play a fullscreen video on a Raspberry Pi. This code works, but there's no way for the user watching to exit fullscreen mode. import vlc media_player = vlc.MediaPlayer() media_player.toggle_fullscreen() vid =…
Terence Eden
  • 14,034
  • 3
  • 48
  • 89
0
votes
1 answer

Getting file path of current track from Python-VLC's MediaListPlayer

I'm using MediaListPlayer from the python-vlc library. I use the following code to create a list of all the songs in a directory and begin them playing as a playlist, so that once one song ends another begins. import os from vlc import…
MillerTime
  • 317
  • 2
  • 11
0
votes
1 answer

Seeking in audio playing from a URL in VLC python

I am working on a python project which allows users to stream and download high quality music from the internet and I am using python vlc for that. As I have a progress bar in my application I want to add a function which will seek the music to the…
0
votes
1 answer

python VLC library only plays some mp3 files and doesn't play others?

I am using the python vlc library to make a music player using pygame. I download all of the songs into mp3 format and then run some vlc code to play it. Here it is: import pygame, sys from pygame import mixer from pygame.locals import…
0
votes
0 answers

Python3 VLC is only playing sound the first time

I have a function, and whenever it is called one of the lines has it run sound.play(), which works fine the first time. as soon as i hit the loop the second time, it doesn't do anything. just passes by the sound. but everything else works. def…
0
votes
1 answer

Python-VLC unusually quiet

Edit - I eventually figured out the answer and have posted it below. Using .audio_set_volume() on a media_player_new() object works fine with values 0-100, but it's much quieter than the corresponding value in normal VLC is, by a factor of around…
0
votes
1 answer

play as many sounds as loop count in python

I want the alarm.play() function to repeat for the number of loops and ring 10 times as in the example, but it just keeps ringing once every time I try or change it. How can I fix this? And does it make more sense to use for instead of while…
user15937825
0
votes
0 answers

Making an alarm in python with the data I read from the site with Selenium

The code I wrote is very basic and it simply works. It takes a value on the Selenium-related site, writes it to a txt, then reads the necessary part of the value and should sound an alarm according to this value. The code terminates before reaching…
user15937825
0
votes
1 answer

How to play media in link (vlc module)

I'm working on a program which lets you search for a videos/movies from a website and play it directly to vlc. I'm a complete beginner and would appreciate any sort of help.
blank
  • 1
0
votes
0 answers

Multiple vlc-python errors

I am trying to make a media explorer using the vlc-python library and tkinter. But I keep getting multiple errors. There errors occur in seemingly random order and only after pressing Left or Right. Pressing these buttons multiple times quickly…
FieryRMS
  • 91
  • 3
  • 11
0
votes
0 answers

Event manager in vlc library with PyQT

I wrote a code that implement vlc player and I want to listen to state change (playing, pause, stop, opening ...) and media duration changing. But I found out that some event works where other doesn't. instance = vlc.Instance() media =…
msakni22
  • 11
  • 3
0
votes
2 answers

VLC Python Binding only playing the first mp4 file in the folder

I was trying to Play multiple small mp4 files that is in a folder. And i was using this example as my reference: https://github.com/oaubert/python-vlc/blob/master/generated/3.0/examples/play_buffer.py But when i ran the py file giving that…
0
votes
1 answer

How to get audiostream metadata using vlc.py

for a little project I need to get the metadata(mainly title and artist) from songs on audio streams, for this I am using the vlc python library. This is my code with a Belgian radio station as an example: import vlc def getData(url): Instance =…
JasperDG
  • 137
  • 1
  • 3
  • 7
0
votes
1 answer

How to take snapshot from RSTP link with python-vlc

I want to take a snapshot from a RSTP link without open the screen in Ubuntu 20.04, I've followed a few Stack Overflow users tips, but none of them worked. Today I can display the RSTP link on a VLC window, but can't take snapshot. As you can see in…
0
votes
2 answers

Using python-vlc, can I log to a file the time at which each frame of a video is displayed on screen?

I have already programed an experiment using the python-vlc module, which plays my videos smoothly and in fullscreen as expected. Now I'd like to log to a file the time at each frame displayed on screen. Actually the log file comes from another…
1 2 3
8 9