So I’m trying to distort a whole channel by routing channel 2 to layer 1-20.
But when I distort 1-20 the layers in channel 2 all behave like they are in channel 1.
Is there a way to route the whole channel as a flattened image?
SOLVED
I found a workaround:
Enabeld NDI output on channel 2
And then added the output to channel 1:
PLAY 1-20 ndi://COMPUTERNAME/STREAMNAME
This is “Shooting at sparrows with cannons”.
See the Route Producer . You can composite down a whole channel to a single layer with a PLAY command and by giving the source channel (without a layer argument) and a channel and layer as the destination.
To play channel 1 on layer 1 of channel 2 use:
PLAY 2-10 route://1
By the way: You only need a “hollow” channel, without a consumer attached as the channel to composite the layers (channel 1 in the example does not need a consumer).
1 Like
are you experiencing this
Hi
Old user, first post
I’m trying to use perspective for the first time, and I’m a bit baffled as to how it works.
I’ve composed a simple layout of two videos scaled and running next to each other on channel2.
Then I route channel2 to layer10 in channel1
When I add a perspective to 1-10, it’s applied to each element/video individually rather than the complete layer. Is this expected?
Running 2.2.x latest build as of yesterday.
opened 08:25AM - 31 May 20 UTC
type/bug
on hold
### Expected behaviour
mixer perspective on a routed layer should be treated as… one source
### Current behaviour
mixer perspective on a routed layer is applied on each individual layer in the origin channel
----
### Steps to reproduce
1. PLAY 2-10 "2017_GR01_CHAMPIONSHIP" CUT 1 Linear RIGHT LOOP
2. PLAY 2-20 "2017_GR01_CHAMPIONSHIP" CUT 1 Linear RIGHT LOOP
3. MIXER 2-10 FILL 0.116667 0.516667 0.333333 0.333333 1 Linear
4. MIXER 2-20 FILL 0.533333 0.516667 0.333333 0.333333 1 Linear
5. PLAY 1-10 route://2
6. MIXER 1-10 PERSPECTIVE 0 0.733333 0.733333 0.166667 0.8 1.06667 -0.0666667 1.03333 14 Linear
```
[2020-05-31 09:51:09.964] [info] ############################################################################
[2020-05-31 09:51:09.965] [info] CasparCG Server is distributed by the Swedish Broadcasting Corporation (SVT)
[2020-05-31 09:51:09.965] [info] under the GNU General Public License GPLv3 or higher.
[2020-05-31 09:51:09.965] [info] Please see LICENSE.TXT for details.
[2020-05-31 09:51:09.965] [info] http://www.casparcg.com/
[2020-05-31 09:51:09.965] [info] ############################################################################
[2020-05-31 09:51:09.965] [info] Starting CasparCG Video and Graphics Playout Server 2.3.0 14f52882 Dev
[2020-05-31 09:51:11.138] [info] Initializing OpenGL Device.
[2020-05-31 09:51:11.140] [info] Initialized OpenGL 4.5.0 NVIDIA 376.84 NVIDIA Corporation
[2020-05-31 09:51:11.142] [info] Initialized ffmpeg module.
[2020-05-31 09:51:11.142] [info] Initialized oal module.
[2020-05-31 09:51:11.142] [info] Initialized decklink module.
[2020-05-31 09:51:11.143] [info] Initialized screen module.
[2020-05-31 09:51:11.143] [info] Initialized newtek module.
[2020-05-31 09:51:11.216] [info] Initialized html module.
[2020-05-31 09:51:11.353] [info] Initialized flash module.
[2020-05-31 09:51:11.354] [info] Initialized bluefish module.
[2020-05-31 09:51:11.354] [info] Initialized image module.
[2020-05-31 09:51:11.354] [info] "C:/Users\runef\Tools\Casparcg\2.2.x\casparcg.config":
[2020-05-31 09:51:11.354] [info] -----------------------------------------
[2020-05-31 09:51:11.354] [info] <?xml version="1.0" encoding="utf-8"?>
[2020-05-31 09:51:11.354] [info] <configuration>
[2020-05-31 09:51:11.354] [info] <paths>
[2020-05-31 09:51:11.354] [info] <media-path>../media/</media-path>
[2020-05-31 09:51:11.354] [info] <log-path>log/</log-path>
[2020-05-31 09:51:11.354] [info] <data-path>data/</data-path>
[2020-05-31 09:51:11.354] [info] <template-path>template/</template-path>
[2020-05-31 09:51:11.354] [info] <font-path>font/</font-path>
[2020-05-31 09:51:11.354] [info] </paths>
[2020-05-31 09:51:11.354] [info] <lock-clear-phrase>secret</lock-clear-phrase>
[2020-05-31 09:51:11.354] [info] <channels>
[2020-05-31 09:51:11.354] [info] <channel>
[2020-05-31 09:51:11.354] [info] <video-mode>1080i5000</video-mode>
[2020-05-31 09:51:11.354] [info] <consumers>
[2020-05-31 09:51:11.354] [info] <decklink>
[2020-05-31 09:51:11.354] [info] <device>5</device>
[2020-05-31 09:51:11.354] [info] <embedded-audio>true</embedded-audio>
[2020-05-31 09:51:11.354] [info] <latency>normal</latency>
[2020-05-31 09:51:11.354] [info] <keyer>external</keyer>
[2020-05-31 09:51:11.354] [info] <key-only>false</key-only>
[2020-05-31 09:51:11.354] [info] <buffer-depth>3</buffer-depth>
[2020-05-31 09:51:11.354] [info] </decklink>
[2020-05-31 09:51:11.354] [info] </consumers>
[2020-05-31 09:51:11.354] [info] </channel>
[2020-05-31 09:51:11.354] [info] <channel>
[2020-05-31 09:51:11.354] [info] <video-mode>1080i5000</video-mode>
[2020-05-31 09:51:11.354] [info] <consumers>
[2020-05-31 09:51:11.354] [info] <screen/>
[2020-05-31 09:51:11.354] [info] </consumers>
[2020-05-31 09:51:11.354] [info] </channel>
[2020-05-31 09:51:11.354] [info] </channels>
[2020-05-31 09:51:11.354] [info] <controllers>
[2020-05-31 09:51:11.354] [info] <tcp>
[2020-05-31 09:51:11.354] [info] <port>5250</port>
[2020-05-31 09:51:11.354] [info] <protocol>AMCP</protocol>
[2020-05-31 09:51:11.354] [info] </tcp>
[2020-05-31 09:51:11.354] [info] </controllers>
[2020-05-31 09:51:11.354] [info] <amcp>
[2020-05-31 09:51:11.354] [info] <media-server>
[2020-05-31 09:51:11.354] [info] <host>localhost</host>
[2020-05-31 09:51:11.354] [info] <port>8000</port>
[2020-05-31 09:51:11.354] [info] </media-server>
[2020-05-31 09:51:11.354] [info] </amcp>
[2020-05-31 09:51:11.354] [info] </configuration>
[2020-05-31 09:51:11.354] [info] -----------------------------------------
[2020-05-31 09:51:11.368] [info] Initialized OpenGL Accelerated GPU Image Mixer for channel 1
[2020-05-31 09:51:11.371] [info] video_channel[1|1080i5000] Successfully Initialized.
[2020-05-31 09:51:11.371] [info] Initialized OpenGL Accelerated GPU Image Mixer for channel 2
[2020-05-31 09:51:11.371] [info] video_channel[2|1080i5000] Successfully Initialized.
[2020-05-31 09:51:11.687] [info] DeckLink HD Extreme 3D+ [1-5|1080i5000] Enabled embedded-audio.
[2020-05-31 09:51:11.687] [info] DeckLink HD Extreme 3D+ [1-5|1080i5000] Disabled low-latency mode.
[2020-05-31 09:51:11.687] [info] DeckLink HD Extreme 3D+ [1-5|1080i5000] Enabled external keyer.
[2020-05-31 09:51:11.691] [info] DeckLink HD Extreme 3D+ [1-5|1080i5000] Initialized.
[2020-05-31 09:51:11.693] [info] Screen consumer [2|1080i5000] Initialized.
[2020-05-31 09:51:11.693] [info] Initialized channels.
[2020-05-31 09:51:11.699] [info] Initialized controllers.
[2020-05-31 09:51:11.699] [info] Initialized osc.
[2020-05-31 09:51:11.844] [info] DeckLink HD Extreme 3D+ [1-5|1080i5000] Reference signal: not detected.
[2020-05-31 09:51:12.713] [info] async_event_server[:5250] Accepted connection from 192.168.0.47 (1 connections).
[2020-05-31 09:51:12.713] [info] Received message from 192.168.0.47: VERSION SERVER\r\n
[2020-05-31 09:51:12.714] [info] Sent message to 192.168.0.47:201 VERSION OK\r\n2.3.0 14f52882 Dev\r\n
[2020-05-31 09:51:12.714] [info] Received message from 192.168.0.47: INFO\r\n
[2020-05-31 09:51:12.715] [info] Sent message to 192.168.0.47:200 INFO OK\r\n1 1080i5000 PLAYING\r\n2 1080i5000 PLAYING\r\n\r\n
[2020-05-31 09:51:12.715] [info] Received message from 192.168.0.47: CLS\r\n
[2020-05-31 09:51:12.717] [info] Received message from 192.168.0.47: TLS\r\n
[2020-05-31 09:51:12.718] [info] Received message from 192.168.0.47: DATA LIST\r\n
[2020-05-31 09:51:12.720] [info] Received message from 192.168.0.47: THUMBNAIL LIST\r\n
[2020-05-31 09:51:12.747] [info] Sent message to 192.168.0.47:200 CLS OK\r\n"2017_GR01_CHAMPIONSHIP" MOVIE 116134450 20200529164746 2213 1/25\r\n\r\n
[2020-05-31 09:51:12.754] [info] Sent message to 192.168.0.47:200 TLS OK\r\n\r\n
[2020-05-31 09:51:12.755] [info] Sent message to 192.168.0.47:200 DATA LIST OK\r\n\r\n
[2020-05-31 09:51:12.766] [info] Sent message to 192.168.0.47:200 THUMBNAIL LIST OK\r\n"2017_GR01_CHAMPIONSHIP" 20200529T164746 304\r\n\r\n
[2020-05-31 09:51:26.516] [info] Received message from 192.168.0.47: PLAY 2-10 "2017_GR01_CHAMPIONSHIP" CUT 1 Linear RIGHT LOOP\r\n
[2020-05-31 09:51:26.521] [info] Sent message to 192.168.0.47:202 PLAY OK\r\n
[2020-05-31 09:51:34.065] [info] Received message from 192.168.0.47: PLAY 2-20 "2017_GR01_CHAMPIONSHIP" CUT 1 Linear RIGHT LOOP\r\n
[2020-05-31 09:51:34.069] [info] Sent message to 192.168.0.47:202 PLAY OK\r\n
[2020-05-31 09:51:39.070] [info] Received message from 192.168.0.47: MIXER 2-10 MIPMAP 0\r\n
[2020-05-31 09:51:39.070] [info] Sent message to 192.168.0.47:400 ERROR\r\nMIXER 2-10 MIPMAP 0\r\n
[2020-05-31 09:51:39.073] [info] Received message from 192.168.0.47: MIXER 2-10 FILL 0.116667 0.516667 0.333333 0.333333 1 Linear\r\n
[2020-05-31 09:51:39.073] [info] Sent message to 192.168.0.47:202 MIXER OK\r\n
[2020-05-31 09:51:44.881] [info] Received message from 192.168.0.47: MIXER 2-20 MIPMAP 0\r\n
[2020-05-31 09:51:44.882] [info] Sent message to 192.168.0.47:400 ERROR\r\nMIXER 2-20 MIPMAP 0\r\n
[2020-05-31 09:51:44.883] [info] Received message from 192.168.0.47: MIXER 2-20 FILL 0.533333 0.516667 0.333333 0.333333 1 Linear\r\n
[2020-05-31 09:51:44.883] [info] Sent message to 192.168.0.47:202 MIXER OK\r\n
[2020-05-31 09:51:54.573] [info] Received message from 192.168.0.47: PLAY 1-10 route://2\r\n
[2020-05-31 09:51:54.574] [info] Sent message to 192.168.0.47:202 PLAY OK\r\n
[2020-05-31 09:51:57.303] [info] Received message from 192.168.0.47: MIXER 1 MASTERVOLUME 1\r\n
[2020-05-31 09:51:57.304] [info] Sent message to 192.168.0.47:202 MIXER OK\r\n
[2020-05-31 09:51:57.814] [info] Received message from 192.168.0.47: MIXER 1 MASTERVOLUME 0\r\n
[2020-05-31 09:51:57.814] [info] Sent message to 192.168.0.47:202 MIXER OK\r\n
[2020-05-31 09:52:10.047] [info] Received message from 192.168.0.47: MIXER 1-10 MIPMAP 0\r\n
[2020-05-31 09:52:10.047] [info] Sent message to 192.168.0.47:400 ERROR\r\nMIXER 1-10 MIPMAP 0\r\n
[2020-05-31 09:52:10.049] [info] Received message from 192.168.0.47: MIXER 1-10 PERSPECTIVE 0 0.733333 0.733333 0.166667 0.8 1.06667 -0.0666667 1.03333 14 Linear\r\n
[2020-05-31 09:52:10.049] [info] Sent message to 192.168.0.47:202 MIXER OK\r\n1.
```
2.
3. ...
### Environment
* Commit:
* Server version: v2.2, automated build (http://casparcg.com/builds/CasparCG%20Server/2.2.x/casparcg-server-f0d65d6609e9fec6b367470af7f6ed537fa3bac6-windows.zip)
* Operating system: Windows 10
---
### Screenshots
Screenshot and intial comments at https://casparcgforum.org/t/distort-perspective-weird-behaviour/3175
your original aproach is how it should work but due too a bug it does not.
It’s a known issue but it isn’t fixed yet i guess
1 Like
Nope
I was thinking the same thing: PLAY 2-10 route://1-10
routes 1 layer and PLAY 2-10 route://1
routes the flattened channel 1. But somehow it does not flatten channel 1 and each layer keeps their transformation. So when you do a distort everything goes everywhere.
I made a video:
*note, in the video I am using decklinks outputs for all channels, indeed they don’t need a consumer.
Yes, just downloaded 2.3.3 add it still does it was testing on 2.3.0
Think “added this to the [v2.3.1 LTS milestone” from your post did not make it.
“The issue is not present in 2.1.x latest build”
Going to test that another time.
2.1.0 Works as expected, but it is slower about 3-4 frames per routing.
So with 2 times a route channel it comes to 9 frames delay.
The new routing is faster, no frame delays. But NDI gives me 5 frames delay.
So for this project 2.3 with NDI is faster.
1 Like
Hello everyone.
I found out that audio is not being routed in versions after 2nd release on February 16th 2023.
Last version where audio is also routed is 2.3.3 5009f25
Is anyone else experiencing same situation?
PLAY 3-1 ROUTE://1
Thanks for figuring out the last version that worked, that makes it much easier to figure out how it got broken.
It looks like I made a silly copy and paste mistake. The next build 417f7f6
should be fixed (build will be available in ~30 minutes)
1 Like