Video output currently active

Harold

Active Member
Likely the vertical canvas output

Other outputs include:
Streaming
Recording
Replay Buffer
Virtual Camera
NDI
Teleport
 

Suslik V

Active Member
You may try this .lua script (save it as obs-get-output-status.lua or give it similar name to be able to use it with OBS main menu Tools>Scripts). I'm using "notepad++" application to write these kind of scripts but you may use any simple text editor you wish:
Lua:
local obs = obslua

local ffi = require("ffi")

ffi.cdef[[
struct obs_output;
typedef struct obs_output obs_output_t;

void obs_enum_outputs(bool (*enum_proc)(void *, obs_output_t *), void *param);

const char *obs_output_get_id(const obs_output_t *output);

bool obs_output_active(const obs_output_t *output);

const char *obs_output_get_name(const obs_output_t *output);

uint32_t obs_output_get_flags(const obs_output_t *output);
]]

local obsffi
if ffi.os == "OSX" then
    obsffi = ffi.load("obs.0.dylib")
else
    obsffi = ffi.load("obs")
end

-- Callback function. When it returns True then enumeration continues
local count_outputs = function(param, output)
    local id_raw = obsffi.obs_output_get_id(output)
    local status_raw = obsffi.obs_output_active(output)
    local id_s = "none"
    local status_s = "inactive"
    local name_s = "unknown"
    local flags_s = "0"
    if id_raw ~= nil then
        id_s = ffi.string(id_raw)
        if status_raw then
            status_s = "ACTIVE"
        end
        local name_raw = obsffi.obs_output_get_name(output)
        if name_raw ~= nil then
            name_s = ffi.string(name_raw)
        end
        local flags_raw = obsffi.obs_output_get_flags(output)
        if flags_raw ~= nil then
            flags_s = tostring(flags_raw)
        end
    end
    print("[" .. status_s .. "] " .. name_s .. " (id: " .. id_s .. ", flags: " .. flags_s .. ")")
    return true
end

function log_all_outputs()
    print("Enumerating outputs...")
    local i = ffi.new("int[1]", 0)
    obsffi.obs_enum_outputs(count_outputs, i)
    print("...complete!")
end

function log_output_status_button_clicked(props, p)
    log_all_outputs()
    return false
end

----------------------------------------------------------

-- A function named script_properties defines the properties that the user
-- can change for the entire script module itself
function script_properties()
    local props = obs.obs_properties_create()
    obs.obs_properties_add_button(props, "log_output_button", "Log Output Status Now", log_output_status_button_clicked)
    return props
end

function script_description()
    return "Logs all outputs on button press"
end

Add the script to the list of running scripts via the main menu Tools > Scripts (there is Add, Remove etc buttons). After you have added recently created script-file to the list of scripts, on the right half of the Scripts window will appear new button named "Log Output Status Now".
When the "Log Output Status Now" button is pressed (in the Scripts window) the script will try to enumerate all obs outputs and then writes brief info to the log-file, like this (log-file of OBS can be found in main menu Help):
Code:
Example!!!
[obs-get-output-status.lua] Enumerating outputs...
[obs-get-output-status.lua] [ACTIVE] Source Record (id: ffmpeg_muxer, flags: 55)
[obs-get-output-status.lua] [inactive] adv_file_output (id: ffmpeg_muxer, flags: 55)
[obs-get-output-status.lua] [inactive] Replay Buffer (id: replay_buffer, flags: 55)
[obs-get-output-status.lua] ...complete!
Here the word [ACTIVE] means that the output is still active and this is not a UI bug... output is still running.
 
Last edited:

Bobsterz

New Member
After installing to:
C:\Program Files\obs-studio\data\obs-plugins\frontend-tools\scripts
I get an ERROR MESSAGE: "D:/OneDrive/!BOB/PROGRAM_DATA/OBS/Log-OUTPUTS..."]:2: '<name>' expected near 'local'
Any tips for a noobie?
 

Bobsterz

New Member
I see I didn't paste the entire message. It's:

[Log-OUTPUTS.lua] Error loading file: [string "D:/OneDrive/!BOB/PROGRAM_DATA/OBS/Log-OUTPUTS..."]:2: '<name>' expected near 'local'

Even after re-booting, it's comes up.
 

Bobsterz

New Member
Maybe my log would help?
19:56:40.974: CPU Name: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
19:56:40.974: CPU Speed: 3592MHz
19:56:40.974: Physical Cores: 4, Logical Cores: 8
19:56:40.974: Physical Memory: 12205MB Total, 1245MB Free
19:56:40.974: Windows Version: 10.0 Build 19045 (release: 22H2; revision: 5011; 64-bit)
19:56:40.974: Running as administrator: false
19:56:40.974: Windows 10/11 Gaming Features:
19:56:40.974: Game Bar: On
19:56:40.974: Game DVR: On
19:56:40.974: Game DVR Background Recording: Off
19:56:40.974: Game Mode: Probably On (no reg key set)
19:56:40.976: Sec. Software Status:
19:56:40.977: Microsoft Defender Antivirus: enabled (AV)
19:56:40.977: Windows Firewall: enabled (FW)
19:56:40.978: Current Date/Time: 2024-10-18, 19:56:40
19:56:40.978: Browser Hardware Acceleration: true
19:56:40.978: Hide OBS windows from screen capture: false
19:56:40.978: Qt Version: 6.6.3 (runtime), 6.6.3 (compiled)
19:56:40.978: Portable mode: false
19:56:41.683: OBS 30.2.3 (64-bit, windows)
19:56:41.683: ---------------------------------
19:56:41.730: ---------------------------------
19:56:41.730: audio settings reset:
19:56:41.730: samples per sec: 44100
19:56:41.730: speakers: 1
19:56:41.730: max buffering: 1044 milliseconds
19:56:41.730: buffering type: dynamically increasing
19:56:41.732: ---------------------------------
19:56:41.732: Initializing D3D11...
19:56:41.732: Available Video Adapters:
19:56:41.734: Adapter 0: Intel(R) HD Graphics 4600
19:56:41.734: Dedicated VRAM: 117964800 (0.1 GiB)
19:56:41.734: Shared VRAM: 2147483648 (2.0 GiB)
19:56:41.734: PCI ID: 8086:0412
19:56:41.734: HAGS Status: Disabled (Default: No, Driver status: Unsupported)
19:56:41.735: Driver Version: 20.19.15.4549
19:56:41.735: output 0:
19:56:41.735: name=
19:56:41.735: pos={0, 0}
19:56:41.735: size={1920, 1080}
19:56:41.735: attached=true
19:56:41.735: refresh=60
19:56:41.735: bits_per_color=8
19:56:41.735: space=RGB_FULL_G22_NONE_P709
19:56:41.735: primaries=[r=(0.639648, 0.330078), g=(0.299805, 0.599609), b=(0.150391, 0.059570), wp=(0.312500, 0.329102)]
19:56:41.735: relative_gamut_area=[709=0.998664, P3=0.736186, 2020=0.528164]
19:56:41.735: sdr_white_nits=80
19:56:41.735: nit_range=[min=0.500000, max=270.000000, max_full_frame=270.000000]
19:56:41.735: dpi=96 (100%)
19:56:41.735: id=\\?\DISPLAY#RTK1D1A#4&ee3f624&0&UID200195#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
19:56:41.735: alt_id=\\.\DISPLAY1
19:56:41.736: Loading up D3D11 on adapter Intel(R) HD Graphics 4600 (0)
19:56:41.743: D3D11 loaded successfully, feature level used: b000
19:56:41.743: DXGI increase maximum frame latency success
19:56:41.921: ---------------------------------
19:56:41.921: video settings reset:
19:56:41.921: base resolution: 1000x563
19:56:41.921: output resolution: 1000x562
19:56:41.921: downscale filter: Bicubic
19:56:41.921: fps: 30/1
19:56:41.921: format: NV12
19:56:41.921: YUV mode: Rec. 709/Partial
19:56:41.921: NV12 texture support enabled
19:56:41.921: P010 texture support not available
19:56:41.922: Audio monitoring device:
19:56:41.922: name: Default
19:56:41.922: id: default
19:56:41.922: ---------------------------------
19:56:41.927: No AJA devices found, skipping loading AJA UI plugin
19:56:41.927: Failed to initialize module 'aja-output-ui.dll'
19:56:41.931: No AJA devices found, skipping loading AJA plugin
19:56:41.931: Failed to initialize module 'aja.dll'
19:56:41.931: Skipping module '../../obs-plugins/64bit/chrome_elf.dll', not an OBS plugin
19:56:41.934: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
19:56:41.936: Failed to load 'en-US' text for module: 'decklink-captions.dll'
19:56:41.938: Failed to load 'en-US' text for module: 'decklink-output-ui.dll'
19:56:41.941: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
19:56:41.941: Failed to initialize module 'decklink.dll'
19:56:41.975: [AMF] Unable to load 'amfrt64.dll', error code 126.
19:56:41.977: [AMF] AMF Test failed due to one or more errors.
19:56:41.977: Failed to initialize module 'enc-amf.dll'
19:56:41.998: Skipping module '../../obs-plugins/64bit/libcef.dll', not an OBS plugin
19:56:41.998: Skipping module '../../obs-plugins/64bit/libEGL.dll', not an OBS plugin
19:56:42.000: Skipping module '../../obs-plugins/64bit/libGLESv2.dll', not an OBS plugin
19:56:42.021: [obs-browser]: Version 2.23.6
19:56:42.021: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures.2594+gc69ad37+chromium-103.0.5060.134 (compiled)
19:56:42.031: [noise suppress]: NVIDIA denoiser disabled, redistributable not found or could not be loaded.
19:56:42.032: Failed to get NVVideoEffects.dll version info size
19:56:42.033: [NVIDIA VIDEO FX]: FX disabled, redistributable not found or could not be loaded.
19:56:42.420: [obs-virtualcam] starting virtual-output on VirtualCam'1'
19:56:42.431: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.5.2 | RPC Version: 1)
19:56:42.431: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.6.3 | Qt version (run-time): 6.6.3
19:56:42.431: [obs-websocket] [obs_module_load] Linked ASIO Version: 103002
19:56:42.442: [obs-websocket] [obs_module_load] Module loaded.
19:56:42.455: [vlc-video]: VLC 3.0.20 Vetinari found, VLC video source enabled
19:56:42.536: ---------------------------------
19:56:42.536: Loaded Modules:
19:56:42.536: win-wasapi.dll
19:56:42.536: win-mf.dll
19:56:42.536: win-dshow.dll
19:56:42.536: win-capture.dll
19:56:42.536: vlc-video.dll
19:56:42.536: text-freetype2.dll
19:56:42.536: rtmp-services.dll
19:56:42.536: obs-x264.dll
19:56:42.536: obs-websocket.dll
19:56:42.536: obs-webrtc.dll
19:56:42.536: obs-vst.dll
19:56:42.536: obs-virtualcam.dll
19:56:42.536: obs-transitions.dll
19:56:42.536: obs-text.dll
19:56:42.536: obs-qsv11.dll
19:56:42.536: obs-outputs.dll
19:56:42.536: obs-filters.dll
19:56:42.536: obs-ffmpeg.dll
19:56:42.536: obs-browser.dll
19:56:42.536: image-source.dll
19:56:42.536: frontend-tools.dll
19:56:42.536: decklink-output-ui.dll
19:56:42.536: decklink-captions.dll
19:56:42.536: coreaudio-encoder.dll
19:56:42.536: ---------------------------------
19:56:42.536: ---------------------------------
19:56:42.536: Available Encoders:
19:56:42.536: Video Encoders:
19:56:42.536: - ffmpeg_svt_av1 (SVT-AV1)
19:56:42.536: - ffmpeg_aom_av1 (AOM AV1)
19:56:42.536: - obs_qsv11_v2 (QuickSync H.264)
19:56:42.536: - obs_x264 (x264)
19:56:42.536: Audio Encoders:
19:56:42.536: - ffmpeg_aac (FFmpeg AAC)
19:56:42.536: - ffmpeg_opus (FFmpeg Opus)
19:56:42.536: - ffmpeg_pcm_s16le (FFmpeg PCM (16-bit))
19:56:42.536: - ffmpeg_pcm_s24le (FFmpeg PCM (24-bit))
19:56:42.536: - ffmpeg_pcm_f32le (FFmpeg PCM (32-bit float))
19:56:42.536: - ffmpeg_alac (FFmpeg ALAC (24-bit))
19:56:42.536: - ffmpeg_flac (FFmpeg FLAC (16-bit))
19:56:42.536: ==== Startup complete ===============================================
19:56:42.613: All scene data cleared
19:56:42.613: ------------------------------------------------
19:56:42.668: [Lua: Log-OUTPUTS.lua] Error loading file: [string "D:/OneDrive/!BOB/PROGRAM_DATA/OBS/Log-OUTPUTS..."]:2: '<name>' expected near 'local'
19:56:42.669: [win-wasapi: 'Desktop Audio'] update settings:
19:56:42.669: device id: default
19:56:42.669: use device timing: 1
19:56:42.669: [Loaded global audio device]: 'Desktop Audio'
19:56:42.670: [win-wasapi: 'Desktop Audio 2'] update settings:
19:56:42.670: device id: default
19:56:42.670: use device timing: 1
19:56:42.670: [Loaded global audio device]: 'Desktop Audio 2'
19:56:42.670: [win-wasapi: 'Mic/Aux (2)'] update settings:
19:56:42.670: device id: {0.0.1.00000000}.{27ee928a-3944-41df-b541-750a77fc6b3c}
19:56:42.670: use device timing: 0
19:56:42.670: [Loaded global audio device]: 'Mic/Aux (2)'
19:56:42.671: [win-wasapi: 'Mic/Aux'] update settings:
19:56:42.671: device id: {0.0.1.00000000}.{27ee928a-3944-41df-b541-750a77fc6b3c}
19:56:42.671: use device timing: 0
19:56:42.671: [noise suppress: 'Noise Suppression'] NVAFX redist is not installed.
19:56:42.680: [duplicator-monitor-capture: 'Display Capture'] update settings:
19:56:42.680: display: (0x0)
19:56:42.680: cursor: true
19:56:42.680: method: WGC
19:56:42.680: id:
19:56:42.680: alt_id:
19:56:42.680: setting_id: DUMMY
19:56:42.680: force SDR: false
19:56:42.686: warning: deprecated pixel format used, make sure you did set range correctly
19:56:42.698: [window-capture: 'Win: Client Planning'] update settings:
19:56:42.698: executable: WINWORD.EXE
19:56:42.698: method selected: Automatic
19:56:42.698: method chosen: WGC
19:56:42.698: force SDR: false
19:56:42.705: [noise suppress: 'Noise Suppression'] NVAFX redist is not installed.
19:56:42.711: Switched to scene 'SCREEN + VID ME'
19:56:42.711: ------------------------------------------------
19:56:42.711: Loaded scenes:
19:56:42.711: - scene 'Cam + Green Scr':
19:56:42.711: - source: 'Color Source 2' (color_source_v3)
19:56:42.711: - source: 'video_image-1CTN5yg07.jpeg' (image_source)
19:56:42.711: - source: 'Video Capture Device 2' (dshow_input)
19:56:42.711: - filter: 'Chroma Key' (chroma_key_filter_v2)
19:56:42.711: - filter: 'Color Correction' (color_filter_v2)
19:56:42.711: - filter: 'Color Key' (color_key_filter_v2)
19:56:42.711: - filter: 'Noise Gate' (noise_gate_filter)
19:56:42.711: - filter: 'Noise Suppression' (noise_suppress_filter_v2)
19:56:42.711: - show: 'Video Capture Device 2 Show Transition' (fade_transition)
19:56:42.711: - source: 'Desktop Audio' (wasapi_output_capture)
19:56:42.711: - scene 'Cam + Green Scr DAY COOL CLOUDS':
19:56:42.711: - source: 'Color Source 2' (color_source_v3)
19:56:42.711: - source: 'video_image-1CTN5yg07.jpeg' (image_source)
19:56:42.711: - source: 'Video Capture Device 2' (dshow_input)
19:56:42.711: - filter: 'Chroma Key' (chroma_key_filter_v2)
19:56:42.711: - filter: 'Color Correction' (color_filter_v2)
19:56:42.711: - filter: 'Color Key' (color_key_filter_v2)
19:56:42.711: - filter: 'Noise Gate' (noise_gate_filter)
19:56:42.711: - filter: 'Noise Suppression' (noise_suppress_filter_v2)
19:56:42.711: - show: 'Video Capture Device 2 Show Transition' (fade_transition)
19:56:42.711: - scene 'WIN: Client Planning Screenshare':
19:56:42.711: - source: 'Color Source' (color_source_v3)
19:56:42.711: - source: 'Win: Client Planning' (window_capture)
19:56:42.711: - show: 'Win: Client Planning Show Transition' (fade_transition)
19:56:42.711: - source: 'Video Capture Device' (dshow_input)
19:56:42.711: - filter: 'Chroma Key' (chroma_key_filter_v2)
19:56:42.711: - scene 'SCREEN':
19:56:42.711: - source: 'Display Capture' (monitor_capture)
19:56:42.711: - source: 'Mic/Aux' (wasapi_input_capture)
19:56:42.711: - filter: 'Noise Suppression' (noise_suppress_filter_v2)
19:56:42.711: - filter: '3-Band Equalizer' (basic_eq_filter)
19:56:42.711: - filter: 'Expander' (expander_filter)
19:56:42.711: - filter: 'Compressor' (compressor_filter)
19:56:42.711: - filter: 'Limiter' (limiter_filter)
19:56:42.711: - scene 'PLAIN CAM VIEW':
19:56:42.711: - source: 'RAZER CAM PLAIN' (dshow_input)
19:56:42.711: - scene 'SCREEN + VID ME':
19:56:42.711: - source: 'Display Capture' (monitor_capture)
19:56:42.711: - source: 'DROID' (dshow_input)
19:56:42.711: - filter: 'CHROMA' (chroma_key_filter_v2)
19:56:42.711: - source: 'Mic/Aux' (wasapi_input_capture)
19:56:42.711: - filter: 'Noise Suppression' (noise_suppress_filter_v2)
19:56:42.711: - filter: '3-Band Equalizer' (basic_eq_filter)
19:56:42.711: - filter: 'Expander' (expander_filter)
19:56:42.711: - filter: 'Compressor' (compressor_filter)
19:56:42.711: - filter: 'Limiter' (limiter_filter)
19:56:42.711: ------------------------------------------------
19:56:42.731: WASAPI: Device 'Headphones (2- MEE audio Pebbles Stereo)' [44100 Hz] initialized (source: Desktop Audio)
19:56:42.798: WASAPI: Device 'Mic/Inst/Line In 1/2 (Studio 24c)' [48000 Hz] initialized (source: Mic/Aux (2))
19:56:42.798: WASAPI: Device 'Mic/Inst/Line In 1/2 (Studio 24c)' [48000 Hz] initialized (source: Mic/Aux)
19:56:42.800: WASAPI: Device 'Headphones (2- MEE audio Pebbles Stereo)' [44100 Hz] initialized (source: Desktop Audio 2)
19:56:42.845: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Mic/Aux)
19:56:42.845:
 

Suslik V

Active Member
I get an ERROR MESSAGE: "D:/OneDrive/!BOB/PROGRAM_DATA/OBS/Log-OUTPUTS..."]:2: '<name>' expected near 'local'
@Bobsterz you copied 1 excessive string that is not part of the script itself, the first string "Lua:" - remove it from the script's text and save the changes.
This "Lua:" string is just text description (part of the forum's text engine) that helps to understand what kind of the code block was posted below (it can be c++, python etc), here are few examples:
C++:
uint32_t a=1;
Python:
global b
Bash:
c=1

The script "obs-get-output-status.lua" starts from the string local obs = obslua , that's it.
 
Last edited:
Top