Page 1 of 1

Cannot overlay logo in Raspberry PI

Posted: 20 Feb 2022 01:16
by ottawahacker
I'm trying to overlay a logo in vlc on my RPi (Bullseye) but when I add the logo using:

Code: Select all

cvlc -v --random --loop --fullscreen $xid --video-filter "logo{file=weather.jpg,position=1}" playlist.xspf
I get these weird error messages. From what I understand the hardware decoding in vlc is a hack (aka custom vlc version) - is that the reason for this blending routine error?

Code: Select all

VLC media player 3.0.16 Vetinari (revision 1.0.6-1682-g88158c836) Remote control interface initialized. Type `help' for help. [00da3b68] dummy interface: using the dummy interface module... [e35012a0] playlist stream warning: skipping unexpected element <vlc:item> [e35012a0] playlist stream warning: skipping unexpected element <vlc:item> [e3901650] mp4 stream warning: unknown box type cTIM (incompletely loaded) [e3901650] mp4 stream warning: unknown box type cTSC (incompletely loaded) [e3901650] mp4 stream warning: unknown box type cTSZ (incompletely loaded) [e3901650] mp4 stream warning: Unknown uuid type box [e390bab0] mp4 demux warning: elst box found [e390bab0] mp4 demux warning: STTS table of 1 entries [e390bab0] mp4 demux warning: elst box found [e390bab0] mp4 demux warning: STTS table of 1 entries [dce73e20] mmal_codec decoder: VCSM init succeeded: CMA [dce73e20] main decoder error: buffer deadlock prevented [e3501fe0] gles2 gl: Initialized libplacebo v2.72.0 (API v72) [e3502ac0] mmal_xsplitter vout display error: Failed to open Xsplitter:mmal_vout module [d1515ea8] blend blend error: no matching alpha blending routine (chroma: YUVA -> MMAL) [d151ec88] logo filter error: failed to blend a picture [d1515ea8] blend blend error: no matching alpha blending routine (chroma: YUVA -> MMAL) [d151ec88] logo filter error: failed to blend a picture [d1515ea8] blend blend error: no matching alpha blending routine (chroma: YUVA -> MMAL)

Re: Cannot overlay logo in Raspberry PI

Posted: 20 Feb 2022 09:06
by Rémi Denis-Courmont
You need to disable hardware decoding acceleration.

Re: Cannot overlay logo in Raspberry PI

Posted: 20 Feb 2022 19:19
by ottawahacker
You need to disable hardware decoding acceleration.
Thanks - but that's too bad - is that a limitation on the RPi version (MMAL renderer?) or VLC in general? The text overlay works perfectly with hardware acceleration though.

Re: Cannot overlay logo in Raspberry PI

Posted: 20 Feb 2022 19:47
by Rémi Denis-Courmont
It is a limitation of video filters, as opposed to overlays. If you don't care, you can use the logo overlay.

Re: Cannot overlay logo in Raspberry PI

Posted: 20 Feb 2022 20:05
by ottawahacker
It is a limitation of video filters, as opposed to overlays. If you don't care, you can use the logo overlay.
No, I definitely don't care - so I guess I should be using sub-filter logo? I had not realized these were different.
I tried

Code: Select all

cvlc -v --random --loop --sub-filter logo --logo-file weather.jpg --logo-position 1 --no-video-title-show --no-audio $current
but the logo doesn't show up and there is no error either in the log. Am I missing something?

Re: Cannot overlay logo in Raspberry PI

Posted: 25 Feb 2022 17:40
by pettedemon
Hi,
I have the same problem with my raspberry pi3 b+ with latest os.
this is the code

Code: Select all

cvlc --fullscreen --no-osd --loop --file-caching=10000 --sub-source logo --logo-position 10 --logo-file /home/pi/Desktop/logo/logo-tv.png /home/pi/Desktop/php/scala.m3u
but I have this error

Code: Select all

VLC media player 3.0.16 Vetinari (revision 1.0.6-1682-g88158c836) [00b5c7a0] dummy interface: using the dummy interface module... [623710a0] mmal_codec decoder: VCSM init succeeded: CMA libEGL warning: DRI2: failed to authenticate [62549eb0] mmal_xsplitter vout display error: Failed to open Xsplitter:opengles2 module [62549eb0] mmal_xsplitter vout display error: Failed to open Xsplitter:mmal_vout module mmal: mmal_vc_component_create: failed to create component 'vc.ril.hvs' (1:ENOMEM) mmal: mmal_component_create_core: could not create component 'vc.ril.hvs' (1) mmal: mmal_vc_component_create: failed to create component 'vc.ril.hvs' (1:ENOMEM) mmal: mmal_component_create_core: could not create component 'vc.ril.hvs' (1) [62542140] blend blend error: no matching alpha blending routine (chroma: YUVA -> MMAL)
f I use --sub-filter I have no errors but the logo doesn't appear.
thanks

Re: Cannot overlay logo in Raspberry PI

Posted: 25 Feb 2022 19:34
by Rémi Denis-Courmont
You seem to be using a VLC build with third party modules and changes, so :shrug:

Re: Cannot overlay logo in Raspberry PI

Posted: 25 Feb 2022 19:38
by pettedemon
Hi, it is the default vlc downloaded from raspberry:
Raspberry Pi OS with desktop and recommended software
Release date: January 28th 2022
System: 32-bit
Kernel version: 5.10
Debian version: 11 (bullseye)

without any modification. So I can try to uninstall vlc and install?

Re: Cannot overlay logo in Raspberry PI

Posted: 25 Feb 2022 19:51
by Rémi Denis-Courmont
All I'm saying is that this is not the VLC released by VideoLAN.org, so I don't know the details how yours behave.

Re: Cannot overlay logo in Raspberry PI

Posted: 25 Feb 2022 19:54
by pettedemon
Hi, it is the official download from

Code: Select all

sudo apt install vlc

Re: Cannot overlay logo in Raspberry PI

Posted: 25 Feb 2022 20:10
by ottawahacker
All I'm saying is that this is not the VLC released by VideoLAN.org, so I don't know the details how yours behave.
From what I read in the rpi forums - they did customize vlc so I suspect Remi is right.

Re: Cannot overlay logo in Raspberry PI

Posted: 25 Feb 2022 21:39
by pettedemon
Hi,
in the graphic interface you can add the logo but it doesn't work
this is the screenshot
https://ibb.co/2v1njXR

Re: Cannot overlay logo in Raspberry PI

Posted: 28 Feb 2022 16:08
by pettedemon
I try to reset vlc config

Code: Select all

vlc --reset-config
and play

Code: Select all

cvlc --sub-source logo --logo-x 10 --logo-y 10 --logo-file /home/pi/Desktop/logo/logo-tv.png --logo-opacity 200 /home/pi/Desktop/video/MSC-00021.mp4
... if I press ALT+C key combinations the logo appear on the top left
but I try to fullscreen

Code: Select all

cvlc --fullscreen --sub-source logo --logo-x 10 --logo-y 10 --logo-file /home/pi/Desktop/logo/logo-tv.png --logo-opacity 200 /home/pi/Desktop/video/MSC-00021.mp4
with the combination ALT+C doesn't work ...

Re: Cannot overlay logo in Raspberry PI

Posted: 10 Mar 2022 10:59
by pettedemon
Hi,
I try to set the logo in the GUI interface and set bottom-right. So next I try to launch vlc from command line...
a simple

Code: Select all

cvlc -f video.mp4
now if I do ALT+C and ALT+F the logo appear. I try to search what I do so
ALT + C = Crop one pixel from the bottom of the video
ALT + F = Crop one pixel from the right of the video
and the logo appear on the bottom right.

So how can do this in command line? There is no problem with the logo but only the right command. Thanks

Re: Cannot overlay logo in Raspberry PI

Posted: 11 Mar 2022 20:00
by pettedemon
Hi, I try to set the crop function

Code: Select all

cvlc -f --crop=16:9 --video-filter=croppadd{cropbottom=0,cropright=0,croptop=0,cropleft=0} /home/pi/Desktop/video/MSC-00001.mp4 --sub-source logo --logo-file /home/pi/Desktop/logo/plogo-tv.png --logo-position 10 --no-osd
but it doesn't appear.
but if I click ALT + C and then ALT + F it works...
why?

thanks