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

This forum is about all development around libVLC.
r21514
Blank Cone
Blank Cone
Posts: 50
Joined: 17 Sep 2009 08:45

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

Postby r21514 » 29 Apr 2012 12:07

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.

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

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

Postby Rémi Denis-Courmont » 29 Apr 2012 18:18

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

r21514
Blank Cone
Blank Cone
Posts: 50
Joined: 17 Sep 2009 08:45

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

Postby r21514 » 29 Apr 2012 19:33

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 15 guests