Add Text or Logo not working [LibVLC 2.1.6 & Ubuntu 14.04.5 LTS]

*nix specific usage questions
ShadowMaster
New Cone
New Cone
Posts: 7
Joined: 07 Dec 2018 15:44

Add Text or Logo not working [LibVLC 2.1.6 & Ubuntu 14.04.5 LTS]

Postby ShadowMaster » 13 Dec 2018 10:21

Dear VideoLAN Forum Users,

I am using LibVLc 2.6.1 RinceWind on Ubuntu 14.04.5 LTS. I want to build a mini player with LibVlc Qt4.8 C++ (Eclipse). I can play, pause and stop the video.

I tried to add text with

Code: Select all

libvlc_video_set_marquee_string(_mediaPlayer, libvlc_marquee_Text, "myText"); libvlc_video_set_marquee_int(_mediaPlayer, libvlc_marquee_X,50); libvlc_video_set_marquee_int(_mediaPlayer, libvlc_marquee_Y, 50); libvlc_video_set_marquee_int(_mediaPlayer, libvlc_marquee_Opacity, 50); libvlc_video_set_marquee_int(_mediaPlayer, libvlc_marquee_Timeout, 4000); libvlc_video_set_marquee_int(_mediaPlayer, libvlc_marquee_Size, 40); libvlc_video_set_marquee_int(_mediaPlayer, libvlc_marquee_Color, 0xffffff); libvlc_video_set_marquee_int(_mediaPlayer, libvlc_marquee_Enable, 1);
and to add a logo with

Code: Select all

libvlc_video_set_logo_string( _mediaPlayer,libvlc_logo_file, "logo.jpeg"); libvlc_video_set_logo_int(_mediaPlayer, libvlc_logo_enable, 1);
but it also not working. The reason is there is a bug in this version but it will be able to show both if we add as example "--sub-filter=marq" to libvlc_new() to show the text on the player. But this is also not working.

Code: Select all

const char * const vlc_args[] = {"--sub-filter=marq", "--no-xlib"}; _instance = libvlc_new (2,vlc_args);
Get the ideas from:
https://forum.videolan.org/viewtopic.php?t=115986
https://github.com/assen-totin/vbs/blob ... ideo-vlc.c

Have someone a solution for this problem ?

Many thanks in advance.
ShadowMaster

SimPune
Blank Cone
Blank Cone
Posts: 10
Joined: 25 Dec 2018 18:43

Re: Add Text or Logo not working [LibVLC 2.1.6 & Ubuntu 14.04.5 LTS]

Postby SimPune » 28 Dec 2018 12:59

Open it from terminal with command vlc and show us the output which may give some clues.
DISTRO: Xubuntu 18.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads

ShadowMaster
New Cone
New Cone
Posts: 7
Joined: 07 Dec 2018 15:44

Re: Add Text or Logo not working [LibVLC 2.1.6 & Ubuntu 14.04.5 LTS]

Postby ShadowMaster » 09 Jan 2019 08:52

Thanks for your reply.

Write this in terminal
vlc rtsp-stream --sub-filter logo --logo-file logo.jpeg

and get this:
VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
[0x14f7118] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7fb5e4004068] main subpicture error: Failed to create sub filter 'logo'
[0x7fb5e4004068] main subpicture error: Failed while trying to append 'logo' to filter chain
[0x7fb5d4001248] main vout display error: Failed to resize display
[h264 @ 0x7fb5f0053000] illegal short term buffer state detected
[0x7fb5f80009b8] main input error: ES_OUT_RESET_PCR called
[0x7fb5f80009b8] main input error: ES_OUT_RESET_PCR called


And the vlc-player shows the stream with the logo. There are no Problems. Only if I try it with code. I think the way I write the code is wrong.

ShadowMaster


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 25 guests