python

  1. kazzle101

    Free midiObsWS - Control OBS with a MIDI device. 0.3

    A program to allow OBS to be controlled by a MIDI device via obs-Websockets. This has been written to provide basic functionality; scene switching, volume control and allow operation of the main controls such as recording, streaming and the virtual camera. Written in Python 3.9, use OBS v28 or...
  2. amias

    OBS Python OBS-Cycle 1.0

    An OBS Python script that allows a hotkey to trigger a step through the scenes at a configurable interval
  3. R

    OBS stops responding when setting scene within timer callback (Python Script)

    Hi all, I've been working on a python script which is a countdown timer pretty much like the Advanced Scene Switcher, but with customised funcionality for myself. The timer callback seems to work just fine, however when I try to set the scene from within the timer_callback function, the log...
  4. R

    OBS crashes when switching scene during a timer_add (Python scripting)

    Hi, I'm still quite new to scripting for OBS and I'm trying to make a timer for switching scenes for my own purposes in python, since it's the language I'm the most used to. Inside my callback function for the timer, I added the obs.obs_frontend_set_current_scene(scene) which is causing OBS to...
  5. R

    (Python) Memory management in scripts?

    I don't usually write programs or scripts which require memory management, so I have been looking at some scripts which has code like obs_data_get_array and later on they release the array using obs_data_array_release. When do I have to release references? When I am doing properties references...
  6. I

    [Help] Python script OBS help needed [Additional Replay Buffer]

    I'm trying to use this script to implement multiple replay buffer timers, so you can get the last 1, 5 or 10 minutes of your current gameplay depending on how you configure it. The script run good at the beginning when obs is being just launched, however after some 10 minutes or so, the script...
  7. D

    OBS Python Show / Hide Transition Timers for Multiple Scene Items / Sources v0.1

    Hey there! So, this is a python script that will allow the user to have multiple timers that will trigger the scene item's (or "source's" as it's called in OBS) show / hide transitions. This is a pretty alpha version, so bugs may be present. The repeat timer was extensively tested by me to...
  8. nhielost

    obs-midi-python [Deleted]

    nhielost submitted a new resource: obs-midi-python - Allows MIDI devices to control OBS through message bindings. Read more about this resource...
  9. X Kevin Tran

    Get frame by frame from OBS to CV2 Python socket server

    Link: stackoverflow.com/questions/72059889/obs-live-to-tcp-python-server Please help me to fix that code and share all your scripts. Thanks!
  10. M

    OBS is already running when using "multiprocessing" package in Python

    When opening another process in Python in one of my OBS scripts I always get an "OBS Studio is already running" message. Is there some way to silence these messages?
  11. rei2888

    How do i get the text string from an existed text source with python

    Hello, I want to write a python script, to get the text string from an existed GDI+ text source,and print this text string。 But i can't find a way or funtion to get the text string.Could somebody help me? Thanks Rei
  12. C

    Create video/webcam sources in a script

    Hello, This is my first post here so sorry if I am not perfectly clear. I try to create sources with a script, one for a webcam and a second for a rtsp video flux. It can be in Lua or in Python if possible but it seem if I don't make a mistake that it was not possible in Python. I have looked...
  13. O

    OBS Studio crashes with "timer_add"

    Hello everyone! I have a problem with running a script in the OBS Studio There is a "check_and_switch" function, and I want to call it every 3 seconds When I call it in this way "check_and_switch()" - everything works properly (but the function is called once) But when I write...
  14. J

    Accessing the bandwidth test checkbox

    Hello coders, I have written a short script to post a live notification to my discord webhook when I start streaming. What bothers me is that this even happens when I activate the "bandwidth test mode" under Settings -> Stream -> Platform Twitch and hit "Start Streaming". Is there a way to...
  15. felix_f

    Additional shortcut keys from script

    Hi, I would like to remap some keys from a second keyboard using python to use them as macro keys for other apps (mainly obs). I have the script mostly done, but I have a problem simulating a key press that is not used already, and that obs will actually like. As you can see below, I can either...
  16. H

    websocket ptz camera support

    Hello, I found that OBS Studio's websocket switching of cameras really easy to get working. Can I also control a PTZ camera as well using websockets? Thank you!
  17. Tobsa

    OBS Python Recording Notification 2.0

    How it works: When the 'Start recording' button is pressed a popup window appears on top of the screen showing you that OBS is recording, you can left-click and drag the window to position it. This script was made using Python and tkinter library. Installation: Download the...
  18. joealfonso98

    Auto generated CC and profanity censorship

    Hello everyone, I’m new here so bare with me. I’m currently working on a project, but I’m no programmer. Is it possible for someone to make an OBS plugin that uses a speech-to-text generator to censor profanity within OBS (using about a 10 second delay). I’m thinking this project might...
  19. Avn

    OBS Python Spotify Song Title v1.0

    Hey I've written a github repo, which will help out anyone that wants to display the currently playing songs name & artist in OBS! It's super easy to use; you won't need to try to set up any APIs
  20. M

    Oddball Request: Automating the Setup of a Stream Deck

    I am running a weekly live stream, the content of which changes from week to week. I have written Python scripts (on my Linux Laptop) to generate the scenes we need (on our Windows 10 streaming computer) using the Python scripting feature in OBS. It's a work in progress, but so far, so good...
Top