Ingreso rápido:  

Forum: VirtualDJ Technical Support

Tema: Inserting a png image in video skin
I would like to place a promotive image of our party WhatsApp group on lower right part of the screen. I have logo on top right.

I've been fiddling around in changing video skin code, but I can't find a simple explanation
on how to simply add images to a video skin. Vector graphics and texts seem logical, but
I can't find howto adding images in the documents.

My guess is it is inside the <visual> block, but how and where do I define the image in question?
What if I want to insert different images?

If possible, I would like to fade this image in after certain amout of seconds when the song starts to play. It could then stay and fade out like 20 seconds before the song ends.

Thanks in advance,

Tapio
 

Mensajes Sat 25 Nov 23 @ 6:44 am
 

Mensajes Sat 25 Nov 23 @ 9:46 am
Or put the image in the sampler.
 

Mensajes Sat 25 Nov 23 @ 10:27 am
Even easier!
 

Mensajes Sat 25 Nov 23 @ 10:32 am
locoDogPRO InfinityModeratorMember since 2013
if windows I have a plugin that does this.
 

Mensajes Sat 25 Nov 23 @ 11:21 am
locodog wrote :
if windows I have a plugin that does this.


Yes, it’s on windows. How can I get the plugin?
 

Mensajes Sat 25 Nov 23 @ 6:52 pm
locoDogPRO InfinityModeratorMember since 2013
check your pm's
 

Mensajes Sat 25 Nov 23 @ 7:20 pm
locoDogPRO InfinityModeratorMember since 2013
Salsa DJ El Rubio wrote :
If possible, I would like to fade this image in after certain amount of seconds when the song starts to play. It could then stay and fade out like 20 seconds before the song ends.




with the plugin you'd script something like this, but your specific case might need tweaks

ONSONGLOAD
& deck master effect_slider showlogo64-3 4 0.0 & repeat_start imageAction1 20000ms 1 & ( repeat_start imageAction2 100ms 100 & effect_slider showlogo64-3 4 +0.01 ) & repeat_start imageAction3 `param_add -20000 'get_time remain'` 1 & repeat_start imageAction4 100ms 100 & effect_slider showlogo64-3 4 -0.01

 

Mensajes Sat 25 Nov 23 @ 10:20 pm

Quote :

with the plugin you'd script something like this, but your specific case might need tweaks

ONSONGLOAD
& deck master effect_slider showlogo64-3 4 0.0 & repeat_start imageAction1 20000ms 1 & ( repeat_start imageAction2 100ms 100 & effect_slider showlogo64-3 4 +0.01 ) & repeat_start imageAction3 `param_add -20000 'get_time remain'` 1 & repeat_start imageAction4 100ms 100 & effect_slider showlogo64-3 4 -0.01



Should I put this code into my video skin?
Could you give an example?
What is the name of the image in this code?
Should the image be in the video skin folder?

Thank you in advance!
 

Mensajes Mon 27 Nov 23 @ 5:39 pm
locoDogPRO InfinityModeratorMember since 2013
Code in video skin, hmmm no, ...it could, but it doesn't need to, it's easier/more flexible other ways,
ONSONGLOAD is a keyboard mapping key/event, put it there.
The plugin just opens files from anywhere, just press the file button, get a open file dialogue.
the shown file path on the fx gui is actually an effect_string so you can actually change file via script if you wanted to.

The script will probably need changes but I can't know what those changes are until you explain scenarios where it doesn't work [all depends on how you're mixing]
 

Mensajes Mon 27 Nov 23 @ 6:03 pm
Thanks for so far.

I have this code in ONSONGLOAD, but i do not see any change. Plugin is in Plugins64/VideoEffect folder in my AppData, which is the correct place for my understanding. Do I need to load the dll?

My intention is to show one png image fading in 30 seconds after song start, and stay there untin end of the song or better yet, fade out 20 seconds before end of the song.

Image will be located bottom-right of the screen.

Are those ImageActions defined somewhere, or just names for certain instance of picture visual?

Kindly,

Tapio
 

Mensajes Tue 28 Nov 23 @ 4:11 pm
locoDogPRO InfinityModeratorMember since 2013
yeah you have to make the effect active, see the video mixer panel videoFX
 

Mensajes Tue 28 Nov 23 @ 4:19 pm
Since I need a video skin anyway, I have set song name and artist + music style to be shown in a beginning of a song and next song when close the end of the song.

I have now everything working, propably not most elegantic way, but it works.

I have a Video Skin and a picture named wapgroup400.png with dimensions 400x600 px.

Inside <skin> tag i have set image="wapgroup400.png".

I have set a class:


<define class="wapgroup">
<visual x="0" y="0" width="400" height="628" visibility="1"><off x="0" y="0"/></visual>
</define>


and later on i launch it:


<group name="wapgroup_ad">
<stack fadein="1500ms" fadeout="1500ms">
<size width="400" height="600"/>
<pos x="1425" y="400"/>
<slot x="+0" y="+0"/>

<item class="wapgroup" visibility="load_pulse_active 120000ms 22000ms &amp;&amp; pulse 120000ms">
</item>
<!-- default -->
<item class="blank_item"></item>
</stack>
</group>



This works in a way that the picture will be shown at the right moment. I would like it to stay until 45 seconds left in song. Now it is set to stay visible for 120 seconds, which works quite OK.

In my opinion this skin and scripting functionality has a lot potential, but it is not very well documented.

Could you guys give and advice how to calculate the song length, minus 45 seconds and use that as the time of visibility?

Thanks,

Tapio
 

Mensajes Wed 29 Nov 23 @ 1:44 pm
locoDogPRO InfinityModeratorMember since 2013
param_smaller `param_add -45000 'get_time total'` `get_time elapsed`

would be one way
 

Mensajes Wed 29 Nov 23 @ 2:00 pm
With


<group name="wapgroup_ad">
<stack fadein="1500ms" fadeout="1500ms">
<size width="400" height="600"/>
<pos x="1425" y="400"/>
<slot x="+0" y="+0"/>

<item class="wapgroup" visibility="load_pulse_active (param_smaller `param_add -45000 'get_time total'` `get_time elapsed`) 22000ms &amp;&amp; pulse 120000ms">
</item>
<!-- default -->
<item class="blank_item"></item>
</stack>
</group>


picture only flashes and disappears. What am I getting wrong?

Thanks again,

Tapio
 

Mensajes Wed 29 Nov 23 @ 2:17 pm
locoDogPRO InfinityModeratorMember since 2013
load_pulse_active 600000ms 22000ms &amp;&amp; param_smaller `param_add -45000 'get_time total'` `get_time elapsed`
 

Mensajes Wed 29 Nov 23 @ 2:20 pm