Commit Graph

14855 Commits

Author SHA1 Message Date
xlbljz f8d2bfef7d rtmp-services: Add HEVC to supported video codecs for Bilibili 2025-04-18 16:47:41 -04:00
Ryan Foster 48660e9e2d Merge pull request #11966 from PatTheMav/clang-format-update
CI: Update clang-format scripts and actions to version 19.1.1
2025-04-18 15:25:11 -04:00
PatTheMav 96e4d67242 clang-format: Update source code files with clang-format 19.1.1 2025-04-17 18:16:33 +02:00
PatTheMav b3ab792916 clang-format: Enable skipping of macro definitions for clang-format 19
Without this setting many multi-line macro definitions in the code-base
would have been reformatted. As many of those definitions are formatted
in a bespoke way to ensure legibility, changing their format would be
detrimental to that specific goal.
2025-04-17 18:16:33 +02:00
PatTheMav 6282384977 CI: Update clang-format version to 19.1.1 2025-04-17 18:16:33 +02:00
Ryan Foster cfb23a51ff build-aux: Use GitHub repo for LuaJIT
Curl reports that the luajit.org git repo is using a self-signed cert.
This is causing git operations to fail. Let's just use the GitHub
mirror.
2025-04-16 12:24:58 -04:00
Warchamp7 69ecfcd9f6 frontend: Reorganize Preview/Source context menu 2025-04-15 15:00:43 -07:00
Matt Gajownik 5b87ced7cd frontend: Increase MAX_CRASH_REPORT_SIZE to 200 KB
With CEF and NDI, logs can exceed 150KB, cutting off symbol addresses.
2025-04-15 12:33:42 -07:00
Ryan Foster 3dbb2f1cd5 Merge pull request #11747 from derrod/dual-sign-sigh
CI: Add ARM and Game Capture Dual-Signing
2025-04-15 11:56:14 -07:00
derrod 395da055da CI: Update signing action commit 2025-04-15 14:34:44 -04:00
derrod 65f417d65c CI: Support signed ARM builds 2025-04-15 14:31:30 -04:00
derrod 9fdb5cd0bc CI: Fix Windows signing workflow name 2025-04-15 14:31:30 -04:00
derrod 5b3a8dee4b CI: Sign game capture with RSA cert first 2025-04-15 14:31:30 -04:00
Sebastian Beckmann 33cec16f56 frontend/themes: Re-add transparent border
It appears that in conjunction with other changes that happened around
the time the removal of the transparent border got merged, it became
necessary again due to those other changes. Without it, only the
selected and focussed changes have a border, making the content jump
around when selected and focussed.

Reverts part of 5fa4ea44d0.
2025-04-09 16:09:26 -07:00
Sebastian Beckmann 902b3e6976 frontend: Re-set list spacing of source and scene tree to 0
This is needed due to QTBUG-106395. With spacing, drag-and-drop would
cause items to go to the bottom of the list if they are dropped in the
spacing.

Effectively reverts 5fa4ea44d0.
See also #7321 and 860b309db8.
2025-04-09 16:09:26 -07:00
Sebastian Beckmann 1388490dfa frontend: Remove additional spacing hack in SourceTreeItem
Effectively reverting 4e97b1bb30, this
removes a hack that added additional spacing as scrollbars would go over
content due to a Qt bug. This bug appears to be fixed, as the described
behavior is no longer observed. As such, the additional spacing is no
longer needed (and only looks out of place).
2025-04-08 12:44:13 -04:00
Neal Gompa 39a692d960 obs-ffmpeg: Add OpenH264 H.264 software codec
This allows users to leverage the OpenH264 codec from Cisco to encode
H.264 video content. It is significantly reduced in capability from
alternatives, but it does the job.

This also provides a framework for adding support for other H.264
software codecs provided through FFmpeg.
2025-04-03 12:43:20 -07:00
Warchamp7 547e4acdd3 frontend: Focus text entry in NameDialog 2025-04-03 14:29:59 -04:00
Warchamp7 c942731aaf frontend: Adjust styling for SourceTree 2025-04-03 14:18:46 -04:00
Warchamp7 a0248a319f frontend: Auto-select manually added file imports 2025-04-03 13:49:58 -04:00
Warchamp7 cd6bb523ae frontend: Adjust scene collection importer 2025-04-03 13:49:58 -04:00
Warchamp7 3906fece61 frontend: Unify appearance of menus 2025-04-02 15:29:06 -04:00
jcm bf7e82de80 mac-avcapture: Use list-based format selector 2025-04-02 15:03:52 -04:00
RedBlackAka 11a8814ed4 CI: Update bouf to v0.6.5 2025-04-02 14:36:13 -04:00
Tarulia 6931d80e16 deps/json11: Fix compile error on GCC 15+ 2025-04-02 14:04:02 -04:00
Ryan Foster 1431b4c810 CI: Clean up Flatpak cache detection
I discovered while investigating a separate caching issue that the read
command was not assigning ref correctly. This is inconsequential since
we do not use that value, but it led me to look up the documentation for
the GitHub CLI extension used here, gh-actions-cache.

The GitHub CLI extension gh-actions-cache is deprecated as of October
2024. The recommendation is to use the offical gh cache command. That
command produces slightly different output, so adjust the read command
accordingly.
2025-04-02 13:32:32 -04:00
Dennis Sädtler 3fc119190e docs: Add canvases documentation 2025-04-02 12:39:46 -04:00
Dennis Sädtler dac0be2cbe libobs: Use UUIDs in scene undo/redo data
Since scenes now can have non-unique names by being part of different
canvases, use UUIDs instead.
2025-04-02 12:39:46 -04:00
Dennis Sädtler ec9f4b0d20 libobs: Add Canvas object RAII wrappers 2025-04-02 12:39:46 -04:00
Dennis Sädtler 3d57b1fd63 libobs: Introduce Canvases
This adds a new obs_canvas object that acts as a shareable
(reference-counted) owner of views, mixes, and (optionally) scenes.

This is a step towards faciliatating multi-canvas and multi-output
features in OBS Studio.

It solves a number of complications that exist with the manual approach
of using views, such as audio mixing, source active-state tracking, and
scenes not havinga  reliable way of identifying the actual available
canvas size.
2025-04-02 12:39:46 -04:00
Dennis Sädtler 66da1e42c7 libobs: Add video_reset signal
Signals when a video reset has completed. This is mainly useful when
canvases or views are used, whose mixes will have been freed or
recreated during the reset.
2025-04-02 12:39:46 -04:00
Dennis Sädtler 4459041e7e libobs: Add view type to view object
Allos creating additional views that act like a MAIN_VIEW instead of AUX_VIEW.
2025-04-02 12:39:46 -04:00
Alex Luccisano 0910858ef8 frontend: Enable multitrack video controls on Linux 2025-04-01 23:18:15 -04:00
Alex Luccisano e1d2cf705d frontend: Support enhanced broadcasting on Linux
Enhanced broadcasting requires system information to be gathered
on the client and submitted to the GetClientConfiguration request
in order to obtain a valid response from the server. This commit
adds support for gathering the required information on Linux-based
systems.
2025-04-01 23:18:15 -04:00
Alex Luccisano b41522b4fd frontend: Convert "profile" to an integer for VAAPI encoders
VAAPI encoders deviate from other encoders (e.g. AMF, NVENC) with
the "profile" setting being an integer instead of a string. With
enhanced broadcasting, "profile" is signalled as a string. Convert
the string-based profile to the appropriate integer-based profile
for VAAPI encoders as a workaround, until VAAPI supports string-based
"profile" (if ever).
2025-04-01 23:18:15 -04:00
Alex Luccisano 7decef8ab0 obs-ffmpeg: Make VAAPI rc_mode comparison case insensitive
`get_rc_mode()` compares the incoming rate control mode string
to the .name member of rc_mode_t, and the table entries are
all upper-case. This caused a crash when the incoming string
is set to "cbr" instead of "CBR". Make the string comparison
case insensitive.
2025-04-01 23:18:15 -04:00
Alex Luccisano 935613816f libobs/util: Update os_get_free_size()
`os_get_free_size()` was simply returning 0. For Linux,
implement the free size calculation based on the `sysinfo()`
system call.
2025-04-01 23:18:15 -04:00
Alex Luccisano abb8cdf0da libobs, libobs-opengl: Add memory and identification APIs
Add graphics APIs to obtain the GPU driver version and renderer
strings, as well as GDDR memory sizes. The GDDR memory sizes
include the dmem (dedicated memory on the GPU) and smem
(shared CPU memory used by the GPU but resides in the CPU DDR).

The version and renderer strings are needed for identification
purposes, for example enhanced broadcasting used by Twitch, to
associate the GPU used by OBS with the PCIe-based identification
values such as device_id and vendor_id.
2025-04-01 23:18:15 -04:00
cg2121 86f7475f14 frontend: Add preview zoom controls 2025-04-01 17:31:09 -04:00
gxalpha 62ef7e0fee libobs: Deprecate obs_get_transition_by_[name|uuid]
obs_get_transition_by_name is very problematic because transitions are
always private and their names aren't unique. This means that the method
iterates over all private sources and then takes the first that both is
a transition and matches the name we're looking for. However, this could
be from anywhere - it could be a frontend transition, but also a source
transition, quick transition, or even one from third-party plugins. This
is always never what is intended.

As such, this method (which should never have been added in the first
place) needs to go. In its place, obs_frontend_get_transitions returns a
list of all frontend transitions (which is usually what people are
looking for), and alternatively obs_get_source_by_uuid also provides
access to private sources.

While we're at it, obs_get_transition_by_uuid is basically a wrapper for
obs_get_source_by_uuid and not really necessary. UUID's are unique and
a source doesn't suddenly change its type, so if you have a transition's
UUID you can be pretty sure that when you do obs_get_source_by_uuid, it
will still be a transition.
2025-04-01 17:07:24 -04:00
cg2121 5fa4ea44d0 frontend: Make list spacing consistent
This makes all list widget spacing set to 1.
2025-04-01 16:39:53 -04:00
PancakeTAS 4dfd0b31e4 linux-pipewire: Fix 10- and 16-bit captures 2025-04-01 16:01:29 -04:00
jcm 8f1bcc1798 cmake: Adjust macOS SDK detection 2025-03-31 14:10:38 -04:00
Ryan Foster 3e84469cc1 libobs: Update version to 31.0.3 2025-03-26 16:05:26 -04:00
Exeldro 5ca6e1effa libobs: Fix duplicating scene with custom size 2025-03-26 15:17:13 -04:00
Warchamp7 ca762b9460 frontend: Remove Exit button (#11887) 2025-03-24 17:57:44 -04:00
Ryan Foster b96607345a obs-websocket: Update version to 5.5.6
Fix a possible crash when opening OBS in Studio Mode.
2025-03-24 13:48:24 -04:00
Lukáš Jech 01d5198f7b rtmp-services: Add "VRCDN - Live" service 2025-03-20 19:21:30 -04:00
PatTheMav 577e3504d5 frontend: Only emit frontend events for existing scene collection
To emit frontend events early during OBS' initialization, the
disableSaving state variable needs to be "falsy" (as events will not be
emitted otherwise).

The code path taken for generating a new fallback scene collection
has disableSaving decremented to "enable" saving (and thus frontend
events) already, so it's just the code paths for existing collections
that need this workaround.

Emitting the scene changed and preview scene changed events when a
fallback scene collection has been created has side-effects when
OBS Studio is set to studio mode and can lead to potential crashes,
as the studio mode is still in an invalid state at this point.
2025-03-20 15:05:42 -04:00
PatTheMav b163d5ffcd CI: Add workflow_dispatch trigger to scheduled repository workflow
By adding the workflow_dispatch trigger, the scheduled workflow can
also be manually triggered if the scheduled run failed to run due to
scheduling issues or because of an error that might have been fixed
since then.
2025-03-19 16:42:37 -04:00