[vlc-devel] Re : vlc python bindings
pluch001 at yahoo.fr
Tue Jul 21 20:03:10 CEST 2009
I thought the "del player" line should free the memory but obviously not !
I tried your solution but ran into another problem which I described on the forum a few weeks ago :
In my application (multiple radio recording), I want to use two or more vlc instances and some of them are running/recording while other are waiting next time for recording.
So I think my problem is when a instance is starting with
player = vlc.MediaControl([args])
I don't know how to change the args once the player is stopped with
If you have any idea about the script on the forum or the problem above, you're welcome ;-)
I copy the script of the forum here :
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import vlc, time,os
#array to store multiple players
for i in range(0,3):
lineCmd = 
#0.mp3, 1.mp3, 2.mp3 are running -->ok
#stop the players and remove the files --> ok
# My BIG problem is here !!!
#start player number 1 but this restart number 2, why ?
De : Olivier Aubert <olivier.aubert at liris.cnrs.fr>
À : Mailing list for VLC media player developers <vlc-devel at videolan.org>
Envoyé le : Lundi, 20 Juillet 2009, 22h49mn 07s
Objet : Re: [vlc-devel] vlc python bindings
Neither of both. You are simply reinstanciating a new VLC instance at
each invocation, and thus quickly wasting memory. Why not reuse the
existing one ?
On Mon, 2009-07-20 at 19:35 +0000, Pluch' wrote:
> When I try the vlc Python Bindings in a loop, the memory used by my
> script increase each time I start a new player with
> player=vlc.MediaControl(). After about 50-55 starts on linux (about
> 150 starts on windows), the script runs out of memory.
> Is it a problem with the script below or is there something wrong with
> the bindings.
> the script :
> #! /usr/bin/env python
> import vlc, time
> while True:
> print (str(idx)+"---")*10
> del player
vlc-devel mailing list
To unsubscribe or modify your subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel