Commit Graph
48 Commits
Author SHA1 Message Date
Patrick Nicolas 56da7af334 Throw different error if encoder is not compiled 2024-09-27 22:34:11 +02:00
Patrick Nicolas b6a6689323 Make "encoder" and "codec" optional in configuration 2024-09-22 16:35:24 +02:00
Patrick Nicolas 1bd98881ff Fix build with vaapi disabled 2024-09-12 15:51:41 +02:00
Patrick Nicolas 7e8c479cc5 Release swapchain earlier
Encoders now have a buffer for next image so that they can encode one
and the compositor write to an other one.
2024-09-11 23:41:10 +02:00
Patrick Nicolas 517b572c75 Integrate YCbCr conversion in monado
Hacks monado's distortion shader to write into Y and CbCr planes,
eliminating the intermediate RGBA image

Note: change monado's version to enforce patch application
2024-09-11 23:41:10 +02:00
Patrick Nicolas d68bbb4e72 Fix logic error in encoder wait_idle 2024-09-07 18:17:27 +02:00
Patrick Nicolas 5c8310e88f Tweak default values, fix docs
default client scale: 1.0 -> 1.4
default server scale: 0.8 -> 0.5 (0.35 if eye tracked)

added docs for av1 as default when supported
fixed docs about multiple encoders, it's not enabled by default
2024-09-06 21:02:22 +02:00
Patrick Nicolas 481c922143 Select compatible codec for vaapi when no config is given 2024-08-31 22:07:56 +02:00
Patrick Nicolas 7a42691269 AV1 support 2024-08-31 22:07:56 +02:00
galister 8503e3480b eye-tracked foveation 2024-08-30 11:24:36 +02:00
Patrick Nicolas bb22403f7e Show encoding time in plots 2024-08-30 08:19:33 +02:00
Patrick Nicolas 688bf2d263 Fix encoders waiting on other's network send 2024-08-30 07:52:38 +02:00
Patrick Nicolas d267bd0ebb Add async send for nvenc 2024-08-26 12:30:54 +02:00
Patrick Nicolas 1bda244894 Avoid one shared_ptr copy in vaapi encoder 2024-08-26 12:24:25 +02:00
Patrick Nicolas 982a2557ef Use a single thread for all encoder async send 2024-08-22 22:56:51 +02:00
Patrick Nicolas 8c7491d471 Offload vaapi send data to secondary thread 2024-08-18 12:07:31 +02:00
Patrick Nicolas 685061ca59 Relax pipeline barriers if possible 2024-08-16 21:24:50 +02:00
Patrick Nicolas 8e157e5153 Transition images to general layout for vaapi 2024-08-16 10:43:12 +02:00
Patrick Nicolas 7e2d0cecc4 Change how drm modifier next is appended 2024-08-16 10:43:12 +02:00
Guillaume Meunier 40bacb8f85 Add missing include 2024-08-13 14:42:59 +02:00
Patrick Nicolas 8ea58b8e35 Fix code for default split encoders (not enabled) 2024-08-12 11:28:58 +02:00
Patrick Nicolas 19b67d22de Enforce synchronization across encoders 2024-08-02 17:47:56 +02:00
Patrick Nicolas e385471bee Use correct flag for forced IDR 2024-06-13 08:11:54 +02:00
Patrick Nicolas d90863c9b4 Nvenc: enforce width/height to be divisible by 32 2024-06-12 12:46:31 +02:00
Patrick Nicolas 0d62a24f25 Set range and color model for nvenc 2024-06-12 12:46:26 +02:00
Patrick Nicolas bef30c3b91 Get maximum size from nvenc capabilities 2024-06-06 19:19:43 +02:00
rcelyte d107cf105a Fix VAAPI encoding when VK_EXT_image_drm_format_modifier isn't available 2024-06-05 10:56:37 +02:00
Patrick Nicolas 3a5404d191 Reconnection support 2024-06-03 20:59:03 +02:00
Patrick Nicolas ee8babf08a Throttle IDR frames: max once every 100 frames 2024-04-30 12:25:15 +02:00
Patrick Nicolas b4a792d1e5 Don't destroy descriptor sets in yuv converter 2024-04-21 19:11:35 +02:00
Patrick Nicolas f8207631bb Don't enable split encoders by default 2024-04-08 23:07:41 +02:00
Patrick Nicolas 13e54ddaae Fix split encoder default configuration 2024-04-07 15:30:08 +02:00
Patrick Nicolas 4476676c9b Print encoder details on start 2024-04-07 15:14:57 +02:00
Patrick Nicolas fff0ba9077 Only set timing info on last video shard 2024-04-01 23:09:12 +02:00
Patrick Nicolas b5202567bd Dynamically load cuda/nvenc 2024-03-30 23:07:52 +01:00
Guillaume Meunier 9cceaac648 clang-format 2024-03-30 17:00:34 +01:00
Patrick Nicolas 8e3979cc8c Use XrTime for all time data 2024-03-24 14:01:44 +01:00
Patrick Nicolas 97ec53868f Enforce even dimensions for user provided settings 2024-03-07 18:24:46 +01:00
Patrick Nicolas 16b993a81c Use even height for default encoder settings 2024-03-07 15:59:49 +01:00
Patrick Nicolas 7b7caaed4f fix for drm modifiers 2024-03-05 17:00:35 +01:00
Patrick Nicolas ee2802b97e Default to split encoders for vaapi 2024-03-03 09:37:04 +01:00
Patrick Nicolas d175284358 Configure bitrate globally 2024-03-03 09:37:04 +01:00
Patrick Nicolas 386856c54e Allow manual vaapi device in settings 2024-02-19 22:13:21 +01:00
Jon ee03406a87 Add missing <span> include in yuv_converter.cpp. 2024-02-18 16:15:55 +01:00
Patrick Nicolas e385e459ee Always do yuv conversion in vulkan 2024-02-18 16:15:55 +01:00
Patrick Nicolas a733e69796 Send encode timings 2024-02-18 09:03:46 +01:00
Patrick Nicolas 72e8a5d84d run-time video dump option
WIVRN_DUMP_VIDEO=/path/to/file will dump the raw video stream in
/path/to/file-{idx}.{codec} where idx is the stream index (one stream
per encoder) and codec is h264 or h265.
2024-02-12 21:12:02 +01:00
Patrick Nicolas 88e23da72c Move encoder code into new directory 2024-02-07 18:25:54 +01:00