Page 1 of 1

Modifying settings on the fly

Posted: 17 Nov 2011 20:46
by biga
Hi!

I am using vlc Python bindings and I'd like to know whether it is possible to change settings on the fly while playing a media. For example:

p = vlc.MediaPlayer()
p.set_mrl('v4l2:///dev/video0')
p.play() #now video is playing and here I'd like to modify the mrl to 'v4l2:///dev/video0:width=320:height=240' without stopping the playback
p.set_mrl('v4l2:///dev/video0:width=320:height=240')

Other question is similar: can I turn on/off a video filter while playing a media?

Thanks for your responds.

biga.

Re: Modifying settings on the fly

Posted: 18 Nov 2011 09:52
by RĂ©mi Denis-Courmont
You cannot change input on the fly. And even if you could, it wouldn't be useful, since the whole pipeline would have to be reset to adapt to the new resolution.'

Filters can be added/removed/tuned, but I am not sure there is an API in LibVLC for them,

Re: Modifying settings on the fly

Posted: 19 Nov 2011 17:04
by biga
Thanks for your reply! I didn't find any function in the API that could change (turn on/off) video filters during playback. It would be nice adding to the API, because now I have to stop the stream, configure and start again, and I also have to reconnect my client(s).