Cameron Gutman
aa76b2398b
Add support for starting URLs and regular files that aren't executable
...
This provides some limited ShellExecute-like behavior.
2024-02-08 01:59:40 -06:00
Cameron Gutman
ee93890d86
Don't attempt to get the working directory of a URL
2024-02-08 01:59:40 -06:00
ReenigneArcher
0aa4f06c39
refactor(logging): separate logging from main ( #2110 )
2024-02-07 09:59:24 -05:00
Cameron Gutman
8373a8b947
Avoid recreating the display when no display parameters have changed
2024-02-06 20:00:24 -06:00
Cameron Gutman
aee88f336a
Don't fall back to undefined ref frame count on HEVC/AV1 if H.264 succeded with ref frame count specified
...
I don't think there are any encoders out there that support this for some codecs and not others.
2024-02-06 20:00:24 -06:00
Cameron Gutman
38d45b39ae
Don't populate QP rate control fallbacks for encoders guaranteed to support CBR/VBR
...
It just needlessly slows down encoder probing when the encoder or codec is not supported.
2024-02-06 20:00:24 -06:00
Cameron Gutman
ff8c8ce3ab
Skip encoder reprobing if no GPU changes have occurred
2024-02-06 20:00:24 -06:00
ReenigneArcher
76e160bb0a
style(macos): various code style fixes ( #2086 )
2024-02-04 18:37:44 -05:00
Cameron Gutman
dea1155983
Inform clients of graceful termination when Sunshine exits
2024-02-04 16:43:59 -06:00
Cameron Gutman
be6f856840
Fix DSCP tagging for dual-stack sockets on Linux
2024-02-04 16:19:22 -06:00
Cameron Gutman
3578727ff9
Require RTSP encryption when encryption mode is set to mandatory
...
This also lets us provide a friendly error to the client when it is rejected.
2024-02-03 15:05:43 -06:00
Cameron Gutman
f80b23750b
Implement RTSP encryption support
...
RTSP encryption is mandatory for client that report core version 1 or later.
2024-02-03 15:05:43 -06:00
Cameron Gutman
ca29eac53a
Refactor RTSP handling to be session-based rather than socket-based
...
This is required to support per-session attributes like encryption keys during RTSP message processing.
2024-02-03 15:05:43 -06:00
Cameron Gutman
e62d6915db
Fix -Wreturn-local-addr warning in event_t::view()
2024-02-03 15:05:43 -06:00
Cameron Gutman
2008bc0eaa
Use CS6 instead of CS7 for audio traffic
...
CS7 is reserved for network control traffic.
2024-02-02 18:30:48 -06:00
Cameron Gutman
bb3b7984f3
Add refcounting to Mac and Linux QoS state to ensure it works properly with multiple clients
...
This means we can't control DSCP tagging per-client, but it shouldn't pose a big problem as routers that blackhole DSCP tagged traffic are pretty rare.
2024-02-02 18:30:48 -06:00
Cameron Gutman
5c9533f6d7
Allow DSCP tagging and local traffic prioritization to be enabled separately on Mac and Linux
2024-02-02 18:30:48 -06:00
Cameron Gutman
c7700f96fc
Enable opportunistic QoS tagging for control messages
2024-02-02 18:30:48 -06:00
Cameron Gutman
fe8b0bad92
Implement workaround for qWAVE issues handling IPv4-mapped IPv6 addresses
2024-02-02 18:30:48 -06:00
Cameron Gutman
f70c3f1c0e
Fix crash on monitor index not found in KMS
2024-01-28 14:00:46 -06:00
Cameron Gutman
cf416f55e1
Fix KMS cursor capture on Nvidia GPUs
2024-01-28 14:00:46 -06:00
Cameron Gutman
8182f592e8
Implement NVENC support for KMS and wlgrab capture methods
2024-01-28 14:00:46 -06:00
Cameron Gutman
9a3553db04
Refactor to use pixel format helpers in VAAPI
2024-01-27 21:32:29 -06:00
Cameron Gutman
3b11bc86b0
Rewrite software scaling to use new multi-threaded swscale API
2024-01-27 21:32:29 -06:00
Cameron Gutman
a15bd65391
Adjust default CPU thread count to 2
...
It's a tiny reduction of encoding quality for a major increase in performance
2024-01-27 21:32:29 -06:00
Cameron Gutman
9dfe97d405
Send the frame number in the encrypted video header
2024-01-25 23:43:30 -06:00
Cameron Gutman
65851407b1
Avoid unnecessary reallocation of the IV for every packet
2024-01-25 23:43:30 -06:00
Kelvie Wong
3f31400e7f
Revert "Remove useless texture size queries for every frame in display_ram_t"
...
This reverts commit ebe01ce20b .
Looks like this commit undos the fix for #453 , see also PRs #649 and #884 .
This also adds a comment so hopefully it doesn't get removed again in
the future (or a proper fix is found).
2024-01-25 21:09:43 -06:00
ns6089
fe886632dc
Add new nvenc options to legacy ffmpeg path
2024-01-20 18:28:09 -06:00
ns6089
ede59e17d8
Expose more nvenc options
...
1. Spatial AQ, for some reason NVENC have problems recovering details on
flat regions of static images over multiple frames, official docs
recommend to enable it for "game-streaming"
2. Percentage increase of default single-frame VBV/HRD, can act as
low latency variable bitrate substitute
2024-01-20 18:28:09 -06:00
ns6089
66150872b0
Add nvprefs user override options
2024-01-20 18:28:09 -06:00
ns6089
270716b862
Use safe string composition in tray tooltip
2024-01-20 18:28:09 -06:00
Lukas Senionis
bf1b9a20ec
Add a dedicated library for working with JSON ( #2047 )
2024-01-20 17:05:35 -05:00
Cameron Gutman
a10ec3a98a
Drop unencrypted messages on the encrypted control stream
2024-01-19 18:57:58 -06:00
Cameron Gutman
c88fa655f5
Implement video encryption
2024-01-19 18:57:58 -06:00
Cameron Gutman
23fb07d4a2
Implement control stream v2 encryption
2024-01-19 18:57:58 -06:00
Cameron Gutman
2f80145b8e
Change crypto::aes_t to variable size and cleanup some crypto code
2024-01-19 18:57:58 -06:00
Cameron Gutman
6b5a712506
Normalize IPv4-mapped IPv4 addresses before checking PC/LAN/WAN type
2024-01-19 18:57:58 -06:00
Cameron Gutman
3d6e7f447a
Refactor audio encryption to use new encryption flags
2024-01-19 18:57:58 -06:00
Cameron Gutman
77b0bab374
Pass launch_session_t directly into session::alloc()
2024-01-19 18:57:58 -06:00
Rafael
2e995355dc
fix(linux)!: use XDG spec for fetching Linux configuration directory ( #2034 )
2024-01-18 21:24:55 -05:00
Cameron Gutman
21e4450ee1
Fix stream disconnecting when reconfiguring display in X11
2024-01-18 19:14:45 -06:00
Cameron Gutman
404b434754
Fix starvation of encoder thread when not receiving new captured frames
...
This often happens when switching to the UAC secure desktop.
2024-01-18 19:14:45 -06:00
Cameron Gutman
f64712f277
Always reset the thread desktop before calling DuplicateOutput()
...
Otherwise capture will fail if the thread desktop is different than the current input desktop (ex: UAC secure desktop is active)
2024-01-18 19:14:45 -06:00
Cameron Gutman
8a86678d62
Reenumerate displays when the display is reinitialized or switched
2024-01-18 19:14:45 -06:00
Cameron Gutman
b94f8c0b50
Improve Name->DRM_MODE_CONNECTOR mapping with new types and names
2024-01-16 19:49:34 -06:00
Cameron Gutman
df2d728af7
Fix plane_it_t skipping the last entry when iterating
2024-01-16 19:49:34 -06:00
Cameron Gutman
d0049da2df
Implement pen and touch support for Linux
2024-01-14 11:45:12 -06:00
Cameron Gutman
c1a3903d20
Fix absolute mouse motion being interpreted as touchscreen input
2024-01-14 11:45:12 -06:00
ReenigneArcher
937d0d810c
fix: add additional pin validation ( #2007 )
2024-01-13 22:03:49 -05:00