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
elPoohy  
#1 Posted : Wednesday, August 9, 2023 7:28:36 PM(UTC)
elPoohy

Rank: Member

Groups: Registered
Joined: 8/6/2023(UTC)
Posts: 10
Cyprus
Location: Germasogeia

Hello everyone.

I have a multiview in which one layer consists of different media sources. They can have any aspect ratio from 16:9 to 9:16. But they all need to fit into a rectangular area. How can I set up automatic fitting to the inner boundaries of this area? I thought about writing a VB script but didn't understand how to get the resolution value of the media file for a specific input. This information is not present in the current status XML.

Is there a way to configure this using standard tools or to retrieve this information in a script?
doggy  
#2 Posted : Thursday, August 10, 2023 9:03:17 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: Bonbondotkom Go to Quoted Post
Originally Posted by: elPoohy Go to Quoted Post
Hello everyone.

I have a multiview in which one layer consists of different media sources. They can have any aspect ratio from 16:9 to 9:16. But they all need to fit into a rectangular area. How can I set up automatic fitting to the inner boundaries of this area? I thought about writing a VB script but didn't understand how to get the resolution value of the media file for a specific input. This information is not present in the current status XML.

Is there a way to configure this using standard tools or to retrieve this information in a script?


try posting your question here:

https://forums.vmix.com/posts/t20986-Scripting-for-Dummies


Useless response ;-)

Just use a simple virtual set with a UVMAP. Source will fit into the map , check with the "Demo UVMap VirtualSetWorks "set
thanks 1 user thanked doggy for this useful post.
Bonbondotkom on 8/14/2023(UTC)
elPoohy  
#3 Posted : Thursday, August 10, 2023 10:38:40 PM(UTC)
elPoohy

Rank: Member

Groups: Registered
Joined: 8/6/2023(UTC)
Posts: 10
Cyprus
Location: Germasogeia

Originally Posted by: doggy Go to Quoted Post
Originally Posted by: Bonbondotkom Go to Quoted Post
Originally Posted by: elPoohy Go to Quoted Post
Hello everyone.

I have a multiview in which one layer consists of different media sources. They can have any aspect ratio from 16:9 to 9:16. But they all need to fit into a rectangular area. How can I set up automatic fitting to the inner boundaries of this area? I thought about writing a VB script but didn't understand how to get the resolution value of the media file for a specific input. This information is not present in the current status XML.

Is there a way to configure this using standard tools or to retrieve this information in a script?


try posting your question here:

https://forums.vmix.com/posts/t20986-Scripting-for-Dummies


Useless response ;-)

Just use a simple virtual set with a UVMAP. Source will fit into the map , check with the "Demo UVMap VirtualSetWorks "set


But UVmap didn't help. If I create map of rectangular shape I will cut everithing that outside of UVMAP area (
doggy  
#4 Posted : Friday, August 11, 2023 12:24:55 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: elPoohy Go to Quoted Post

But UVmap didn't help. If I create map of rectangular shape I will cut everithing that outside of UVMAP area (


I dont know how you created the UV map or modified it but if one has a standard screensize UVMAP any input assigned to should be inside it !
elPoohy  
#5 Posted : Friday, August 11, 2023 12:36:02 AM(UTC)
elPoohy

Rank: Member

Groups: Registered
Joined: 8/6/2023(UTC)
Posts: 10
Cyprus
Location: Germasogeia

Originally Posted by: doggy Go to Quoted Post
Originally Posted by: elPoohy Go to Quoted Post

But UVmap didn't help. If I create map of rectangular shape I will cut everithing that outside of UVMAP area (


I dont know how you created the UV map or modified it but if one has a standard screensize UVMAP any input assigned to should be inside it !


Yes. But my problem come to life when I need nonstandard screensize. I need my inputs to be bounded to the rectangular (almost square) arena.
mavik  
#6 Posted : Friday, August 11, 2023 3:18:54 AM(UTC)
mavik

Rank: Advanced Member

Groups: Registered
Joined: 4/23/2017(UTC)
Posts: 1,211
Man
Location: Germany

Thanks: 3 times
Was thanked: 168 time(s) in 150 post(s)
Is a mask working in your case then? You can have a special shape mask and use whatever input. It wouldn't resize the input but allow a special predefined shape.
elPoohy  
#7 Posted : Friday, August 11, 2023 5:40:40 AM(UTC)
elPoohy

Rank: Member

Groups: Registered
Joined: 8/6/2023(UTC)
Posts: 10
Cyprus
Location: Germasogeia

Originally Posted by: mavik Go to Quoted Post
Is a mask working in your case then? You can have a special shape mask and use whatever input. It wouldn't resize the input but allow a special predefined shape.


Yes. But, as You say, it doesn't resize. That main issue with vMix.
Bonbondotkom  
#8 Posted : Monday, August 14, 2023 11:30:02 PM(UTC)
Bonbondotkom

Rank: Advanced Member

Groups: Registered
Joined: 7/27/2022(UTC)
Posts: 31
Philippines

Thanks: 11 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: elPoohy Go to Quoted Post
Hello everyone.

I have a multiview in which one layer consists of different media sources. They can have any aspect ratio from 16:9 to 9:16. But they all need to fit into a rectangular area. How can I set up automatic fitting to the inner boundaries of this area? I thought about writing a VB script but didn't understand how to get the resolution value of the media file for a specific input. This information is not present in the current status XML.

Is there a way to configure this using standard tools or to retrieve this information in a script?


First of all, apologies for the "Useless Response". just store a custom xml in DynamicValue that stores the info you need, then pull data from that using VB.

here's an example from the StreamingAlchemy Show


https://github.com/StreamingAlch...ain/SA-S02E07/SetBox1.vb

Code:
Dynamic1Val = "<Slots><Slot1>A</Slot1><Slot2>B</Slot2><Slot3>C</Slot3><Slot4>D</Slot4></Slots>"

    API.Function("SetDynamicValue1", Value:=Dynamic1Val)


Code:
dim Dynamic1Node As XmlNode = VmixXML.selectSingleNode("/vmix/dynamic/value1")

dim SlotXML as new system.xml.xmldocument
     
    SlotXML.LoadXml(Dynamic1Node.InnerText)

    Slot1Guest = SlotXML.selectSingleNode("/Slots/Slot1").InnerText
    Slot2Guest = SlotXML.selectSingleNode("/Slots/Slot2").InnerText
    Slot3Guest = SlotXML.selectSingleNode("/Slots/Slot3").InnerText
    Slot4Guest = SlotXML.selectSingleNode("/Slots/Slot4").InnerText


Credit to:https://www.youtube.com/@StreamingAlchemy
elPoohy  
#9 Posted : Friday, August 18, 2023 8:00:37 PM(UTC)
elPoohy

Rank: Member

Groups: Registered
Joined: 8/6/2023(UTC)
Posts: 10
Cyprus
Location: Germasogeia

Originally Posted by: Bonbondotkom Go to Quoted Post

First of all, apologies for the "Useless Response". just store a custom xml in DynamicValue that stores the info you need, then pull data from that using VB.

here's an example from the StreamingAlchemy Show


Thank You, for your answer.

But that also not an automatic. You need to manually enter resolution. But when You on news show sometimes You only have 10 seconds for import media to vMix, before have it live.
Users browsing this topic
Guest
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.