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

How to use QFile with Python VLC MediaPlayer

I can simply play a wav file from a file with the code below: media = vlc.MediaPlayer('c.wav') media.audio_set_volume(50) media.play() How can I do the same with qrc resource file? I tried this code but doesn't seem to work: mediafile =…
Mohammad Farahi
  • 1,006
  • 4
  • 14
  • 38
1
vote
1 answer

Python VLC only works in python shell

I wanted to make a music player, and I'm playing the audio files via the vlc module. I used this code to play the file: import vlc p = vlc.MediaPlayer("music/song.mp3") p.play() in the python shell, it works fine and plays the file. if I try to…
af2111
  • 301
  • 3
  • 12
1
vote
2 answers

How To Create Multiple Players with Python VLC and Have Different Volumes on Them?

I am trying to mix two .mp3 songs together by simply changing the volumes of two songs, similar to DJing. However, when I set the volume of a player, both players' volumes are being changed to the value that I've last set. I would like to create two…
1
vote
1 answer

in python-vlc - how can i "smear" the playback rate to synchronize two players?

I am trying to synchronize playback of two VLC instances. To do this, I am using UDP packets. From the secondary player(s), I send a packet to the primary with the current position, and the primary answers with its current position. I then use this…
rmalchow
  • 2,689
  • 18
  • 31
1
vote
0 answers

vlc python does not play a video in hdmi2 in Raspberry Pi4

I want to run a video in my second monitor/projector using vlc-package pip3 install python-vlc and python3 in Raspberry Pi 4. I set the Fullscreen Video Device of the vlc-software to HDMI-2 Tools --> Preferences --> Video --> Fullscreen Video Device…
1
vote
1 answer

How to play image slideshow with VLC and python bindings?

It is possible to get image slideshow functionality with a VLC player if you just simply drag and drop selected images to it. In this case every image will get displayed for 10 seconds. How can I achive the same with python VLC bindings? I could do…
kostr22
  • 576
  • 7
  • 27
1
vote
0 answers

python vlc audio filter

I have been trying to enable an audio filter in vlc. However it doesn't seems to be making any difference in the audio. I can get video filters to work but it's just the audio filters that doesn't seem to be working. My code is as follow: import…
albusSimba
  • 441
  • 4
  • 14
1
vote
0 answers

Play video only in range of user defined start and end time using python-vlc

I am using the package python-vlc for video play in the user-defined start and end time. I use player.get_length() and player.get_time() function for computing the video length and the current time of playing the video. I am using Tkinter GUI and…
yagya
  • 41
  • 1
  • 6
1
vote
0 answers

python-vlc no video output on macosx

i am trying to play a video stream(or a video file) on macosx (Catalina) and sound is fine, but the video returns lots of errors. Can please anyone help? It doesn't work on both 2.7 and 3.7. On windows video and audio works fine. Many thanks in…
obanawev
  • 19
  • 1
  • 6
1
vote
2 answers

python-vlc - Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported

I am trying to play a video using python-vlc in python. It is giving me the following error. [00007f92180098b0] main decoder error: Codec `h264` (H264 - MPEG-4 AVC (part 10)) is not supported. [00007f92180098b0] main decoder error: Codec not…
Samvid Mistry
  • 783
  • 1
  • 8
  • 14
1
vote
1 answer

How to solve connection error when trying to stream a video from YouTube?

I'm trying to stream videos from YouTube in a GUI app using PyQt5, python-vlc and pafy modules, but vlc gave me some connection errors: [0000025466dc7340] main tls client error: connection error: Interrupted function call [0000025466df9f00] access…
INeed ADollar
  • 46
  • 2
  • 9
0
votes
1 answer

Raspberry Pi 4B - VLC player - Pir Sensor - Camera

I'm starting to know Python, so you can say I'm a newby. For Halloween I'm working with a Python script for a Scare. The idea is to show a nice picture (a paused video) on a tv screen and when motion is detected the video is going to play the rest…
Wessie
  • 11
  • 1
0
votes
1 answer

how to play one video after another without time.sleep - python vlc

for title in songs: media_player = vlc.MediaPlayer() media = vlc.Media(title + ".mp4") media.add_option('start-time=' + str(seconds)) media.add_option('stop-time=' + str(seconds + 20)) …
0
votes
0 answers

How can I get an mp4 RTP stream with a python program importing VLC?

I have the following class which is imported by a main app.py, it is a webapp for a LAN which creates an RTP stream on an IP given in a config.ini file. Currently MP3 files work fine however MP4 files have no playout. Below is the class which is…
0
votes
1 answer

Running VLC on Raspberry Pi 3 from CLI

First sorry for my English, I'm French. I'm currently working on this project : I have a training bike and I'd like to be able to play videos depending on my pedaling speed. Here is the hardware I have so far : A training bike A HDTV screen A…
1 2
3
8 9