scrcpy/app
Romain Vimont 78cba1b7c2 Add session metadata for the video stream
Introduce a new packet type, a "session" packet, containing metadata
about the encoding session. It is used only for the video stream and
currently includes the video resolution.

For illustration, here is a sequence of packets on the video stream:

                                        device rotation
                                        v
    CODEC | SESSION | MEDIA | MEDIA | … | SESSION | MEDIA | MEDIA | …
           1920x1080 <-----------------> 1080x1920 <------------------
                      encoding session 1            encoding session 2

This metadata is not strictly necessary, since the video resolution can
be determined after decoding. However, it allows detection of cases
where the encoder does not respect the requested size (and logs a
warning), even without decoding (e.g., when there is no video playback).

Additional metadata could be added later if necessary, for example the
actual device rotation.

Refs #5918 <https://github.com/Genymobile/scrcpy/pull/5918>
Refs #5894 <https://github.com/Genymobile/scrcpy/pull/5894>
PR #6159 <https://github.com/Genymobile/scrcpy/pull/6159>

Co-authored-by: gz0119 <liyong2@4399.com>
2026-01-10 11:53:22 +01:00
..
data Remove useless flag in zsh completion script 2025-05-22 20:00:58 +02:00
deps Upgrade SDL build script for SDL3 2026-01-08 20:40:51 +01:00
src Add session metadata for the video stream 2026-01-10 11:53:22 +01:00
tests Add missing test for START_APP serialization 2025-11-25 00:13:13 +01:00
meson.build Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Bump version to 3.3.4 2025-12-17 19:57:50 +01:00
scrcpy.1 Add missing --screen-off-timeout doc in manpage 2025-04-14 18:07:37 +02:00