Setting marquee params in libvlc_new

This forum is about all development around libVLC.
hanky
Blank Cone
Blank Cone
Posts: 21
Joined: 30 May 2012 07:49

Setting marquee params in libvlc_new

Postby hanky » 10 Apr 2015 12:15

I want to display some text over the video.
First I try to do it using the VLC player. As this manual says, I launch the player this way:

Code: Select all

vlc --sub-filter=marq --marq-marquee="Obvious Watermark" --marq-position=0 --marq-size=50 somevideo.avi
In this case everything works fine.

Then I try to do the same in my app which uses libVLC library. I initialize the VLC instance:

Code: Select all

const char* const argv[] = {"--no-plugins-cache", "--sub-filter=marq", "--marq-marquee=\"Obvious Watermark\"", "--marq-position=0", "--marq-size=50"}; int argc = sizeof(args) / sizeof(args[0]); vlcObject = libvlc_new(argc, argv));
Then I launch my player and get no text.

What am I doing wrong?

I'm using libVLC 2.1.4 on Centos 6.5.

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests