python

  1. N

    How to Resize Output (Source size) from python after hook

    Making some automations for game testing and I want to do what the Resize Output menu item does from python. Specifically I have a hook callback which allows me to get the resolution of the game's window (I test in windowed mode usually). I've figured out that Resize changes at least 2...
  2. Markwasfy

    How do you create a transition programmatically?

    as the title says how can I create a transition with Python or C, I searched in WebSockets too but had no hope
  3. blackeye

    OBS Python Reset and overwrite source setting values 1

    This OBS-Script can reset and overwrite values of a source. This can be done via a json file which contains the values for the update. But I can edit the values in the source setting and save them? Why Do I need a script for that? Thats right, but sometimes there are cases, where you need to...
  4. Send

    Excel2OBS v1.0

    https://github.com/loseisbest/Excel2OBS excel2OBS是一款非常方便的软件,可以使obs读取Excel数据,其中包括文本和图片。
  5. satalight

    OBS Python Shitrate!! - Decreases the bitrate of a recording / stream as audio increases. v1.0.0

    A Python 3.6 script that reduces the bitrate of the stream / recording as audio increases. Includes two versions of the script, one that looks for specific jumps in volume and another that proportionally relates high volume amounts with bitrate count. Full Description and Instructions...
  6. S

    checking obs si via code

    Hello friends, I am making a stream deck for myself, but I don't understand how to control obs si, I want to make all of the scene transitions on and off through the code, I want to make code that turns the recording on and off through the code, but I don't know how to do it, I want to write...
  7. oxypatic

    OBS Python OBS Recording Organizer Upgraded 1.0

    Originally created by francdv23. What has changed? I freshened it up and made it working again. Additionally I added a feature that lets you choose if you prefer the "game title + recording name" file name or without any changes. Will there be any updates? In the future I will be improving it...
  8. Andrewwz

    python script doesn't work?

    I installed python3.9 built by the framework on macOS and successfully loaded the path in the OBS script. But the python file didn't work
  9. M

    Python Script to connect to OBS Websocket Server Help

    Goal of the script: Send command to OBS to make it do something, like switch scenes, change Sources, play a gif, etc. I've tried using Postman to get an example, and while I can connect, I get errors about the websocket version from the client being out of date when I try and SEND something to...
  10. D

    help with obs python script (play video source at certain timestamp)

    have a python script for OBS that makes a scene and loads a video and tries to play it. The script looks something like this: import obspython as obs import math, time, os, random hotkey_id = obs.OBS_INVALID_HOTKEY_ID is_active = 0 def script_description(): return """Random Script""" def...
  11. bradleyp

    Python - Modifying Window Capture Settings

    I'm trying to write a script to automatically update the Window Capture window when a user changes the current foreground window in Windows. This would eliminate the need to constantly change the currently selected window for recording or for replay buffer. I'm able to use obs_data_set_string...
  12. J

    Python Script wont start properly on obs

    Hi, I've created a small Python program (OBS_Python.py), and you can find the attached files. The program is designed to move mp4 files from the C drive to another drive when a game is opened + to specific folder named after the game. However, I'm facing an issue: it only prints the message...
  13. adaendra

    Error "Attempted to insert context with duplicate name"

    Hi, I have a script which automatically change scene in Python, but when I change the scene collection and come back to the one with my script, I have the following error : Here is my script Do you have any idea about what can generate this ? or a way to clear the context please? Thanks...
  14. ysmd_

    OBS crashing/long opens because of the code based on python.

    I have a code on python (3.11) from pynput.keyboard import Key, Listener import pydub from pydub import AudioSegment from pydub.playback import play is_microphone_muted = False def sound_disconnect(): songd = AudioSegment.from_mp3("mute.mp3") play(songd) def sound_connect()...
  15. W

    Obs, Python and web socket : impossible agreement ?

    Hello everyone :), I have a very important little question about the web socket in Python. We want to ensure that certain text sources in our scene are updated using the web socket in Python. However, we have been trying for several weeks without any convincing results :/. I would like to...
  16. ShadowOkami

    OBS Python StreamNotifier 3.0

    Version 3.0 I'm thrilled to announce the latest release of StreamNotifier - version 3.0! Formerly known as OBScord, StreamNotifier is your go-to solution for seamless integration between OBS and Discord, allowing you to effortlessly notify your community when you go live. What's New Dynamic...
  17. F

    Volleyball AI PTZ tracker

    Hello, I'm engaged with a youth volleyball club in Italy and I use OBS to stream their matches on youtube. I use my iPhones to stream a rtmp flow to a cloud server, mix flows on OBS and then restream to Youtube channel. But my live stream are static because I cannot manage pan, tilt and zoom...
  18. A

    Using OBS Websocket with Psychopy (python)

    Hi there, I'm trying to set up code components in my psychopy script that connects to OBS websocket and starts and stops recording for different routines.I've successfully ran this python code in VS code but I'm running into errors when I try and incorporate it into python. Here is my code in...
  19. ramoses

    UNICODE for Python Install Path

    I've noticed that OBS won't recognize the path where Python is installed if it has any non-ASCII characters. I've spent almost 2 hours trying to figure out why OBS wouldn't recognize Python, then another 2 hours trying to set my embedded Python with variables and pip. That is totally not user...
  20. hieunekodesu

    I cant using obs browser source with localhost flask website

    this is my code from selenium import webdriver from selenium.webdriver.common.by import By from flask import Flask, jsonify, render_template, request import time url = "https://lichess.org/oW6O03Np/black" driver = webdriver.Chrome() driver.get(url) stages = driver.find_element(By.XPATH...
Top