我正在尝试在 python 中使用 python-vlc 播放视频。它给了我以下错误。
[00007f92180098b0] main decoder error: Codec `h264` (H264 - MPEG-4 AVC (part 10)) is not supported.
[00007f92180098b0] main decoder error: Codec not supported
[00007f92180098b0] main decoder error: VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))
播放视频的代码如下
import sys
import vlc
import easygui
if(len(sys.argv) < 2):
print("Please enter file name as command line argument")
exit(0)
media = vlc.MediaPlayer(sys.argv[1])
media.play()
while True:
pass
任何帮助是极大的赞赏。谢谢你。