Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Channel routes clip and mix transition bugs #1575

Open
rrebuffo opened this issue Sep 28, 2024 · 0 comments
Open

Bug: Channel routes clip and mix transition bugs #1575

rrebuffo opened this issue Sep 28, 2024 · 0 comments
Labels

Comments

@rrebuffo
Copy link

rrebuffo commented Sep 28, 2024

Observed Behavior

When routing a whole channel (e.g. PLAY 2-1 route://1) the target layer won't respect the source channel bounds on the target channel and mix transitions seem to be on top of other layers when in progress.

Extending bug #1274

Expected behaviour

Routed channel behave as a single composite cropped image played in the target layer without overlapping other layers.

As a workaround I routed each layer independently and cropped the target routes so they don't overlap.
Older versions of the server (e.g. 2.1) did not have this issue.

Steps to reproduce

To reproduce the channel bounds bug:

  1. Play media on a source channel
    PLAY 1-1 AMB LOOP
  2. Squeeze the layer until it's bigger than the channel
    MIXER 1-1 FILL 0 0 2 2
  3. Route the source channel to a target channel
    PLAY 2-1 route://1
  4. Resize the target layer so it's smaller
    MIXER 2-1 FILL 0 0 0.5 0.5
  5. The target channel should show only the source channel cropped to the top left quadrant. Instead, it shows the whole layer in full.

To reproduce the mix transition bug:

  1. Play media on a source channel
    PLAY 1-1 AMB LOOP
  2. Squeeze the layer until it's bigger than the channel
    MIXER 1-1 FILL 0 0 2 2
  3. Route the source channel to a target channel
    PLAY 2-1 route://1
  4. Clip the source layer to match the channel bounds
    MIXER 1-1 CLIP 0 0 .5 .5
  5. Play media in a higher layer than the clipped layer and shrink it to show the lower layer
    PLAY 1-2 CG1080i50 LOOP
    MIXER 1-2 FILL .5 0 .5 1
  6. Replace the playing clip with a mix transition in the source's lower layer
    PLAY 1-1 go1080p25 LOOP MIX 100
  7. The source layer moves to the foreground, covering the top layer until the transition ends.

Environment

  • Commit: 1e25c7a
  • Server version: 2.4 Stable
  • Operating system: Windows 10 22H2
  • GPU: NVIDIA Quadro RTX 4000 [552.86]
  • Config file:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <log-level>info</log-level>
  <log-align-columns>true</log-align-columns>
  <paths>
    <media-path>D:\_content\media</media-path>
    <log-path>log/</log-path>
    <data-path>D:\_content\data</data-path>
    <font-path>D:\_content\font</font-path>
    <template-path>D:\_content\template</template-path>
  </paths>
  <lock-clear-phrase>secret</lock-clear-phrase>
  <channels>
    <channel>
      <video-mode>Main</video-mode>
      <consumers />
    </channel>
    <channel>
      <video-mode>1080p6000</video-mode>
      <consumers>
        <ndi>
          <name>Main LED</name>
          <allow-fields>false</allow-fields>
        </ndi>
      </consumers>
    </channel>
  </channels>
  <controllers>
    <tcp>
      <port>5252</port>
      <protocol>AMCP</protocol>
    </tcp>
  </controllers>
  <amcp>
    <media-server>
      <host>localhost</host>
      <port>8000</port>
    </media-server>
  </amcp>
  <flash>
    <buffer-depth>auto</buffer-depth>
    <enabled>false</enabled>
  </flash>
  <html>
    <remote-debugging-port>32325</remote-debugging-port>
    <enable-gpu>true</enable-gpu>
    <angle-backend>d3d11</angle-backend>
  </html>
  <ffmpeg>
    <producer>
      <auto-deinterlace>interlaced</auto-deinterlace>
      <threads>4</threads>
    </producer>
  </ffmpeg>
  <ndi>
    <auto-load>false</auto-load>
  </ndi>
  <osc>
    <default-port>6252</default-port>
    <disable-send-to-amcp-clients>false</disable-send-to-amcp-clients>
    <predefined-clients />
  </osc>
  <video-modes>
    <video-mode>
      <id>Main</id>
      <width>2962</width>
      <height>540</height>
      <time-scale>60000</time-scale>
      <duration>1000</duration>
      <cadence>0</cadence>
    </video-mode>
  </video-modes>
</configuration>
@rrebuffo rrebuffo changed the title Bug: [Short description of the bug] Bug: Channel routes clip and mix transition bugs Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant