VLC OSD control (1 Viewer)

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
Hi,

I'm playing with the OSD for VLC. See my screenshot. Has somebody else already tried something with it ? Is it possible to have text as well instead of icons ?

Quick test for everybody:

In the VLC dir I ececute
"vlc whaterver.mpg --extraintf rc --sub-filter osdmenu --osdmenu-file=osdmenu/dvd.cfg"

and the in the vlc window I write
"menu on"

there it is....

Looks very easy ? Or not...
read more here->

http://www.videolan.org/developers/vlc/doc/doxygen/html/group__osdmenu.html#_details

The only way I can see - draw the osd and save the file in the background

Bitmap bmap = new Bitmap (pictureBox1.Image);
Graphics g = Graphics.FromImage(bmap);

g.DrawString(DateTime.Now.ToLongTimeString(), new Font("Arial", 12, FontStyle.Regular), Brushes.Black, 10, 33);
pictureBox1.Image = bmap;
g.Dispose();

pictureBox1.Image.Save(@"C:\Pic.png");

(here I just put the time from now)


Greetz kroko
 

Attachments

  • osd.jpg
    osd.jpg
    397.8 KB

Users who are viewing this thread

Top Bottom