vMix Forums
»
General
»
General Discussion
»
Auto scale layer in multiview
Rank: Member
Groups: Registered
Joined: 8/6/2023(UTC) Posts: 10 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?
|
|
|
|
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: Bonbondotkom Originally Posted by: elPoohy 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
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 8/6/2023(UTC) Posts: 10 Location: Germasogeia
|
Originally Posted by: doggy Originally Posted by: Bonbondotkom Originally Posted by: elPoohy 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 (
|
|
|
|
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: elPoohy 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 !
|
|
|
|
Rank: Member
Groups: Registered
Joined: 8/6/2023(UTC) Posts: 10 Location: Germasogeia
|
Originally Posted by: doggy Originally Posted by: elPoohy 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.
|
|
|
|
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)
|
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.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 8/6/2023(UTC) Posts: 10 Location: Germasogeia
|
Originally Posted by: mavik 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/27/2022(UTC) Posts: 31 Thanks: 11 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: elPoohy 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.vbCode: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
|
|
|
|
Rank: Member
Groups: Registered
Joined: 8/6/2023(UTC) Posts: 10 Location: Germasogeia
|
Originally Posted by: Bonbondotkom 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.
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Auto scale layer in multiview
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