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

Error: Could not find module 'C:\Users\phong\Desktop\Python\libvlc.dll' (or one of its dependencies). Try using the full path with constructor syntax

I have a code like this import vlc player = vlc.MediaPlayer("a.mp4") player.play() and it give me this error Traceback (most recent call last): File "c:\Users\phong\Desktop\Python\Media player\media_player.py", line 1, in import vlc …
Long1421
  • 1
  • 1
0
votes
0 answers

How can I update window image element of pysimplegui by using vlc library?

I want to update image element on the gui by using vlc player to get real time webcam images. Normally I was using cv2.videoCapture to get frame. After getting frame I was updating window['image']. But I couldn't make it by using vlc. Let me explain…
YusufUcan
  • 49
  • 5
0
votes
1 answer

VLC Play/Pause For Synchronization in Python

So i am using the VLC python extension. I am trying to align playing a video with another program. Since the VLC media player has some variability of how long it takes to load the media and start playing, it can sometimes be out of alignment. I want…
J Smith
  • 39
  • 2
  • 5
0
votes
1 answer

Stopping python-vlc: player.stop() doesn't work

I am trying to play a youtube video using pafy and vlc: def run(command, args, voice_instance): if command == "pune": search_query = " ".join(args) result = YoutubeSearch(search_query, max_results=10).to_dict()[0] …
0
votes
0 answers

Django: Is there a way to play local video in VLC or something else when the django view is requested on click event from html?

I am building python django application where I need to play a video when request is made from web browser. Scenerio: When I click a button from webapp then I should be directed to next page, and video should play on either mediaplayer such as VLC…
Zack
  • 21
  • 2
0
votes
1 answer

VLC Player window disappears as soon as playing a file with python-vlc

I am trying to play videos in VLC player via the python module "python-vlc" and the video player disappears immediately after launching. Here is the code: import vlc media = vlc.MediaPlayer("video.mp4") media.play() When running this, the VLC…
ScottHJ
  • 5
  • 5
0
votes
1 answer

" No module named 'vlc' " - trouble importing VLC with Python

I am trying to use the python-vlc library in python and keep getting errors when using "import vlc". I have the 64-bit Windows version of VLC player installed, and am using Python version 3.9.6 in a virtual environment in Visual Studio. My version…
ScottHJ
  • 5
  • 5
0
votes
1 answer

Python stream audio from YouTube livestream

I'm interested in creating a python 3.9 program that streams audio from a YouTube livestream but unfortunately I can't get the video.getbestaudio() function to work and the function only returns the value null. Thus causing the null error on the…
Stub
  • 1
  • 2
0
votes
0 answers

How do I get a signal in the main process to start an action?

I'm writing a player program in python. The effect I want to achieve is to get a signal after playing a song and then go to the next song. some code: def end_call_back(event): print('call:', 'a song finished') if "__main__" == __name__: …
Youyou Hua
  • 49
  • 5
0
votes
0 answers

Error running VLC mediaplayer on Raspberry

I'm running some media files in my Raspberry, with this code: while True : try: response = input print(response) if (response=='playvideo1'): print("playvideo1") #first condition I need player=…
user16239103
0
votes
0 answers

How to print subtitles while video is playing (on sync) using python?

I'm trying to print a text in parallel to video playing like the meaning of the subtitles. I stuck at how to print the subtitles while the video is playing. Actually based on the video frame it's printing but I need to print the respective text like…
5war00p
  • 368
  • 1
  • 5
  • 15
0
votes
0 answers

I want to know how to write audio play callback in python-vlc

I wrote code to stream audio as simple as the following. If no callback is registered (part **) this code works fine. But I would like to register a play callback to preprocess the streamed data. How to register a callback function can be found by…
metamath
  • 1
  • 1
0
votes
1 answer

Callback function in the exact moment URL stream starts playing in Python

I'm currently working on a internet radio player in Python for a Raspberry Pi. The functioning is simple: on user input the program randomly chooses one URL radio stream from a predefined list and starts playing it through omxplayer as a…
0
votes
0 answers

Got "Timestamp conversion failed" when I tried to use "set_position()" to play a streaming video using python-vlc

I'M trying to add a playback function in streaming video I got streaming video data from stream website and keep writing them in a .flv file. Then the video file will be played in python-vlc. When I tried to use set_position() to play the video in…
Hadid
  • 35
  • 6
0
votes
1 answer

Clearing media list for vlc media_list_player won't allow to restart media player

I'm working on a Raspberry Pi 4B and I'm creating a music player to replace the inside of a jukebox. I'm trying to feed music to VLC using key combinations. In this case, selecting 'A1' will go to the USB stick mounted as '/media/usb1' to the 'A1'…
Brian
  • 93
  • 1
  • 11
1 2 3
8 9