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 supported
[00007f92180098b0] main decoder error: VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))
The code to play the video is as follows
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
Any help is greatly appreciated. Thank you.