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 the following errors.
[00007f89b9661950] caopengllayer vout display error: No drawable-nsobject found! [00007f89b9661950] macosx vout display error: No drawable-nsobject nor vout_window_t found, passing over. [00007f89b30530f0] main video output error: video output creation failed [00007f89b9650c00] main decoder error: failed to create video output [h264 @ 0x7f89b407c000] get_buffer() failed [h264 @ 0x7f89b407c000] thread_get_buffer() failed [h264 @ 0x7f89b407c000] decode_slice_header error [h264 @ 0x7f89b407c000] no frame! I guessed that this code didn't make a frame displaying the video. It'll be a main cause of this error, I think. However, I can not come up with a solution of this problem. Please tell me how to play video with python-vlc module!!