aboutsummaryrefslogtreecommitdiff
path: root/plugins/rtp/src/device.vala
AgeCommit message (Collapse)Author
2025-10-06device: Request 30 fps in absence of framerate negotiationRobert Mader
Sources not capable of negotiating framerates, most notably the libcamera Pipewire plugin, might still be able to honor a value requested and otherwise usually just ignore it. Thus setting a value that we can reasonably assume to be supported has several benefits: 1. It potentially prevents the source from producing much higher fps than useful for the usecase, causing resource waste. 2. It decreases the chances of running into fallback code paths which are often badly optimized performance-wise. One example is that currently the implicitly set framerate values cause regular renegotiations (including buffer re-allocations) in pipewiresrc. Another is the internal get_target_bitrate(), currently returning uint.MAX. 3. If the source can only produce e.g. 15 fps, that's usually handled without major issues. Thus follow the example of Snapshot, which has been doing this for a while and gets more testing with libcamera, and set framerate to 30/1.
2025-10-06device: Target resolution of 720p on libcamera devicesRobert Mader
Most cameras needing the fallback path are provided by libcamera, which does not yet provide framerates. At the same time many such cameras support very high resolutions - often in the 4K category - and are paired with rather weak CPUs. Examples for this are popular mobile phones such as the PinePhone Pro or the OnePlus6. In order to archive a somewhat stable FPS count in such scenarios, target a resolution of 720p as a compromise of quality and performance.
2025-10-06Only support SystemMemory caps for videoRobert Mader
An increasing number of video device providers, such as `pipewiresrc` (in the upcoming 1.6 release) and `v4l2src` (since Gst 1.26), support `memory:DMABuf` caps using the special `DMA_DRM` caps. This is not expected and handled properly, thus filter out any non-default features.
2025-04-09RTP: Tear down most of GStreamer while not in a call.Marvin W
This includes #1679 and works around an upstream bug in pipewire causing #1685
2023-04-22Fix video for cameras with rotated imageMarvin W
2022-05-17Fix calculation of best camera frameratefoucault
When the algorithm iterates over all the available v4l2 capabilities it tries to determine the best framerate for each one of YUYV (video/x-raw) modes presented by the hardware (best_fraction, line 357 in device.vala). Regardless of what's determined to be the "best" YUYV mode from within the conditional right after (line 385) the best fractional framerate will always point to the last iterated framerate, which might be an extremely low one, like 7 or 5 FPS. When the framerate is then stored in the Gst.Structure (line 394) the fractional framerate will always be that last value which might be different than the correct one as calculated by best_fps (line 386). This workaround solves this issue by only updating best_fraction when the conditional in line 385 is satisfied. from issue #1195
2022-02-12Calls: Fix device selector for multi-party calls, allow picking device ↵Marvin W
before call started
2022-02-11RTP: Make codec and hardware support compile-time configurableMarvin W
2022-02-08Calls: Device pickerMarvin W
2021-12-19RTP: Improve screen resolution update logicMarvin W
2021-12-18RTP: Less log spamMarvin W
2021-12-18RTP: Correctly handle timestamp after re-enabling a streamMarvin W
2021-11-15Add maximum bitrate and adjust video resolution based on bitrateMarvin W
2021-11-10RTP: Encode with deviceMarvin W
2021-05-01Fix webcam framerate selectionMarvin W
2021-05-01Correctly handle missing webrtc-audio-processingMarvin W
2021-05-01Echo CancellationMarvin W
2021-04-29Video optimizationsMarvin W
2021-04-11GStreamer compatMarvin W
2021-03-23Resample audio data for common 48k sample rateMarvin W
2021-03-21RTP: Backport gst_caps_copy_nth from GStreamer 1.16Marvin W
2021-03-21Add RTP implementation as pluginMarvin W