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
7
votes
4 answers

Python vlc install problems

alright so i am trying to install vlc with pip and its telling me successfully installed python-vlc ok good that's what i wanted but when i go to run the program im trying to use vlc in witch is here import vlc p =…
Tyrell
  • 896
  • 7
  • 15
  • 26
4
votes
2 answers

How to play video with python-vlc?

I would like to play video with python-vlc module. I wrote the following code. My computer is MacOS Catalina. #!/usr/bin/env python3 import vlc p = vlc.MediaPlayer("mediafile.mp4") p.play() while True: pass But the python3 interpreter threw…
4
votes
1 answer

how to use QWinThumbnailToolBar to restore Taskbar Thumbnail after closing/opening vlc player in PyQt5

I am embedding python vlc in pyqt5 to make a video player.but i am having one problem that is when video starts to play it takes entire taskbar thumbnail to show only its video not other items present in the window screen.And after closing the video…
Raj1234
  • 186
  • 10
3
votes
0 answers

Record RTSP stream with libVLC Python

I have been trying for a while to record an RTSP stream with libVLC in python. I have a basic command that works with cvlc, but I am unable to do the same with libVLC. Here is the cvlc command: cvlc -I dummy rtsp://admin@192.168.31.56/0/av0…
3
votes
2 answers

Start and end at specified timestamps when playing video using python-vlc

I have a list of youtube videos to be played in vlc using python. I am using tafy and python-vlc libraries for the same. I have managed to play the videos in order using the above libraries. But now I want to play the videos between certain…
orsfield
  • 33
  • 1
  • 6
3
votes
1 answer

How can I start a VLC instance from python bindings on a specific display?

I want to code a snippet / module in python that opens up a VLC player on a specific display / monitor and plays a specific file. I use the package python-vlc, and I succesfully managed to play a video file using the package: import vlc …
Alex M.M.
  • 501
  • 1
  • 7
  • 18
2
votes
0 answers

Detect specific line from output of python-vlc from console while playing video in python pyqt5

when i am trying to play a video with python-vlc in pyqt5 like import vlc,sys from PyQt5.QtWidgets import * app = QApplication([]) window =…
Hacker6914
  • 247
  • 1
  • 9
2
votes
0 answers

EXE made with PyInstaller can't load libvlc.dll (python-vlc)

I'm trying to package a python script which uses python-vlc using pyinstaller, but the resulting .exe refuses to recognize the libvlc.dll binary file. I always get the same error: Traceback (most recent call last): File "ctypes\__init__.py", line…
zchrywht
  • 51
  • 2
2
votes
0 answers

Can you control an already open instance of VLC with the VLC python module?

For my program I need to control an already open instance of VLC (I just want to increase/decrease the volume and make it pause), but I do not know if that is even possible as it seems you have to create instances to control them. Just wondering if…
animelovah
  • 33
  • 3
2
votes
1 answer

Python-VLC - How to play a video at specific time?

I have a one-hour video, that I want to only play sections of it when something triggers it. from vlc import * import os os.add_dll_directory('D:\\VLC') media_player = MediaPlayer() media =…
Naz
  • 121
  • 1
  • 8
2
votes
1 answer

How to get audio samples from python-VLC

What I need I am working on a music player with a sample analyzer. My issue is that I am currently using pydub to get the samples from the song, but as the song gets longer, the more out of sync the two become. I have made the two literally in sync,…
2
votes
2 answers

How to obtain bitrate, sample rate and bits per sample in python-vlc

I am trying to obtain bitrate, sample rate actual bits per sample of an audio file using python-vlc. I saw that we can use libvlc_media_tracks_get() to obtain bitrate, but I am not sure how to get the others. But even if this method can obtain all 3…
Arkyo
  • 307
  • 1
  • 2
  • 13
2
votes
1 answer

python-vlc doesn't play audio/video from .py file

I want to make mediaplayer, I choosed python-vlc library, but I don't know why I can't play audio/video from .py file. If I tried make it with cmd and Python Shell all working: >>> import vlc >>> my_player = vlc.MediaPlayer("d:/Music/song.flac") >>>…
SevRyb
  • 73
  • 6
2
votes
1 answer

PyInstaller with Python-VLC: No Attribute "media_player_new" Error

I'm using Python-VLC to create a video player and PyInstaller to generate the executable file on my Windows 10 machine. Initially, it gave me the error: Import Error Failed to load dynlib/dll 'libvlc.dll'. Most probably this dynlib/dll was not…
ghost
  • 31
  • 3
2
votes
1 answer

How to record stream for exactly 30 seconds using python-vlc?

I'm trying to record an RTP stream via python-vlc for exactly 30 seconds but the output file is sometimes less than or greater than my desired video length. Note: I tried using ffmpeg, but it can't properly decode the stream hence the decision to…
Carlo
  • 93
  • 2
  • 11
1
2 3
8 9