Page 1 of 1

Quit VLC if already running and unfreeze after playing

Posted: 18 Oct 2012 11:40
by mohsin7998
Hello Everybody.

I am having a weird problem with VLC in Python. Using the following things.

`import vlc

self.Instance = vlc.Instance() self.List = self.Instance.media_list_new() self.Player_d = self.Instance.media_list_player_new()`

I am using self.List.add_media(address of video) to populate the media list.

Then self.Player_d.set_media_list(self.List) and self.Player_d.play()

The problem is that VLC starts in a weird (YUV something) window, without any controls. Then freezes after playing the list. I have to use Task Manager to shut it down.

Can anybody point out the problem? I want to play the VLC with all controls.

Secondly, is there anyway of checking if VLC is already running, if running, then to quit and start a new instance of VLC.

Any help would be appreciated.

Mohsin

Re: Quit VLC if already running and unfreeze after playing

Posted: 18 Oct 2012 11:56
by evasive
Does it do this with any video? It sounds like the file you are using has more than one video stream. Please check and verify.

Re: Quit VLC if already running and unfreeze after playing

Posted: 18 Oct 2012 12:06
by mohsin7998
Thank you very much for the response.

It is the case with all files. The ones I am using are ".mov".