disable filename marquee without affecting other marquees

This forum is about all development around libVLC.
nomadicme
New Cone
New Cone
Posts: 6
Joined: 14 May 2013 00:33

disable filename marquee without affecting other marquees

Postby nomadicme » 14 May 2013 22:56

I'm trying to find a way to disable filename marquee without affecting other marquees. I can disable the filename marquee by passing the --no-video-title-show option to the instance:

Code: Select all

const char * const vlc_args[] = { "--extraintf=http:logger", "--verbose=1", "--file-logging", "--logfile=/home/username/data/logs/vlc", "--no-video-title-show"}; vlc_inst = libvlc_new (sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args);
When I play the video the filename marquee does not show, but when I press a key which has been defined to display a marquee string it just briefly flashes (less than one second) and then never shows again despite repeated presses of that same key.

Here is how I defined the key press marquee:

Code: Select all

libvlc_video_set_marquee_int(media_player, 0, 1); /* enable marquee */ libvlc_video_set_marquee_int(media_player, 7, 3000); /* set marquee timeout (ms) */ libvlc_video_set_marquee_string(media_player, 1, "test");
If I instead use the following code to define the vlc instance, the keypress marquee displays fine for 3 seconds as many times as I'd like it to.

Code: Select all

vlc_inst = libvlc_new(0, NULL);
How can I disable the filename marquee without affecting the others? Thanks.

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: disable filename marquee without affecting other marquee

Postby sherington » 15 May 2013 13:36

I do this:

Code: Select all

"--no-video-title-show", "--sub-filter=logo:marq"
Seems to work ok for me. I guess you can remove "logo" if you don't want that.

nomadicme
New Cone
New Cone
Posts: 6
Joined: 14 May 2013 00:33

Re: disable filename marquee without affecting other marquee

Postby nomadicme » 16 May 2013 00:07

Thank you sherington. Adding "--sub-filter=marq" to vlc_args did the trick. I'm still a little confused about two things:

1. why you need to pass command line arguments to the instance, instead of just being able to setup everything directly through the libvlc API.
2. what is the difference is between --sub-source and --sub-filter.

Here is the documentation on both of these options:
--sub-source <string> Subpictures source module
This adds so-called "subpicture sources". These filters overlay some images or text over the video (like a logo, arbitrary text, ...).
--sub-filter <string> Subpictures filter module
This adds so-called "subpicture filters". These filter subpictures created by subtitles decoders or other subpictures sources.

I can't really tell from these descriptions which one is a better fit. Are there performance considerations?

Update:

I just saw in the list og changes between 2.0.x and 2.1.0-git:

* Option --sub-filter was renamed --sub-source

So I guess there is no difference and I probably should be using --sub-source instead.

But it works!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 5 guests