Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: 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
 

Posted 6 days ago @ 6:44 am
 

Posted 6 days ago @ 9:46 am
Or put the image in the sampler.
 

Posted 6 days ago @ 10:27 am
Even easier!
 

Posted 6 days ago @ 10:32 am
locodogPRO InfinityModeratorMember since 2013
if windows I have a plugin that does this.
 

Posted 6 days ago @ 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?
 

Posted 5 days ago @ 6:52 pm
locodogPRO InfinityModeratorMember since 2013
check your pm's
 

Posted 5 days ago @ 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

 

Posted 5 days ago @ 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!
 

Posted 3 days ago @ 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]
 

Posted 3 days ago @ 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
 

Posted 2 days ago @ 4:11 pm
locodogPRO InfinityModeratorMember since 2013
yeah you have to make the effect active, see the video mixer panel videoFX
 

Posted 2 days ago @ 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
 

Posted 2 days ago @ 1:44 pm
locodogPRO InfinityModeratorMember since 2013
param_smaller `param_add -45000 'get_time total'` `get_time elapsed`

would be one way
 

Posted 2 days ago @ 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
 

Posted 2 days ago @ 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`
 

Posted 2 days ago @ 2:20 pm