我已经安装了python,使用pip到python3.7和VLC媒体播放器。它们都是64位的,VLC媒体播放器目录已经添加到我的路径变量中,甚至可以从windows命令行调用,而无需完全定义路径.。
每当我试图将vlc导入python脚本时,我就会得到错误。
OSError: [WinError 126] The specified module could not be found
我尝试了以下基于本网站上的其他问题和其他问题的答案:
将所有VLC复制到\Python\Python 37\Lib\site-packages目录( vlc.py居住的地方)的将vlc.py复制到C:\Progr
我想在python中使用vlc,但是我总是有这样的错误:
Traceback (most recent call last):
File "radio.py", line 3, in <module>
media = vlc.MediaPlayer('annonce.mp4')
File "C:\Users\Romain\AppData\Local\Programs\Python\Python38\lib\site-packages\vlc.py", line 3310, in __new__
o = inst
当我想要开始使用python-vlc从python播放mp4文件时,我会这样做 import vlc
from time import sleep
movie = "/path/to/movie.mp4"
subs = "/path/to/subs.srt"
i = vlc.Instance()
media_player = i.media_player_new()
media = i.media_new(movie)
media.slaves_add(vlc.Medi
我尝试使用PIP安装VLC,但得到以下错误:
pip install VLC
Downloading/unpacking vlc
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement vlc
Cleaning up...
No distributions at all found for vlc
Storing complete log in C:\Users\rakeshb4\pip\pip.log
我在Linux上使用python-vlc绑定从Python 3.x控制视频时遇到了问题。视频在窗口中可以正常播放,但热键似乎被忽略了。libvlc媒体播放器可以处理热键吗?
我的最小代码:
import vlc
from time import sleep
player = vlc.MediaPlayer("test.mp4")
player.video_set_key_input(True)
player.play()
while player.get_state()!=vlc.State.Ended:
sleep(1)
我正在使用vlc python绑定来播放视频。然后我得到了这些错误:
[0x3d0c58] main window error: corrupt module: /Applications/VLC.app/Contents/MacOS/plugins/libmacosx_plugin.dylib
[0x3c9af8] vout_macosx vout display error: No drawable-nsobject nor vout_window_t found, passing over.
[0x3178a98] main video output error: video outpu
我在python的vlc中有一个问题
import vlc
sound = vlc.MediaPlayer('sound.mp3')
sound.play()
# i wanna wait until the sound ends then do some code without
time.sleep()
在使用Python程序的Raspberry Pi上,我使用Media List Player播放一组音频文件。我用来设置它的特定代码是: player = vlc.Instance('--no-xlib --quiet ') # no-xlib for linux and quiet don't complain
media_player = vlc.MediaListPlayer() # creating a media player object
media_list = player.media_list_new() # creating a new med