python

  1. G

    There is a way to create a python script that positions sources on the screen?

    Hi, I'm Germano Carella, from Italy. I'm a visually empaired person that uses OBS studio to create videos. So, I have a problem by positioning sources on the screen with screen reader and keyboard. I set 2 video sources on the scene. Second video source covers the first on screen, and to...
  2. F

    script:python script “signal_handler_disconnect” does not work correctly

    Hey buddy, I am currently writing a python script for obs studio. One of the functions is to get the name of the currently scene when OBS Studio switches the scene. By referring to the documentation and some examples of python scripts, I can usel the following code to implement my...
  3. Korwin

    Python script and vec2 struct

    Hello, I'm tring to write python script that would move one of the sources somehow. For this I'm tring to utilize obs.obs_sceneitem_set_pos The problem is that it require "const struct vec2 *pos " as a second parameter. I tried to pass tuples, arrays, classes and always get: --------------...
  4. D

    Question / Help How to immediately delete last recording and where is the pause feature and shortcuts?

    Hi, I need help for basic features that I miss in OBS I am doing a lot of takes (recordings of the same scene) for some review videos and often I do mistakes and want to immediately delete the last take and re-record a new one. It is very time consuming to always open up the recording folder...
  5. SpyderHunter03

    Question / Help OBS 23 Python Crash

    I am not able to get python run appropriately for scripting. Every time I set the python directory I get OBS to crash. https://obsproject.com/logs/NKnqjEMVID7mPNg2 I have OBS installed on a drive different than C: (It is installed on G: drive), but I installed Python on both the C: drive AND...
  6. Z

    Question / Help Stream video from OpenCV into OBS

    Hi, Can anyone help me with streaming video from OpenCV (using Python or C) into OBS? I've had a look at the docs but I they're rather bewildering to a new OBS user, and I can't find any similar examples. I think I need to use obs_source_draw() using the frame data I have but I'm not sure how...
  7. M

    Bug Report "Fatal Python error" crash on startup

    This happens every time I run OBS, regardless of whether I clean install it (deleting both obs-studio folders first) or run it from Safe Mode. I'm 95% sure the crash has to do with the following error message, which prints in a terminal window when you run the "obs" executable from Contents >...
  8. A

    Bug Report Python scripting don't work on OBS 22.0.3

    Is python scripts currently supported in the latest version of OBS (22.0.3) on macOS? I'm trying to load a script, but unable to get any output in console. I've tried setting python path to /usr/local/Cellar/python/3.6.5 but nothing have changed, still no output.
  9. M

    Bug Report OBS crashing on every startup (Fatal Python error)

    This is with a fresh install, too - after it happened, I deleted both the OBS app and the obs-studio folders from the Application Support folders (in username/Library/ and Macintosh HD/Library/) and reinstalled using the Mac installer currently on the website, but to no avail. Help would be much...
  10. N

    How to grab a frame and save it with OpenCV in a Python Script?

    What API calls should I use? also how can I save it with OpenCV. Thanks in advance.
  11. P

    Non-OBS Script Kill-Counter 1

    A little AutoHotkey + Python (3) script for displaying a kill counter (odometer style) in OBS, or possibly other applications. What it does: When you activate the hotkeys (Indicated in the .AHK file), it will either incriment, decriment, or reset (only the match kills) for the included data...
  12. E

    Question / Help Simulated Keypresses Do Not Activate Hotkey Actions

    Hey, I'm trying to use the Pynput library to simulate keypresses to activate a scene transition. When I use the key manually, it works correctly, but when I trigger the script, I will see the result of the simulated keypress, but the transition remains untriggered. A better understanding of the...
  13. D

    [Python] How do I use the various obs_enum_*() functions?

    I'm trying to write a scene switcher/controller script in Python that would integrate with my overlay control panel. Unfortunately, I'm stuck right out of the gate because I can't figure out the syntax for calling obs_enum_transition_types() or any of its function family, specifically passing...
  14. A

    OBS Python Automatic ffmpeg re-encoding (Good for learning Python API) 0.1

    Automatically convert your videos using ffmpeg when they're finished recording. Specify custom flags and renaming with regular expressions. Uses the ffmpeg version found in the system path. NOTE: objsproject.com does not allow updates to Python scripts (understandably so) but the version...
Top