Page 1 of 1

Logo Overlay using VideoLanControl in C#

Posted: 24 Nov 2008 07:43
by innerspace
I am having some problems implementing a logo overlay in my code.

I can see the logo fine when I set logo overlay in VLC preferences but not getting anything through code.

Code: Select all

string[] options = new string[] { "vlc", "--no-loop", "--drop-late-frames", "--sub-filter=logo"}; frmTV.videoPlayer.AddToPlayList(nexttoplay, "Firstplay", options); frmTV.videoPlayer.Play(); while (frmtv.videoPlayer.IsPlaying == false) { System.Threading.Thread.Sleep(100); //pause until started playing } System.Threading.Thread.Sleep(500); frmTV.videoPlayer.SetConfigVariable("logo-file", "L:\\Logos\\tvlogo.png"); frmTV.videoPlayer.SetConfigVariable("logo-transparency", "255");
I read elsewhere that you have to wait until playing has started to set certain variables, and read in other places that you cant change things after playback.

There seems to be inconsistencies in the use of command line controls and options variables.

Im currently using libvlc.dll from 0.8.6 in my program, although I also have 0.9.4 installed