PatTheMav
349372b3b3
cmake: Add changes for CMake build framework 3.0
...
New code path only taken if OBS_CMAKE_VERSION is set to 3.0.0 or
greater, old functionality remains unchanged.
2023-03-26 18:20:38 -04:00
Jim
e233931dff
Merge pull request #8522 from nquah/enhanced-rtmp
...
Enable AV1, HEVC via RTMP to YouTube
2023-03-26 14:07:37 -07:00
PatTheMav
90f46a9d4d
libobs: Add missing VIDEO_FORMAT_V210 handling in switch statements
...
Format was added to enum but not handled in all switch statement
handling the enum.
2023-03-26 13:48:01 -04:00
Yuriy Chumak
7dbc829c15
libobs,UI: Add output failure code for HDR being unsupported
2023-03-26 16:37:31 +02:00
Yuriy Chumak
31ba0973e5
libobs: Export HEVC NAL type enum
2023-03-26 14:47:22 +02:00
Norihiro Kamae
94bf325dd9
libobs: Fix VIDEO_FORMAT_V210 shader for GLSL
2023-03-26 05:13:00 -07:00
jpark37
97843dd7d7
libobs: Add VIDEO_FORMAT_V210
...
Support 10-bit packed format that DeckLink uses.
2023-03-26 01:52:44 -07:00
cg2121
d291830d23
libobs: Copy private scene item data when duplicating scenes
...
For example, this makes sure scene item colors are copied when
duplicating a scene. This also removed the now redundant private data
variable.
2023-03-25 18:30:31 -07:00
Jim
7a30d535aa
Merge pull request #8289 from derrod/more-audio-codecs
...
libobs,obs-ffmpeg: Add option for recording lossless audio
2023-03-25 16:52:49 -07:00
cg2121
1ac609f1ff
UI, libobs: Fix not handled in switch warnings
...
These warnings were being spit out by GCC on Linux.
2023-03-26 10:47:01 +11:00
jpark37
8f3bf0a0e3
libobs: Keep output as premultiplied alpha
...
Simplify code until someone needs straight alpha.
2023-03-25 03:19:26 -07:00
derrod
dcee4fc61a
libobs: Allow encoders to request unclamped audio mix
...
This is useful for formats such as 32-bit float PCM which providers
greater flexibility in editing by retaining information that would
otherwise be clipped.
2023-03-25 10:38:18 +01:00
jpark37
e32c2c1427
libobs: Add callback for main texture rendered
...
Useful for redirecting main texture to DeckLink output for example.
2023-03-24 15:18:45 -07:00
derrod
a73e13eeeb
libobs: Keep mixer data for placeholder sources
...
Placeholder sources are created when a plugin providing a source type is
unavailable. Since they're not marked as having audio any audio track
settings for them get lost. With this change we retain mixer information
if the source owns its id to avoid that.
2023-03-24 12:16:32 -04:00
Jim
e9ef38e3d3
Merge pull request #7978 from jpark37/dxgi-display-sdr-on-hdr
...
libobs-d3d11,win-capture: Add Force SDR for DXGI duplicator
2023-03-20 01:43:14 -07:00
Jim
0a9ed4569b
Merge pull request #7814 from jpark37/decklink-preview-rescale
...
decklink: Move preview output rescaling to GPU
2023-03-20 01:42:36 -07:00
jpark37
c2afa58125
libobs: Enable fast clear on Windows always
...
NVIDIA driver 527.37 fixes flickering when multiple GPUs are installed.
2023-03-20 01:41:47 -07:00
tytan652
22ebed8d02
libobs,docs: Add connect infos check to the Services API
...
This new function allows to know if the service has all the info needed
to try to connect.
2023-03-19 17:38:02 +01:00
tytan652
ea4ac2d08d
libobs,docs: Add connect infos to the Services API
...
This replace and deprecate url, key, username and password functions.
2023-03-19 17:38:02 +01:00
tytan652
aeab6b8fc4
libobs,docs,rtmps-services: Add supported audio codecs
...
Also remove Opus-only "supported audio codecs" in the services JSON.
2023-03-19 17:27:42 +01:00
tytan652
1e0f4a6ebf
libobs,docs: Add preferred output type to Service API
2023-03-19 17:16:13 +01:00
tytan652
48dc6dde68
libobs,docs: Add supported codecs functions with output id
2023-03-19 16:49:56 +01:00
tytan652
56411eda8e
libobs,docs: Add protocol enumeration functions
2023-03-19 16:31:05 +01:00
tytan652
813b3b2763
libobs,docs: Add protocol to Services API
2023-03-19 15:29:44 +01:00
tytan652
201bcda051
libobs,docs: Add protocol in Outputs API
2023-03-19 15:29:03 +01:00
Jim
6eace37e06
Merge pull request #8229 from derrod/hashed-tables
...
Hashtable Adventures
2023-03-19 00:34:44 -07:00
Kurt Kartaltepe
b7f29ca767
libobs: Reduce synchronization limit for multiple audio tracks
...
Since 65eb3c0815 we tried to get as close
a sync between audio and video tracks as we could before starting to
send frames to the output.
But in be717dbb2c when multi-track audio
was considered for synchronization it continued to try and line ALL
audio packets up with one video packet. While audio and video packets
are similar size this will work out. But once video packets duration is
smaller than 1/2 audio packet duration this may fail forever. In
practice with AAC's 20-23ms frame duration we can often get tracks
producing frames 5-10ms out of phase. For 60fps video this mostly fine
as 16ms frame duration will cover the gap, but for framerates as low as
100 its possible to fail to synchronize. In practice this is ~50%
for 6 audio tracks and 120fps video on my system, or 100% at 240fps.
2023-03-18 18:40:12 -07:00
Exeldro
a5e9c94e4b
libobs: Add obs_view_get_video_info
2023-03-18 15:54:38 -07:00
Jonathan Bennett
73dea7c475
libobs: Fix Pulseaudio audio monitoring listing sources
...
The Pulseaudio implementation of audio monitoring was actually listing audio sources.
This change corrects that, so all possible outputs are available.
2023-03-18 15:45:36 -07:00
Norihiro Kamae
4ea0b69974
libobs/util: Simplify implementation of os_get_path_extension
...
To avoid a false use-after-free warning from GCC's -Wuse-after-free
option, revise the implementation without using memory allocation.
2023-03-18 15:36:41 -07:00
Norihiro Kamae
434bdc1768
libobs: Fix possible use-after-free of obs_scene_t
...
When creating a group, a newly allocated group `sub_scene` is released
just after calling `obs_scene_add_internal`.
If another thread released the scene-item, which is the sub_scene,
use-after-free might happen.
2023-03-18 15:34:47 -07:00
derrod
a41c616b21
libobs: Do not send hotkey_bindings_changed if nothing changed
2023-03-18 10:47:50 +01:00
derrod
e6a7cff034
libobs: Use uthash for hotkeys and hotkey pairs
2023-03-18 10:47:50 +01:00
derrod
78aa4e03dc
libobs: Use uthash for properties
2023-03-18 10:47:49 +01:00
derrod
eff3cf134c
libobs: Use uthash for hotkey name map
2023-03-18 10:47:49 +01:00
derrod
c68eeaef1d
libobs: Use uthash for source objects
...
All sources are part of a hash table that allows a lookup by UUID.
Public sources additionally are in a hash table allowing lookup by name.
2023-03-18 10:47:49 +01:00
derrod
183fa8c06c
libobs: Use uthash for translation lookup
2023-03-18 10:47:49 +01:00
derrod
e720bb4c09
libobs: Use uthash for config
2023-03-18 10:47:49 +01:00
Jim
f4a8814998
libobs: Use uthash for obs data objects
...
Co-authored-by: Rodney <dennis@obsproject.com>
2023-03-18 10:47:49 +01:00
derrod
2986d36d9b
libobs/util: Add uthash
...
Adds a header including uthash and redefining some of its options for
use withint libobs and plugins (potentially).
2023-03-18 10:47:49 +01:00
jp9000
619edf5e7d
libobs: Add pointer to obs_data_item name
...
Rather than have to look up the string each time, just add a pointer to
the string. Still all stored in the same memory though.
2023-03-18 10:46:28 +01:00
derrod
1fd50a9324
libobs: Add obs_reset_source_uuids
2023-03-12 01:11:38 +01:00
derrod
29db52ad27
libobs: Save/Load source UUID in scene item data
2023-03-12 01:11:38 +01:00
derrod
30519768ad
libobs: Add UUIDs to obs_source objects
2023-03-12 01:11:38 +01:00
derrod
f72cc4498f
libobs: Add os_generate_uuid() to platform utils
2023-03-12 01:11:38 +01:00
derrod
4b062a7147
libobs: Add functions for getting/saving pretty JSON
2023-03-10 23:55:42 +01:00
derrod
75693a6682
libobs: Write default values to config
2023-03-07 17:44:19 -05:00
pkv
a0a23e8a18
libobs: Fix leak with empty path in stats
...
If the recording path is left empty in Settings, a leak can occur in
window-basic-stats.cpp because a bmalloc is called for a size 1.
This fixes the leak by checking against the path in the
os_get_free_disk_space function.
Signed-off-by: pkv <pkv@obsproject.com>
2023-03-04 16:23:07 -08:00
Richard Stanway
2468268569
libobs: Hold async mutex when calling set_async_texture_size
...
Calling set_async_texture_size without holding async_mutex is dangerous
as cur_async_frame could be changed / freed by another thread.
2023-03-04 16:10:19 -08:00
Richard Stanway
01786a3f11
libobs: Disable encoder scaling request if it matches output size
...
It was possible to set the encoder to scale the video to the same size
as the output, resulting in unnecessary passes through swscale and
skipping hardware encoders. This was a common user error in Advanced
Output mode where they would tick the rescale box but leave it at the
same resolution as their main output.
2023-03-04 15:14:42 -08:00