Page 1 of 1

Logo using libvlc 1.1.4 doesn't work?

Posted: 08 Sep 2010 11:44
by roige
Hi,
I am trying to add a logo to a local movie played by libvlc 1.1.4 in an MFC project
The movie is playing great.
I am trying to add the following code to add an overlay image but I do not see it. What am I doing wrong?

Code: Select all

libvlc_video_set_logo_int(m_pMediaPlayer,libvlc_logo_enable, 1); libvlc_video_set_logo_string(m_pMediaPlayer,libvlc_logo_file,"c:\\basketball.png"); //also tried with "c:\\basketball.png;" libvlc_video_set_logo_int(m_pMediaPlayer,libvlc_logo_x,0); libvlc_video_set_logo_int(m_pMediaPlayer,libvlc_logo_y,0); libvlc_video_set_logo_int(m_pMediaPlayer,libvlc_logo_repeat,-1); // continuous? libvlc_video_set_logo_int(m_pMediaPlayer,libvlc_logo_opacity,255); // totally opaque
Thanks

Re: Logo using libvlc 1.1.4 doesn't work?

Posted: 09 Sep 2010 00:52
by Jean-Baptiste Kempf
Please share the logs

Re: Logo using libvlc 1.1.4 doesn't work?

Posted: 14 Sep 2010 09:43
by erwan10
Several conditions must be met so that logo (or marquee) functions work fine.

- The media player must be playing.
- The internal vout thread must already be spawned.

If you experiment problems, just add for instance a 'sleep(10)' before issuing these logos functions.
If that works out the problem, it just means you have issued the 'playing' function for a given media_player, but the internal vout thread was not yet spawned, leading these logos functions to being no-op.

Imo, this is a design limitation that is unfortunate.