Git Product home page Git Product logo

obs-main-view-source's Introduction

OBS Main View Source

Introduction

This is a simple plugin for OBS Studio that provides a source to duplicate the main view.

This plugin is compatible with Source Record filter and Dedicated NDI filter.

Properties

Cache the main view

Cache texture of the main view at the first rendering and reuse the cached texture for the later rendering. If enabled, the previous frame will be displayed if the source is nested. Also scene items overflowing the texture will be cropped. Enable this setting if one of these conditions applies.

  • You want to hide overflowing scene items outside the bounding box of the main view.
  • You want to put the source on the main view to enjoy fractals.

Render before output/display rendering

Deprecated

Render the texture before OBS start to render output and each display. Recommended to enable if

  • You want to have the source in a nested scene.

If enabled, since the order of rendering sources changes, something might be affected.

If no issues are reported without disabling this property, this property might be dropped in the future and fixed to enabled. If you need this property, please file an issue not to deprecate.

Build and install

Linux

Use cmake to build on Linux. After checkout, run these commands.

sed -i 's;${CMAKE_INSTALL_FULL_LIBDIR};/usr/lib;' CMakeLists.txt
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install

macOS

Use cmake to build on Linux. After checkout, run these commands.

mkdir build && cd build
cmake ..
make

See also

obs-main-view-source's People

Contributors

norihiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ogmkp tt2468

obs-main-view-source's Issues

Main output source not showing correctly

Hello @norihiro.

I was testing your plugin and it seems there are some things not working correctly.

In this example, I've added your plugin source to this scene. Because this scene had some media sources (avatar pictures on the bottom left corner) that goes outside the canvas area, the source was showing those areas from outside the regular output 1080p canvas. So I had to add a crop filter with 0 value in order to remove those exceeding pixels from outside the canvas. It was working fine but out of blue, it stopped. I've recorded this video showing that the main output source was not showing anything in the current scene, when I disable the crop filter, it only showed something inside the filter properties dialog window, not sure what was going on there.

obs64_seoPBkgD1Y.mp4

Not sure how this "exceeding" pixels from the outside of the project standard 1080p canvas would behave in terms of transformation and crop filter settings, since not all scenes has those objects going outside the canvas area...

This is another scene that I had the main output source added, it shows up the scene but not inside the main output source, I think it should be there as well, right? Or you had it coded to hide its own source from itself?

image

Thank you!

OBS freezes after adding the plugin

Hello!

Since the last couple of releases, I'm unable to add this plugin to my OBS without it crashing after a few seconds.

Here's a video showing it, it happens 100% of the time without showing anything in the log:

obs64_dcdMuu5iuu.mp4

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.