r/Twitch • u/dodgepong • Jan 23 '18
PSA OBS Studio v21 Released: Lua/Python Scripting, New Audio Meters, Ducking, Multiview, and lots more
Full Changelog/Downloads: https://github.com/jp9000/obs-studio/releases/tag/21.0.1
Help Portal: https://obsproject.com/help
Patch Notes:
Scripting
- Added Luajit/Python3 scripting support. Scripting can be accessed via the "Tools" menu -> "Scripts".
- Lua is supported via Luajit, which comes with the program. Lua is recommended for high performance scripts, automation, and sources.
- Python is available if access to its convenient libraries is desired. On windows, to use Python, Python version 3.6 must be installed separately ("x86-64" version if 64bit OBS Studio, "x86" version if 32bit OBS Studio), and the Python 3.6 install path must be configured in the Python settings tab.
- Scripting documentation can be found in the developer documentation: https://obsproject.com/docs/scripting.html
- Added an example Lua script: An "Analog Clock" source which draws an analog clock (added like any other source when the script is active)
- Added an example Lua script: A "Countdown Timer" script which sets the text of a text source to a countdown timer which counts down when that text source is displayed on stream.
- Added an example Lua script: An "Instant Replay" script which automatically save a replay if there's an active replay buffer, and then plays back that replay in a specified media source after that replay has saved.
- Added an example Python script: A "URL Text" script which sets the text of a specified text source to the text downloaded from a specified URL every specified interval.
New Audio Features
- Added sidechain/ducking support to the compressor filter. This allows the ability to lower the audio level of an audio source based upon how loud another source is. For example, to apply microphone ducking to a desktop audio source, add a compressor filter to the desktop audio source, then select the microphone audio source in the "Sidechain/Ducking Source" property.
- Added surround sound audio output support, which allows outputting 2.1, 4.0, 4.1, 5.1, and 7.1 audio to stream/recording. (When using this feature, please also make sure to increase your audio bitrate to support all the channels in output settings. Although some services like Twitch support it, note that certain services such as YouTube may not fully support surround sound streaming, and may not downmix them correctly for stereo viewers)
- Added new audio meters to allow the ability to see the audio levels of each audio channel of that source. This allows the ability to know if there are any issues with a specific audio channel (e.g. if just the left or right audio channel is somehow low or muted).
- Changed audio meters to behave like peak programme meters. This will make it easier to see if your audio is clipping and set your audio levels correctly. For more information, see: https://obsproject.com/wiki/Understanding-The-Mixer
- Added an "Audio Meter Decay Rate" option in audio settings to allow selecting a specific delay rate (fast, medium, slow) for the audio meters if desired.
- Added the ability to rename audio sources via right-clicking them in the audio mixer, including desktop and microphone audio capture sources added via audio settings.
New Production and Studio Mode Features
- Added a "Multiview" projector (accessible via the View menu), which allows the ability to view the preview/program and up to 8 scenes at the same time. Scenes in the Multiview can be clicked to change the scene (or the preview scene in studio mode). You can blacklist certain scenes from displaying in the multi-view by right-clicking the scene in the scenes list and unchecking "Show in Multiview". You can also change the Multiview's layout style in general settings.
- Added an option in general settings that allows you to transition to a scene in studio mode simply by double-clicking on it. This also applies to the multiview projector.
- Added separate projectors for both preview and program views in studio mode.
- Added a portrait/vertical layout option for studio mode in general settings which makes the preview/program views vertical relative to each other instead of horizontal
- Added per-scene transition overriding, which allows you to select a specific transition to use for a specific scene. To use this feature, right-click on the scene in the scene list, and select the transition/duration via the right-click context menu. (This override does not apply to studio mode quick transitions)
Developer Documentation
- Spent about a week or so and finally wrote full developer API documentation/reference (useful for both native and script developers), which can be found here: https://obsproject.com/docs
Other General Changes and Fixes
- Added a new program theme: Acri.
- Changed the default program theme to dark mode for new users.
- Changed the text of "Multi-adapter Compatibility" in game capture to "SLI/Crossfire Capture Mode (Slow)". This was changed because the wording "Multi-adapter Compatibility" was a bit vague, and users are not typically aware of the potential performance impact when using the option.
- Optimized the preview pane and reduced GPU usage by 2-8% depending on how many sources were in the preview.
- The streaming/recording buttons in the main window now highlight while streaming/recording.
- Fixed a bug on Windows where desktop audio capture could go slightly out of sync with display/game/window capture on certain audio devices
- Fixed an issue where certain Elgato devices would not output audio by default, and would require users to select the audio device manually.
- Fixed a bug with studio mode where scenes that are set to fully duplicate would not retain their filters.
- Fixed a stuttering bug on Linux with audio monitoring
- Fixed MP3 audio support in the browser source on macOS
- Fixed a few Dark/Rachni theme issues
- Fixed a lot of minor bugs and a few minor memory leaks
- Fixed a known crash that could happen on startup for certain AMD cards/drivers.
333
Upvotes
17
u/dodgepong Jan 23 '18
I've seen some people asking about how the panels were moved in this image. Support for movable and dockable panels was added in v20 under View -> Docs -> uncheck Lock UI.
With movable docks, you can move around UI elements, stack them and tab them, and even pop them out of the window to make them separate.
Demonstration:
11
u/JohnnyFromOmaha twitch.tv/johnnyomaha Jan 23 '18
Downloading now! Love OBS!
2
u/stastro twitch.tv/stastrosmash Jan 23 '18
Some nice updates! Got excited for per-scene transitions, thinking I could do a different stinger transition for different scenes but unfortunately nope :( Next time?
Acri theme has terrible UHD scaling on a 27" 4K display. Text is microscopic.
2
u/regstuff Jan 23 '18
Thanks for all the stuff! This might be a stupid question but how do I use some of the example scripts, like the analog clock source? And is there a Mac version update coming? I only saw Windows and Linux updated.
2
u/suspiciouspixel Jan 23 '18
Fantastic update by the OBS Project Team. Is there a small gif or tutorial for the countdown clock? If it is like Snaz then that is one less program to use.
24
u/lordrefa Partner https://www.twitch.tv/alebrelle Jan 23 '18
This is phenomenal, and while I can't write scripts yet, I was just about to learn and use third party stuff to do some blingy stuff with my stream. Now it is natively supported so I don't even have to do part of that. In love.
18
u/TacticalBacon00 twitch.tv/TacticalBacon00 Jan 23 '18
Well, looks like I ramped up on my Python skills just in time! This is a major update and I'm really excited to dig into the new scripting, APIs, and audio features!
14
u/[deleted] Jan 23 '18
yay!
22
u/arkofcovenant twitch.tv/arkofcovenant Jan 23 '18 edited Jan 23 '18
Holy shit. Am I the only one that thinks the scripting is gonna end up being huge?
5
u/TheAccel twitch.tv/the_accel Jan 23 '18
I can't overstate how freaking huge this is. Vertical studio mode was my only wish, but other preview options, scripting and new audio features are very welcome. Freaking amazing.
4
u/Baarek Jan 23 '18
So many QOL changes, i love it! Well written with pictures and stuff, thank's a lot OP
1
u/DuoRame http://www.twitch.tv/SmartASCII Jan 23 '18
What an amazing set of changes for this release. Thanks for all of your hard work!
This is one of my favorite changes! Any possibility of splitting this into separate selections for "transitioning from" and "transitioning to"?
3
u/crowcawer www.twitch.tv/crowcawer Jan 23 '18
I'm more excited for this than I should be
3
u/ThePolishDane Jan 23 '18
This is an amazing update holy shit! 😍
3
u/JageTV twitch.tv/JageTV Jan 23 '18
Ducking? Yessssssssssssssssssssssss
2
u/lbux_ twitter.com/lbux_ - I can probably help Jan 23 '18
Good shit, I'll probably mess around with some scripts.
2
u/evildrganymede https://www.twitch.tv/evildrganymede Jan 23 '18
Anyone have any suggestions for what levels the audio ducking should be set to? I think I've got it set up right on mine. I've got the Compressor set up on the desktop audio (listing for the Mic/Aux where I speak) and it seems as if putting the Threshold down from the default to -50db or -45db actually makes it reduce the volume on the game audio whenever I speak. But what about the other things like "Ratio" and "Output Gain"? Should those be tweaked at all? What are they for?
2
u/DeadlyMidnight twitch.tv/deadlymidnight Jan 23 '18
Thanks so much to the OBS devs for this update. It really brought in a lot of the final little tweaks that I felt were missing from OBS. I think the ecosystem will embrace OBS as the professional tool. Other versions such as SLOBS fit a certain market for people who just want the basics and easy mode.
OBS - Making Streaming Great (again?)
2
u/TheEverThingy http://www.twitch.tv/EverThingy Jan 23 '18
The new audio meter looks awesome! It will definitely make balancing stream audio easier.
2
u/oneanddoneforfun Jan 23 '18
I find I can't have side-by-side UI panels in the row with the vertical preview windows... I can stack them vertically, but I'd like (for instance) to have my scenes and sources next to each other, but the panels will only stack vertically or stack into tabs. Am I doing something wrong?
2
u/[deleted] Jan 23 '18
Damn, they just made Boom kinda OBSolete
2
u/[deleted] Jan 23 '18
I have no idea what to think of this. Who even knows what you can do with scripts lmao I'm stuck trying to get the example instant-replay script to work and I have no clue how to make this work
1
u/Vile35 Affiliate Jan 23 '18
is there a way to have a replay buffer reset itself after saving now?
1
u/beagrie07 twitch.tv/BeagPlays | @BeagPlays Jan 23 '18
Fantastic news!
1
u/[deleted] Jan 23 '18
Ooohhhhh, ducking. Fantastic. The little bit I understood of the other stuff is good too :p
1
u/[deleted] Jan 23 '18
Cool! And then I used donationalerts, and were constantly problematic that there is no sound of Donate.
1
u/SpaceGameJunkie Jan 23 '18
Thank you so much for this massive update!
1
u/[deleted] Jan 24 '18
Fucking sweet. Here, take my donation!
1
u/jakuu twitch.tv/jaku (Warp World Creator) Jan 24 '18
Updated and now I can't change profiles without it crashing. :|
1
u/dduusstt Jan 23 '18 edited Jan 23 '18
Going to give this a go this week. I had just moved over to SLOBS because I was actually having better performance with it, however I was frustrated because in long sessions the program itself would become a bit slow and things would be delayed when you clicked on it, and at around the 9-10 hr mark it would crash and take the game with it.
Also though it was missing a lot of little things OBS did right, like being able to select multiple sources at once. SLOBS solution on their discord was to make stuff you might move around like that as a scene as it's own and import it. Really? You can't do multi-select functionality? Though it's still in beta and I understand the limitations of that. And the lack of studio mode was painful to not have. ButI did like not having to use the streamlabels app anymore and have the built in dashboard functionality. If they ever included chatbot (formerly ankhbot) into SLOBS I think that would sell it for me for good.
Excited to see what all might be able to be done in OBS in this update. I was starting to think they might have gotten pretty comfortable with where it was at and no big changes were going to happen, curious if any competition between SLOBS and OBS is going to get some big future changes across the board and advance streaming functionality even further.
1
u/SmirkinLIVE https://www.twitch.tv/smirkinlive Jan 23 '18
I have been extremely interested in coding stuff since starting out. Originally wanted to learn css/html for custom alerts but haven’t found a good way to learn just yet. Python seems to be the major player in a lot of things now, does anyone have a good resource to learn from scratch? With literally no coding knowledge? This is something I’d love to accomplish this year.
0
u/[deleted] Jan 24 '18
tried installing this version on mac
my whole obs is black. there are no buttons. i cant even exit minimize or maximize
went to the chat and a guy being a dick muted me for pasting a log file into pm for him to read
really frustrated with all of obs right now
0
u/[deleted] Jan 23 '18
[deleted] — view deleted comment
0
u/[deleted] Jan 23 '18
[deleted] — view deleted comment