Logo using libvlc 1.1.4 doesn't work?

This forum is about all development around libVLC.
roige
New Cone
New Cone
Posts: 1
Joined: 08 Sep 2010 11:36

Logo using libvlc 1.1.4 doesn't work?

Postby roige » 08 Sep 2010 11:44

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Logo using libvlc 1.1.4 doesn't work?

Postby Jean-Baptiste Kempf » 09 Sep 2010 00:52

Please share the logs
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: Logo using libvlc 1.1.4 doesn't work?

Postby erwan10 » 14 Sep 2010 09:43

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 5 guests