Commit Graph
61 Commits
Author SHA1 Message Date
Alexander 6ea491f7b4 driver/encoder_settings: set video_{width, height} when generating default settings 2023-11-24 19:24:12 +01:00
Patrick Nicolas fa30ea1356 Remove remaining copies of encoded video 2023-11-22 00:00:55 +01:00
Patrick Nicolas e2868547e2 remove copies in audio thread 2023-11-22 00:00:55 +01:00
Patrick Nicolas 8b0895913b Reduce some copies in serialization
Also update a bunch of stuff
2023-11-22 00:00:55 +01:00
Patrick Nicolas c799fa6aa4 Remove FEC code, reduce data copies 2023-11-22 00:00:55 +01:00
Patrick Nicolas 12feb9c5e2 Disable forward error correction 2023-11-22 00:00:55 +01:00
Patrick Nicolas bd8183bbd2 Set send buffer size 2023-11-22 00:00:55 +01:00
Patrick Nicolas 347052109d Add device-specific logic
Controller bindings have been moved to the new logic.
Recommended view sizes are now overriden as recommendation is based on
the integrated GPU while for streaming headsets can usually do much
better.
2023-11-20 21:14:28 +01:00
Patrick Nicolas 3f783ceb0c Don't extrapolate controller positions 2023-11-16 09:05:34 +01:00
Patrick Nicolas a60bf88636 Actually throw the exception in pulseaudio errors 2023-11-10 21:51:52 +01:00
Patrick Nicolas 38fcf7dc00 Rework stream socket
Stream socket on server now uses the same port as the control socket.
Client does not assign a port to its stream socket, instead it sends a
handshake packet at the beginning, the server reads the remote port from
it.
2023-11-08 19:15:59 +01:00
Patrick Nicolas c3383521a4 Fix nvenc build 2023-10-25 09:13:33 +02:00
Patrick Nicolas 4e233d99c2 Improve timesync
Initial timesync algorithm assumed that latency was symmetrical, but it
appears that it is not. Add a mechanism to estimate where latency
happens, which leads to much more stable values: about 200µs variation
between estimations.
2023-10-21 17:53:04 +02:00
Patrick Nicolas 5b527fdfcf Ensure we only send one timesync per second 2023-10-20 13:12:10 +02:00
Patrick Nicolas 3473f00e0c Add expedited forwarding ToS flag in stream socket 2023-10-20 11:27:23 +02:00
Patrick Nicolas cb47c70030 Minor header cleanup 2023-10-17 11:17:47 +02:00
Patrick Nicolas 26d2ee1648 update monado version 2023-10-05 14:14:53 +02:00
Guillaume Meunier cef644e5da Fix compilation of configuration.cpp in Ubuntu 22.04 2023-07-29 15:40:27 +02:00
Patrick Nicolas 184f8c73db Update monado version 2023-07-26 19:44:15 +02:00
Patrick Nicolas 2d021463de fix speaker/mic thread using same variable 2023-07-04 21:10:06 +02:00
Patrick Nicolas 2704b46927 Add timestamps for inputs 2023-06-30 12:25:15 +02:00
Patrick Nicolas 00fbfafb60 use control socket for audio data 2023-06-29 17:27:52 +02:00
Patrick Nicolas 16d51338c6 fix buffered frames on ffmpeg 5+ 2023-06-28 18:13:16 +02:00
Patrick Nicolas 794b30fedc add FFMPEG_LOG_LEVEL to configure log level 2023-06-28 17:41:57 +02:00
Patrick Nicolas 38cbf2ccbd Add log for dropped encoder frames 2023-06-26 22:09:48 +02:00
Patrick Nicolas 47872011b5 Add warning if EAGAIN in encoder
This most likely means there is buffering in the encoder, pose will be
out of sync with image data and we will have additional latency.
2023-06-26 22:09:48 +02:00
Okabintaro 33f91b790f upgrade monado to e9475b13 (#6)
Upgrade monado to [e9475b13](https://gitlab.freedesktop.org/monado/monado/-/commit/e9475b13137db2cca8571576b5381a70fb8180a5) from april.
The commit after that, [86262e8b](https://gitlab.freedesktop.org/monado/monado/-/commit/86262e8b4e3ca0497d5846370cf281206cb92635) removed the
global command pool utility function which is used by wivrn, so more a refactoring and vulkan knowldege is needed for that.

Mainly wanted to do this to make the output metrics to work.
2023-06-22 22:25:41 +05:00
PLYSHKA e7795540b2 Change default bitrate to at least 50 mbits
Fix the issue with haptics using subactions after creation (Openxr specs non-conformance)
2023-05-29 22:50:25 +05:00
PLYSHKA 65d19236fe Added todo for av_format 2023-05-29 15:41:45 +05:00
PLYSHKA 530ea6702d Remove code from error 2023-05-29 15:35:35 +05:00
galister 3217d02069 Microphone streaming (#1)
* microphone streaming
* prevent speakers buffer congestion
2023-05-29 14:36:31 +05:00
PLYSHKA 32bbfbff5a Fixed vaapi filter not working with newer ffmpeg
Added pico neo 3 and pico 4 profiles with switching
Removed gles requirements
2023-05-21 14:16:12 +05:00
Patrick Nicolas 4164ac1780 update monado version 2023-03-02 09:20:14 +01:00
Patrick Nicolas a0f717ec11 Allocate command buffers only once (and do not leak them) 2022-12-17 20:15:44 +01:00
Guillaume Meunier d9ac2b84b5 Start a client when a headset connects 2022-12-17 20:12:47 +01:00
Guillaume Meunier 0b99099527 Cleanup when the server process exits 2022-12-17 20:12:47 +01:00
Patrick Nicolas 7fb2cca038 Add simple controller bindings 2022-12-10 07:11:06 +01:00
Patrick Nicolas a5726226a2 Use comp_target_factory 2022-12-09 22:19:18 +01:00
Patrick Nicolas 5932b54d74 Allow encoders to change their settings 2022-12-04 19:01:44 +01:00
Patrick Nicolas 9dd10e5261 Improve audio latency
Switch from module-simple-protocol-tcp + null sink/source to pipe
sink/source and custom network streaming.
2022-12-04 18:09:11 +01:00
Patrick NicolasandGuillaume Meunier 2b4303272d Initial audio support
Co-authored-by: Guillaume Meunier <[email protected]>
2022-12-03 21:24:55 +01:00
Guillaume Meunier 6dce276889 clang-format 2022-11-28 22:35:10 +01:00
Patrick Nicolas b1cb28200d Only blit useful part of the stream
With odd image size, encoders may add black borders. We need to properly
ignore it on the headset side
2022-11-28 22:35:10 +01:00
Patrick Nicolas 21311baf8e add (deactivated) code to dump video streams 2022-11-28 22:35:10 +01:00
Guillaume MeunierandPatrick Nicolas f16cfa8ae8 Add continuous foveated encoding
Co-authored-by: Patrick Nicolas <[email protected]>
2022-11-28 22:35:02 +01:00
Patrick Nicolas 539466e664 specialize serialization for video data 2022-11-26 23:03:15 +01:00
Patrick Nicolas efb98ccda5 more accurate timesync 2022-11-17 13:14:38 +01:00
Patrick Nicolas bed54f646c Add WIVRN_DUMP_TIMINGS option 2022-11-17 13:14:38 +01:00
Guillaume Meunier 48ef782b13 Move all external code to external 2022-11-17 08:28:59 +01:00
Patrick Nicolas 219dc50720 fix some button mappings 2022-11-15 23:14:31 +01:00