Modifying settings on the fly

This forum is about all development around libVLC.
biga
Blank Cone
Blank Cone
Posts: 21
Joined: 11 May 2011 10:31

Modifying settings on the fly

Postby biga » 17 Nov 2011 20:46

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Modifying settings on the fly

Postby Rémi Denis-Courmont » 18 Nov 2011 09:52

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,
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

biga
Blank Cone
Blank Cone
Posts: 21
Joined: 11 May 2011 10:31

Re: Modifying settings on the fly

Postby biga » 19 Nov 2011 17:04

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).


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 5 guests