Setting marquee params in libvlc_new
Posted: 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:
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:
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.
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
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));
What am I doing wrong?
I'm using libVLC 2.1.4 on Centos 6.5.