Video Playback With Image Overlay, Can it be done?
#1
I was wondering if there was anyway of overlaying a small image over video playback, im not talking about hardcoding the image on the actual videos, but something like a extra option where you can turn it on for for certain videos or playlists.
Something like this:
Image

from what I know I need to make a new window that will display the logo when I press a button eg button 5 on the remote control.

Had a go but didnt manage to get it to work

Here is what I did
Code:
<window>
  <id>4567</id>
  <defaultcontrol>2</defaultcontrol>
  <allowoverlay>yes</allowoverlay>
  <type>dialog</type>
  <visible>true</visible>
  <coordinates>
    <system>1</system>
    <posX>200</posX>
    <posY>100</posY>
  </coordinates>
<control>
      <description>logo overlay</description>
      <type>image</type>
      <id>1</id>
      <posx>200</posx>
      <posy>100</posy>
      <width>200</width>
      <height>50</height>
      <visible>true</visible>
      <colordiffuse>FFFFFFFF</colordiffuse>
      <colorkey>FFFF00FF</colorkey>
      <texture>logo.png</texture>
      <info>VideoPlayer.Title</info>
      <aspectratio>keep</aspectratio>
</control>
</window>

Saved as custom6.xml and put in /E/Dashboard/skin/Project Mayhem III/PAL

then edited keymaps with the following
Code:
<five>ActivateWindow(Custom6)</five>

Didnt know where to palce logo.png so I tried it here /E/Dashboard/skin/Project Mayhem III/media

Obviously im a total newbie when it comes to this but if anyone can help please reply Smile
Reply
#2
Yes this should be possible. The logo needs to be in the skin's media folder, not in the xbmc media folder.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#3
you're really bound & determined to burn that into your car's display huh?
Reply
#4
SleepyP Wrote:you're really bound & determined to burn that into your car's display huh?

How do you mean?
Reply
#5
kraqh3d Wrote:Yes this should be possible. The logo needs to be in the skin's media folder, not in the xbmc media folder.

The image is in the right directory as far as I know but I still cant get it load... Possibly code is wrong?
Reply
#6
try using: activatewindow(14567).

and I dont think you need to use <type>dialog</type> and by the way, <allowoverlay> means that you allow an overlay on top of your window.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#7
Hmm tried
<five>activatewindow(14567)</five>
and also tried
<five>activatewindow(4567)</five>
that but nothing still appear
Reply
#8
ok had nothing to do with keymap, the custom6.xml was in wrong folder as im using ntsc not pal. But know whats happening is when I press 5 the screen goes black and I get the video in a small square in the bottom right corner :S

Current code looks like this
Code:
<window>
  <id>4567</id>
  <defaultcontrol>2</defaultcontrol>
  <visible>true</visible>
  <coordinates>
    <system>1</system>
    <posX>200</posX>
    <posY>100</posY>
  </coordinates>
<control>
      <description>logo overlay</description>
      <type>image</type>
      <id>1</id>
      <posx>200</posx>
      <posy>100</posy>
      <width>200</width>
      <height>50</height>
      <visible>true</visible>
      <colordiffuse>FFFFFFFF</colordiffuse>
      <colorkey>FFFF00FF</colorkey>
      <texture>logo.png</texture>
      <info>VideoPlayer.Title</info>
      <aspectratio>keep</aspectratio>
</control>
</window>
Reply
#9
with custom windows you may need the <type>dialog</type> part of the xml. did you remove that?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#10
Yep once I removed <type>dialog</type> it kind of works. Before it wouldnt do anything but once I removed that I get the following
Heres a screenshot
Image

What I need is kind of the opposite... Video needs to stay same size and logo appear in small window.
Reply
#11
lol, ok i think i know whats going on. without dialog, you're creating a full window. iirc, the coordinates section is only used by a dialog. but i dont know why using dialog doesnt work. i'll move this into the skinning section. someone in there may be able to help you, or maybe jmarshall.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#12
It needs to be <type>dialog</type>.

Otherwise it won't be transparent and won't popup over the top.

And it should be in the PAL/ folder, even if you are using NTSC. If you are using NTSC16x9, then try the PAL16x9/ folder.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#13
Ok added <type>dialog</type> and I think its bringing up a invisible window as I cant navigate up down etc until I press the menu button on my control...
Where should logo.png be?
Reply
#14
you have it in the correct place. xbmc/skin/<skinname>/media
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#15
Hmm could it be the coordinates?

<posX>200</posX>
<posY>100</posY>
Reply

Logout Mark Read Team Forum Stats Members Help
Video Playback With Image Overlay, Can it be done?0