8139 Commits

Author SHA1 Message Date
David Bieber
ebbe856d83 mac-capture: Only find window by window id when owner name and pid match 2020-04-05 22:10:36 -04:00
David Bieber
239cad00e4 mac-capture: Use window id to identify windows on MacOS
Use a window's window id in init_window in the mac window capture plugin.
2020-04-05 22:09:49 -04:00
Hans Petter Selasky
62a174ec39 plugins: Build ALSA plugin for FreeBSD
Signed-off-by: Hans Petter Selasky <hps@selasky.org>
2020-04-05 20:39:53 +02:00
Hans Petter Selasky
0e4ea14ba1 libobs: Implement and use better scaling function for 64-bit integers
As os_gettime_ns() gets large the current scaling methods, mostly by casting
to uint64_t, may lead to numerical overflows. Sweep the code and use
util_mul_div64() where applicable.

Signed-off-by: Hans Petter Selasky <hps@selasky.org>
2020-04-05 20:27:28 +02:00
jp9000
47058d9b69 libobs: Update version to 25.0.4 2020-04-05 03:48:34 -07:00
jp9000
83991a1345 win-capture: Update graphics hook version to 1.1.4 2020-04-05 03:48:34 -07:00
Jim
14af57fcb1
Merge pull request #2649 from WizardCM/stream-stretch
UI: Don't stretch server field in Qt 5.14
2020-04-05 03:48:18 -07:00
Kurt Kartaltepe
14480fe025 UI: Fix previewLabel styling
Label renders with default styling instead of using dynamic property
because it was already polished.
2020-04-04 18:57:31 -07:00
Matt Gajownik
ed8df46a39 UI: Don't stretch server field in Qt 5.14 2020-04-05 11:50:53 +10:00
Kurt Kartaltepe
107c632220 obs-outputs: Fix warnings WITH_RTMPS=OFF
Some unused variables were not marked unused when RTMPS was disabled.
2020-04-04 11:09:12 -07:00
Matt Gajownik
beb2af9721 UI: Require selected source for Transform shortcut
Fixes #2468
2020-04-04 23:45:14 +11:00
Kurt Kartaltepe
c5b731e48f cmake: Fix warnings and normalize variables/errors
As of 3.17 using find_package_handle_standard_args checks that the name
of the FindXXX file and the first argument are the same case.

Some modules used non-standard variables or the old singular variables
instead of plurals. This normalizes variable usage to the new-style.

Some CMakeLists.txt did custom error checking instead of propagating
find_package errors. These were changes to call find_package with
REQUIRED or without QUIET where needed and shortens the custom status
messages. This helps users who want to enable that functionality see
what precisely wasnt found.
2020-04-03 21:32:10 -07:00
Jim
dbb453d00b
Merge pull request #2591 from jpark37/vulkan-unsupported-fix
win-capture: Fix crash if GPU can't Vulkan capture
2020-04-03 16:57:02 -07:00
Colin Edwards
9703d17541
Merge pull request #2620 from afriza/patch-1
Decklink: Fix crash when no matching device
2020-04-03 18:07:17 -05:00
jp9000
c899d164d9 obs-browser: Fix interact keyboard input on Linux
Keyboard input wasn't working properly when using interact on Linux --
this should solve it.
2020-04-03 03:13:24 -07:00
Douglas Rhine
b216b90a5c
obs-ffmpeg: Rename and add more VAAPI levels
The Auto level lets the encoder decide which level to use.
Furthermore, some devices allow levels beyond 4.2. Therefore,
we add all levels allowed by H.264. This is of importance,
since using a resolution not supported by the specified level
can trigger undefined behavior on the hardware/kernel.
2020-04-03 07:12:05 +01:00
Afriza N. Arief
f7332b467a
Decklink: Fix crash when no matching device
OBS crashes when decklink output is auto started and the device is
removed or changed to different model while OBS is not running.

Fixes https://github.com/obsproject/obs-studio/issues/2494
2020-04-03 00:32:33 +07:00
Douglas Rhine
04d7ff5854
obs-ffmpeg: Expose VAAPI profile choices
Allow choosing Constrained Baseline, Main and High.
2020-04-02 18:10:03 +01:00
Ryan Foster
00c1513890 CI: Update macOS dependencies
* Update VLC from 3.0.4 to 3.0.8
* Update Sparkle from 1.20.0 to 1.23.0
2020-04-02 04:00:51 -04:00
jp9000
d002345a11 libobs: Fix macOS 10.15 hotkey crash (temporary)
On 10.15, if a user activates secure input of some sort, the hotkey code
will begin to crash inside of any Apple function related to hotkeys,
even after secure input has ended.  This does not appear to be the fault
of OBS; the reason to this is still as of yet unknown, but is suspected
to be a bug inside of Apple code that's a new regression as of 10.15.

So for the time being as a temporary solution to the crash, simply
disable external hotkey support once secure input has been detected.

Because of this issue, the hotkey code should probably be replaced by a
different method of tracking hotkeys, perhaps InstallEventHandler for
example.  This commit is little more than a bandaid to the crash.
2020-03-31 10:40:17 -07:00
SoraYuki
7f0d57f535 rtmp-services: Fix memory leak when update rtmp-custom-service. 2020-03-30 15:49:49 +08:00
jpark37
8987fc6c81 win-capture: Verify VK_KHR_external_memory_win32 support
Good practice to verify necessary extensions exist. We'll probably need
keyed mutex extension in the future to support Intel.
2020-03-29 10:08:03 -07:00
jpark37
21dc1f573b win-capture: Cleaner COM usage
Remove hard-coded GUIDs, call correct functions, and clean up
unnecessary casts.
2020-03-29 10:00:36 -07:00
Richard Stanway
b9f7702378
Merge pull request #2563 from skyboy/skyboy-patch-1
Fix QuickSync LA_ICQ encoder settings
2020-03-28 23:06:05 +01:00
jpark37
348fcd5b00 win-capture: Fix crash if GPU can't Vulkan capture 2020-03-28 09:01:26 -07:00
Matt Gajownik
7ee1bb2df6 docs/sphinx: Bump major OBS version 2020-03-28 23:17:20 +11:00
Matt Gajownik
a9a19cf351 UI: Use Qt dialogs for Font & Color Pickers on Linux
This fixes a hang on Ubuntu when closing the
dialogs after leaving them open for a time.
2020-03-28 23:15:25 +11:00
skyboy
0c87670ee8 obs-qsv11: Fix QuickSync LA_ICQ encoder settings 2020-03-28 07:31:22 -04:00
jpark37
e1739707d0 win-capture: Use VkAllocationCallbacks 2020-03-27 23:59:37 -07:00
Richard Stanway
094edda866
Merge pull request #2578 from sebastinas/json-executable-bits
rtmp-services: Remove executable bits from json files
2020-03-28 01:17:28 +01:00
Richard Stanway
f4cf9b3b66
Merge pull request #2580 from jpark37/remux-fix
UI: Fix text handling for dialogs
2020-03-28 01:16:41 +01:00
Richard Stanway
4c1a6e0097
Merge pull request #2574 from jpark37/winrt-catch-all
libobs-winrt: Stronger exception handling
2020-03-28 01:14:04 +01:00
Jim
b078d9197d
Merge pull request #2582 from notr1ch/win7-nvenc
obs-ffmpeg: Expose old NVENC on Windows 7
2020-03-27 17:06:34 -07:00
Dillon Pentz
402c292cc4
Merge pull request #2555 from VodBox/sl-volume-fix
UI: Fix silent scenes with imported SL scenes
2020-03-28 13:03:59 +13:00
Vainock
8643a3edf6
UI: Remove language region 2020-03-28 00:53:39 +01:00
Sebastian Ramacher
fe4818ada1 rtmp-services: Remove executable bits from json files
The bits were set in c0a8e86c9cda751cd20ecaa5e56676f2baff7e42, but they
are not needed.
2020-03-27 22:14:24 +01:00
Richard Stanway
75d1f74838 obs-ffmpeg: Expose old NVENC on Windows 7
New NVENC isn't available on Windows 7 and the old encoder was marked as
internal, giving users no option to use NVENC at all.
2020-03-27 00:17:49 +01:00
jpark37
36e2a9fa33 UI: Fix text handling for dialogs
Signal only needs to be connected once, not every keystroke.

Also commit data only when text widget focus is lost to fix cursor
moving to the end of the string after every keystroke.
2020-03-25 17:13:10 -07:00
yalpul
6b3479108f CI: Make processor count consistent
Code formatting script was using `sysctl -n hw.physicalcpu` on macOS
machines to get the CPU count. This command returns the physical CPUs.
`nproc`, however, returns logical CPU count on Linux machines. It
should be `sysctl -n hw.logicalcpu` to make it consistent with its
Linux counterpart. But there also another way. `getconf
_NPROCESSORS_ONLN` gives the number of logical CPUs on both Linux and
macOS.
2020-03-26 00:20:07 +03:00
jpark37
36b7ac432d libobs-winrt: Stronger exception handling
Exceptions were still leaking through somehow.
2020-03-25 08:50:01 -07:00
Bongalive
c4af7d00de rtmp-services: Update Bongacams servers and settings 2020-03-25 14:25:50 +07:00
Clayton Groeneveld
b3211a99ac UI: Use standard resolutions with auto-config 2020-03-25 02:23:04 -05:00
jpark37
ff2b07c032 libobs-opengl: Support 3D texelFetch 2020-03-23 20:38:43 -07:00
jp9000
3c78a8aa8d libobs: Update to 25.0.3 (linux hotfix once again) 2020-03-23 19:16:54 -07:00
Jim
488e25fc3d
Merge pull request #2550 from kkartaltepe/v4l2-fix-for-real
linux-v4l2: Fixup invalid id
2020-03-23 18:40:25 -07:00
Kurt Kartaltepe
b822faf73b linux-v4l2: Fixup invalid id
Previous fix in #2547 altered id before they were handed off to
callbacks and v4l2 wont strip its own flags from ids resulting in
invalid ids in the ioctl.

Instead add cleanup section and jump all branches there before looping.

(Jim edit: I'm changing this entire function so that it isn't horrible.)
2020-03-23 18:12:14 -07:00
Richard Stanway
54c5ac250f libobs-d3d11: Log device PCI IDs
This will help identify devices sharing the same names (eg "Intel HD
Graphics") for potentially adding to the blacklists should they have
issues.
2020-03-23 20:54:38 +01:00
Richard Stanway
1dc2c6a3be obs-outputs: Fix mbed TLS build issues
Version test macro was using the wrong version, and the non-crypto
MD5 only code was accidentally moved into an #ifdef which ended up
disabling it.

Fixes https://github.com/obsproject/obs-studio/issues/2426
2020-03-23 17:32:39 +01:00
VodBox
6319973b2f UI: Fix silent scenes with imported SL scenes
Previously, the importer assumed scenes had fields that sources did for
audio, namely volume, sync, mute and monitoring type. SL scenes do not
have these fields. This resulted in mistakes in importing, such as
imported scenes having a volume of 0.0.

This change gets rid of the non-existent fields, and explicitly sets the
volume of the scenes to 1.0 as a precaution.
2020-03-23 23:32:02 +13:00
jpark37
3aef198921 obs-filters: Implement CUBE LUT domain properly
Previously assuming zero to one instead of respecting values.
2020-03-22 18:25:32 -07:00