logo

Live Production Software Forums


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

Notification

Icon
Error

Options
Go to last post Go to first unread
itarsc3  
#1 Posted : Thursday, January 26, 2023 2:41:11 AM(UTC)
itarsc3

Rank: Newbie

Groups: Registered
Joined: 5/9/2020(UTC)
Posts: 9
Italy
Location: Matera

I automatically download a file with this name news-%yyyy-mm-dd%.mp4, how do I insert it in vmix automatically?
mavik  
#2 Posted : Thursday, January 26, 2023 2:45:46 AM(UTC)
mavik

Rank: Advanced Member

Groups: Registered
Joined: 4/23/2017(UTC)
Posts: 958
Man
Location: Germany

Thanks: 3 times
Was thanked: 142 time(s) in 125 post(s)
You can use the API to add an input. There are a lot of references out there for doing so.
itarsc3  
#3 Posted : Thursday, January 26, 2023 2:48:12 AM(UTC)
itarsc3

Rank: Newbie

Groups: Registered
Joined: 5/9/2020(UTC)
Posts: 9
Italy
Location: Matera

For example? I try but I can't find the right option for
nikosman88  
#4 Posted : Thursday, January 26, 2023 3:50:59 AM(UTC)
nikosman88

Rank: Advanced Member

Groups: Registered
Joined: 12/24/2021(UTC)
Posts: 124
Greece
Location: athens

Thanks: 78 times
Was thanked: 9 time(s) in 9 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

mavik  
#5 Posted : Thursday, January 26, 2023 8:31:14 PM(UTC)
mavik

Rank: Advanced Member

Groups: Registered
Joined: 4/23/2017(UTC)
Posts: 958
Man
Location: Germany

Thanks: 3 times
Was thanked: 142 time(s) in 125 post(s)
The scripting for dummies forum topic is a good source for all kind of issues.
doggy  
#6 Posted : Thursday, January 26, 2023 8:58:02 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 4,406
Belgium
Location: Belgium

Thanks: 249 times
Was thanked: 794 time(s) in 647 post(s)
Originally Posted by: itarsc3 Go to Quoted Post
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"
Users browsing this topic
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.