python

  1. LeonidMurashov

    Python plugin: getting recording file path?

    I can't find any information about how to get final ".mp4" file path. I know that it should look like that "D:/videos/%CCYY-%MM-%DD %hh-%mm-%ss.mp4" for me. But is there any opportunity to get this info from code? I found something similar for replay buffers. It calls "get_last_replay" from...
  2. S

    Free Now playing via Last.fm (NPviaLFM) 0.1 (Beta)

    Hey. This is my first little console Python application that simply receives the track information that is currently playing on your last.fm profile, and writes the title, album and artist of the track to the text file. I haven't found alternative for it, so did it for you ♥♥♥ There is little...
  3. 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...
  4. 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...
  5. 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: --------------...
  6. 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...
  7. 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...
  8. 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...
  9. 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 >...
  10. 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.
  11. 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...
  12. 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.
  13. 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...
  14. 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...
  15. 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...
  16. 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