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
strempro  
#1 Posted : Sunday, July 12, 2020 12:51:31 PM(UTC)
strempro

Rank: Newbie

Groups: Registered
Joined: 7/12/2020(UTC)
Posts: 1
Turkey
Location: Ankara

Hi,

I'm trying to find a plugin or any other way to show viewers, current playing movie name at the bottom corner. It may get from the file name of the movie.

Do you know any kind of plugin for that feature? I'm also ready to pay for that plugin.

Please advise, thanks.


stigaard  
#2 Posted : Sunday, July 12, 2020 4:54:00 PM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 389 times
Was thanked: 100 time(s) in 79 post(s)
Can be done using data sources. Some years ago i made a video on it.

doggy  
#3 Posted : Sunday, July 12, 2020 5:49:25 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
or very like Stigaard but with vMix script

with a few adaptations
https://forums.vmix.com/...ng-for-Dummies#post73288
Peter1000  
#4 Posted : Thursday, July 16, 2020 7:13:28 PM(UTC)
Peter1000

Rank: Advanced Member

Groups: Registered
Joined: 1/25/2019(UTC)
Posts: 303
Switzerland

Thanks: 17 times
Was thanked: 79 time(s) in 60 post(s)
This script reads the current title of a playlist and writes it formatted into a field of a title input

In this example I use the title included in vMix " Title 33- On the shelf- Peach.gtzip " and I write the text in the field “Headline.Text”
My list input is Input2.
Please adapt this (title, field and List-input-number) for your project.

I use a list of MP3 audiofiles. These are named as follows:
Anni Piper - Two's Company - 01 - Blues Before Sunrise.mp3
Anni Piper - Two's Company - 02 - Live To Play.mp3
Anni Piper - Two's Company - 03 - Man's Woman.mp3

The goal is to extract a usable name from this string.

The finished script looks like this:

Code:
'script playing now
do
dim xml as string = API.XML()
dim x as new system.xml.xmldocument
x.loadxml(xml)
dim word as string = x.SelectSingleNode("//input[@number=[h]'2'[/h]]/@title").Value
word = word.remove(word.Length - 4)
dim wordArr as String() = word.Split("-")
Dim result0 as String = wordArr(0)
Dim result1 as String = wordArr(1)
Dim result2 as String = wordArr(2)
Dim result3 as String = wordArr(3)
Dim result4 as String = wordArr(4)
dim fullname as string =  result1 + " " + result2 + " " + result4 
API.Function("SetText",Input:="Title 33- On the shelf- Peach.gtzip",SelectedName:="Headline.Text",Value:=result1)
sleep(1000)
API.Function("SetText",Input:="Title 33- On the shelf- Peach.gtzip",SelectedName:="Headline.Text",Value:=result2)
sleep(1000)
API.Function("SetText",Input:="Title 33- On the shelf- Peach.gtzip",SelectedName:="Headline.Text",Value:=result4)
sleep(1000)
API.Function("SetText",Input:="Title 33- On the shelf- Peach.gtzip",SelectedName:="Headline.Text",Value:=fullname)
sleep(1000)
loop


The script can be started with a shortcut. If the list is cleared, the script stops itself due to an error.


explanation of the different sections
‘do / loop, loops the script infinite
do

‘Reads all API information that vMix has to offer

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

‘Extracts the currently playing name of the list-inputs-2 into the string word
dim word as string = x.SelectSingleNode("//input[@number='2']/@title").Value

‘truncates the last 4 characters of the string word (.mp3)
word = word.REMOVE(word.Length - 4)

‘Splits the remaining string into word parts. In this example the name is divided with hyphens -.
‘Depending on the filename of your list, this may or may not be necessary.

dim wordArr as String() = word.Split("-")

‘Defines the individual word parts as individual strings.
‘Depending on the filename of your list, this may or may not be necessary.

‘Attention: The array must not be larger than it has word parts.[/h]
Dim result0 as String = wordArr(0)
Dim result1 as String = wordArr(1)
Dim result2 as String = wordArr(2)
Dim result3 as String = wordArr(3)
Dim result4 as String = wordArr(4)

‘Composes a new string from band name, album and title (fullname)
dim fullname as string = result1 + " " + result2 + " " + result4


'If the filename only contains the title, you can use the variable word instead of result1
‘Writes bandname and waits one second

API.Function("SetText",Input:="Title 33- On the shelf- Peach.gtzip",SelectedName:="Headline.Text",Value:=result1)
sleep(1000)

‘Writes albumname and waits one second
API.Function("SetText",Input:="Title 33- On the shelf- Peach.gtzip",SelectedName:="Headline.Text",Value:=result2)
sleep(1000)

‘Writes title and waits one second
API.Function("SetText",Input:="Title 33- On the shelf- Peach.gtzip",SelectedName:="Headline.Text",Value:=result4)
sleep(1000)

‘Writes Fullname and waits one second

API.Function("SetText",Input:="Title 33- On the shelf- Peach.gtzip",SelectedName:="Headline.Text",Value:=fullname)
sleep(1000)

‘loops back to the beginning
loop


thanks 2 users thanked Peter1000 for this useful post.
doggy on 7/16/2020(UTC), DWAM on 7/16/2020(UTC)
Users browsing this topic
Guest (2)
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.