Page 1 of 1

How to show information on the srceen

Posted: 16 Dec 2013 08:38
by Ares19851110
When VLC plays back video, at the beginning it shows the name of video at the bottom of screen, as shown below.
Image

I want to know how to show information like that. Which code in VLC should I modify?

Thank you!

Re: How to show information on the srceen

Posted: 16 Dec 2013 13:24
by limj
use libvlc_video_set_marquee_string
just like this:
libvlc_video_set_marquee_string(vlc_player, libvlc_marquee_Text, mytext);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Opacity, 50);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_X, 10);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Y, 10);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Timeout, 4000);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Size, 40);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Color, 0xffffff);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Enable, 1);

It'works with VLC 2.0.2, get nothing with current version.

Re: How to show information on the srceen

Posted: 16 Dec 2013 13:24
by limj
use libvlc_video_set_marquee_string
just like this:
libvlc_video_set_marquee_string(vlc_player, libvlc_marquee_Text, mytext);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Opacity, 50);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_X, 10);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Y, 10);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Timeout, 4000);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Size, 40);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Color, 0xffffff);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Enable, 1);

It'works with VLC 2.0.2, get nothing with current version.

Re: How to show information on the srceen

Posted: 16 Dec 2013 15:04
by sherington
Not ideal, but the marquee API works for me if I pass "--sub-filter=marq" when I create a libvlc instance with libvlc_new(...).

Re: How to show information on the srceen

Posted: 16 Dec 2013 15:18
by limj
Not ideal, but the marquee API works for me if I pass "--sub-filter=marq" when I create a libvlc instance with libvlc_new(...).
you are right!
It's work with current version now!

Re: How to show information on the srceen

Posted: 16 Dec 2013 16:50
by Jean-Baptiste Kempf
You should report the bug.