python

  1. I

    How to add Media Source Local File with PYTHON

    I have a path such as 'D:\Cycling - My Mountain Route.mp4' how can I assign this path to OBS Media Source with websockets using PYTHON code ? I tried this : sourceName = 'Media Source' Local_file = 'D:\Cycling - My Mountain Route.mp4'...
  2. R

    Python, Hiding Rust Map

    Hi folks, I've been working on this for the better part of a week but simply cannot find an elegant solution. Ideally, AutoHotKey would solve my problems, or there's a "fancy" Python script available on the internets that would also suit my needs. But I'm a Mac guy, and AutoHotKey is not...
  3. 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...
  4. 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
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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!
  12. 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?
  13. 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
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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!
  19. 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...
  20. 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...
Top