logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
JoshTheRadioDude  
#1 Posted : Saturday, February 22, 2020 4:13:47 AM(UTC)
JoshTheRadioDude

Rank: Member

Groups: Registered
Joined: 10/11/2018(UTC)
Posts: 19
Man
United States
Location: Michindoh

Thanks: 11 times
I thought this had been possible at one point in time, but I may be misremembering things.

Here's my case: I have a daily segment that varies in length each day. I've succeeded in using triggers to automate most of the things that need to happen when I play and stop it, but there's one problem. I want to use an overlay as a two-second transition between that segment and the next, but I also want to fade out the audio while that transition is taking place. With triggers functioning as they do now, the overlay will fire perfectly fine when the segment stops, and I can delay it to fire off later, but I need it to start one second earlier, before the end of the video, to get the audio to fade out during that last second (which is the first second of the transition overlay).

I've tried doing this manually with the stinger function, but it simply cuts the audio off (even though I have all automatic audio switches turned off). The only other option is to fade the audio out in the video file itself, but then that leaves me with two seconds of dead air. I'm trying to tighten up my presentation, not loosen it. I've seen other people attempting to accomplish this with a combination of triggers and timers, but that seems overly complicated, and I would have to set the timer for however long the video is every day, which kind of defeats the whole purpose of automating it in the first place: it's just another step of work for me. I'd like to be able to render the file out in Premiere each morning, have it be in that input when I open vMix, and not have to worry about it at all.

The only way I can think of to make this possible is to allow for negative delays in the OnCompletion trigger. vMix is already keeping track of the time left in the video to display under the viewports, anyway, so it seems technically feasible.

Is this at all a possibility? Would anyone else find this useful?
doggy  
#2 Posted : Saturday, February 22, 2020 5:26:14 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,127
Belgium
Location: Belgium

Thanks: 285 times
Was thanked: 928 time(s) in 767 post(s)
With a script one can check the remaining time of a clip and go from there. It does involves a bit of math
dmwkr  
#3 Posted : Saturday, February 22, 2020 6:11:04 PM(UTC)
dmwkr

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2019(UTC)
Posts: 524

Thanks: 62 times
Was thanked: 122 time(s) in 111 post(s)
Originally Posted by: JoshTheRadioDude Go to Quoted Post


I've tried doing this manually with the stinger function, but it simply cuts the audio off (even though I have all automatic audio switches turned off). The only other option is to fade the audio out in the video file itself, but then that leaves me with two seconds of dead air.


Doggy's hint puts you on the right track, but if you're not into scripting yet and are willing to do it manually, you could possibly trigger a fade transition or/and SetVolumeFade on OverlayIn, or put multiple shortcuts on one key... You'd still have to fire that shortcut at the right time, though.
IceStream  
#4 Posted : Saturday, February 22, 2020 11:22:41 PM(UTC)
IceStream

Rank: Advanced Member

Groups: Registered
Joined: 3/7/2012(UTC)
Posts: 2,612
Man
Location: Canada

Thanks: 33 times
Was thanked: 503 time(s) in 472 post(s)
@ JoshTheRadioDude

If you know the length of the video, you could set up a timer that is just shy of that and use the "OnCountdownCompleted" Trigger.
It is a little more complex to setup than your suggestion of a "negative delay", but will work exactly as you want.


Ice
doggy  
#5 Posted : Sunday, February 23, 2020 12:15:43 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,127
Belgium
Location: Belgium

Thanks: 285 times
Was thanked: 928 time(s) in 767 post(s)
Code:
' Checking time left of active input
' and do some stuff at certain time remaining

dim position as string = ""
dim duration as string = ""
dim activeinput as string = ""
dim Timeleft as double = 0
dim triggertime as integer = 2000       '2 seconds before end
dim triggerduration as integer = 2000   'fade duration, could be different than trigger

do while true

   dim xml as string = API.XML()
   dim x as new system.xml.xmldocument
   x.loadxml(xml)

activeinput = (x.SelectSingleNode("//active").InnerText)
duration = (x.SelectSingleNode("//input[@number='"& activeinput &"']/@duration").Value)
position = (x.SelectSingleNode("//input[@number='"& activeinput &"']/@position").Value)

Timeleft= Double.Parse(duration)-Double.Parse(position)

if Timeleft < triggertime  

  API.Function("SetVolumeFade",Input:=activeinput.tostring(),Value:="0," & triggerduration.tostring())
  ' do whatever one wants to do 

end if

sleep(500)
Loop
thanks 2 users thanked doggy for this useful post.
dmwkr on 2/23/2020(UTC), JoshTheRadioDude on 2/25/2020(UTC)
JoshTheRadioDude  
#6 Posted : Tuesday, February 25, 2020 4:09:49 AM(UTC)
JoshTheRadioDude

Rank: Member

Groups: Registered
Joined: 10/11/2018(UTC)
Posts: 19
Man
United States
Location: Michindoh

Thanks: 11 times
Originally Posted by: IceStream Go to Quoted Post
@ JoshTheRadioDude

If you know the length of the video, you could set up a timer that is just shy of that and use the "OnCountdownCompleted" Trigger.
It is a little more complex to setup than your suggestion of a "negative delay", but will work exactly as you want.


Ice


Like I said, the length of the video changes from day to day, so while I could possibly time it out that way, that somewhat defeat the purpose. I'd like to just render it out and have it ready to go without having to program anything else in.
doggy  
#7 Posted : Tuesday, February 25, 2020 4:22:51 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,127
Belgium
Location: Belgium

Thanks: 285 times
Was thanked: 928 time(s) in 767 post(s)
Originally Posted by: JoshTheRadioDude Go to Quoted Post
Originally Posted by: IceStream Go to Quoted Post
@ JoshTheRadioDude

If you know the length of the video, you could set up a timer that is just shy of that and use the "OnCountdownCompleted" Trigger.
It is a little more complex to setup than your suggestion of a "negative delay", but will work exactly as you want.


Ice


Like I said, the length of the video changes from day to day, so while I could possibly time it out that way, that somewhat defeat the purpose. I'd like to just render it out and have it ready to go without having to program anything else in.


Use the posted script

JoshTheRadioDude  
#8 Posted : Tuesday, February 25, 2020 4:39:50 AM(UTC)
JoshTheRadioDude

Rank: Member

Groups: Registered
Joined: 10/11/2018(UTC)
Posts: 19
Man
United States
Location: Michindoh

Thanks: 11 times
Originally Posted by: doggy Go to Quoted Post


Use the posted script



I will give that a shot, but again, this is something that would be much simpler if it were just a function in vMix. I would like to see it added if at all possible.
vvcvvc  
#9 Posted : Tuesday, February 25, 2020 9:57:21 PM(UTC)
vvcvvc

Rank: Advanced Member

Groups: Registered
Joined: 3/28/2017(UTC)
Posts: 69
Man
Estonia
Location: Haapsalu, Estonia

Thanks: 71 times
Was thanked: 3 time(s) in 3 post(s)
+1 for Negative Delay
thanks 1 user thanked vvcvvc for this useful post.
JoshTheRadioDude on 2/29/2020(UTC)
spiro67  
#10 Posted : Sunday, February 7, 2021 7:33:17 PM(UTC)
spiro67

Rank: Newbie

Groups: Registered
Joined: 1/11/2021(UTC)
Posts: 3
South Africa
Location: Cape Town

Thanks: 1 times
+1 as well!
doggy  
#11 Posted : Sunday, February 7, 2021 7:47:12 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,127
Belgium
Location: Belgium

Thanks: 285 times
Was thanked: 928 time(s) in 767 post(s)
Originally Posted by: spiro67 Go to Quoted Post
+1 as well!



Use the script above
as of 12 months (1 year) ago those (few) who needed it seemed happy with the solution ;-)
renevane  
#12 Posted : Monday, June 21, 2021 2:05:41 PM(UTC)
renevane

Rank: Newbie

Groups: Registered
Joined: 12/16/2018(UTC)
Posts: 6
Man
Netherlands

Thanks: 1 times
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: spiro67 Go to Quoted Post
+1 as well!



Use the script above
as of 12 months (1 year) ago those (few) who needed it seemed happy with the solution ;-)


Scripting is only available in 4K and Pro versions.

÷1 for Negative delay on OnCompletion triggers
doggy  
#13 Posted : Monday, June 21, 2021 2:24:11 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,127
Belgium
Location: Belgium

Thanks: 285 times
Was thanked: 928 time(s) in 767 post(s)
Originally Posted by: renevane Go to Quoted Post

Scripting is only available in 4K and Pro versions.


Just like several other options and extras ;-)

create external script/app then

renevane  
#14 Posted : Monday, June 21, 2021 4:22:30 PM(UTC)
renevane

Rank: Newbie

Groups: Registered
Joined: 12/16/2018(UTC)
Posts: 6
Man
Netherlands

Thanks: 1 times
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: renevane Go to Quoted Post

Scripting is only available in 4K and Pro versions.


Just like several other options and extras ;-)

create external script/app then



What I meant was that not everybody is able to employ a script when their vMix edition doesn't support scripting.
I think negative delay times for the OnCompletion trigger would be a great feature to have!

By the way: negative delays are already a 'thing' in vMix (in the audio settings for an input).
So to request it as a feature for an OnCompletion trigger does not seem far fetched.

Here's hoping ;-)
doggy  
#15 Posted : Monday, June 21, 2021 6:34:53 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,127
Belgium
Location: Belgium

Thanks: 285 times
Was thanked: 928 time(s) in 767 post(s)
Originally Posted by: renevane Go to Quoted Post

What I meant was that not everybody is able to employ a script when their vMix edition doesn't support scripting.


Not true as mentioned before you can create a script externally (as was done - and still done - before vMix scripting was introduced )
Then you have no problem in which license it is used

Can't compare audio and video
renevane  
#16 Posted : Monday, June 21, 2021 6:47:54 PM(UTC)
renevane

Rank: Newbie

Groups: Registered
Joined: 12/16/2018(UTC)
Posts: 6
Man
Netherlands

Thanks: 1 times
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: renevane Go to Quoted Post

What I meant was that not everybody is able to employ a script when their vMix edition doesn't support scripting.


Not true as mentioned before you can create a script externally (as was done - and still done - before vMix scripting was introduced )
Then you have no problem in which license it is used

Can't compare audio and video


Understand, but being able to do scripting outside vMix doesn't invalidate a feature request. Not everybody is a programmer. Also, it would be a lot less complicated being able to do it in vMix.

Anyway, I'm not here to start a long discussion. Just +1'ing the original suggestion. ;-)
mrmazure  
#17 Posted : Saturday, November 26, 2022 10:47:54 PM(UTC)
mrmazure

Rank: Newbie

Groups: Registered
Joined: 12/26/2020(UTC)
Posts: 7
Belgium

+1
gpdipalmerahtimur  
#18 Posted : Monday, November 28, 2022 12:11:00 PM(UTC)
gpdipalmerahtimur

Rank: Advanced Member

Groups: Registered
Joined: 6/5/2020(UTC)
Posts: 91
Indonesia
Location: Jakarta

Thanks: 16 times
Was thanked: 5 time(s) in 3 post(s)
+1
jip  
#19 Posted : Thursday, March 14, 2024 3:51:37 AM(UTC)
jip

Rank: Advanced Member

Groups: Registered
Joined: 7/23/2013(UTC)
Posts: 122
Estonia
Location: North

Thanks: 12 times
Was thanked: 13 time(s) in 11 post(s)
+1

This would be definitely a worthwhile improvement for smoother transitions from video inserts back to live.
spinfold  
#20 Posted : Thursday, March 14, 2024 10:20:10 AM(UTC)
spinfold

Rank: Advanced Member

Groups: Registered
Joined: 1/23/2022(UTC)
Posts: 75
United Kingdom
Location: Milton Keynes

Thanks: 9 times
Was thanked: 2 time(s) in 2 post(s)
+1
Users browsing this topic
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.