Rank: Newbie
Groups: Registered
Joined: 5/9/2020(UTC) Posts: 9 Location: Matera
|
I automatically download a file with this name news-%yyyy-mm-dd%.mp4, how do I insert it in vmix automatically?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/23/2017(UTC) Posts: 1,212 Location: Germany Thanks: 3 times Was thanked: 168 time(s) in 150 post(s)
|
You can use the API to add an input. There are a lot of references out there for doing so.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 5/9/2020(UTC) Posts: 9 Location: Matera
|
For example? I try but I can't find the right option for
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/24/2021(UTC) Posts: 508 Location: athens Thanks: 123 times Was thanked: 71 time(s) in 67 post(s)
|
Hello. You can do this with a script if you have 4k/pro/max version that support script personally im using this script. it searches for the last video .mp4 in my documents\videos and insert it as input video in vmix Code:
Dim szExt As String = ".mp4"
Dim szFolder As String = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) & "\Videos"
Dim szLatestFile As String = ""
Dim dLatestFile As Date = Nothing
For Each szFile As String In System.IO.Directory.GetFiles(szFolder)
Dim fi As New System.IO.FileInfo(szFile)
If fi.Extension = szExt Then
If fi.LastWriteTime > dLatestFile Then
szLatestFile = szFile
dLatestFile = fi.LastWriteTime
End If
End If
Next
If System.IO.File.Exists(szLatestFile) Then
API.Function("AddInput", Value:="Video|" & szLatestFile)
End if
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/23/2017(UTC) Posts: 1,212 Location: Germany Thanks: 3 times Was thanked: 168 time(s) in 150 post(s)
|
The scripting for dummies forum topic is a good source for all kind of issues.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: itarsc3 For example? I try but I can't find the right option for Check the shortcut functions in the functions reference list in the helpfile (same function canbe used in a script for automation) Function has a strange name though: "AddInput"
|
|
|
|
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close