Page 1 of 1

how to set ":vout=..." for libvlc 2.0.x

Posted: 29 Apr 2012 12:07
by r21514
Adding ":vout=..." with libvlc_media_add_option gives no result, in 1.1.x it worked.

Setting inital crop (":crop=..."), aspert-ratio, deinterlace, volume level, etc with libvlc_media_add_option also do not work.
It seems to me that only options like ":sout=.." works.

Re: how to set ":vout=..." for libvlc 2.0.x

Posted: 29 Apr 2012 18:18
by RĂ©mi Denis-Courmont
Video related options do not work per item anymore due to core architectural changes. Do note that options are explicitly outside the scope of LibVLC version (forward) compatibility.

In general, you should use or add explicit LibVLC function calls.

Re: how to set ":vout=..." for libvlc 2.0.x

Posted: 29 Apr 2012 19:33
by r21514
Ok, I added "--vout=..." to libvlc_new parameters and it seems to work. But is there any way to change vout without recreating libvlc instance (stop playback -> do something to change vout -> restart playback)? Maybe using some internal function and structures from libvlccore or whatever?

And is there any way to set volume level and mute on/off _before_ starting playback? Setting volume/mute for newly created media_player object doesn't work any more, works only after starting playback.