scrcpy/app
Romain Vimont 1c82c3923d Compute relative PTS on the client-side
The PTS received from MediaCodec are expressed relative to an arbitrary
clock origin. We consider the PTS of the first frame to be 0, and the
PTS of every other frame is relative to this first PTS (note that the
PTS is only used for recording, it is ignored for mirroring).

For simplicity, this relative PTS was computed on the server-side.

To prepare support for multiple stream (video and audio), send the
packet with its original PTS, and handle the PTS offset on the
client-side (by the recorder).

Since we can't know in advance which stream will produce the first
packet with the lowest PTS (a packet received later on one stream may
have a PTS lower than a packet received earlier on another stream),
computing the PTS on the server-side would require unnecessary waiting.
2023-02-03 12:31:28 +01:00
..
data Add -s auto-completion for zsh 2022-10-12 13:24:43 +02:00
prebuilt-deps Upgrade FFmpeg (5.1.2) for Windows 64-bit 2022-12-22 12:33:08 +01:00
src Compute relative PTS on the client-side 2023-02-03 12:31:28 +01:00
tests Forward action button to device 2023-01-30 20:57:54 +01:00
meson.build Add random util 2023-01-27 19:26:19 +01:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Bump version to 1.25 2022-12-22 12:33:29 +01:00
scrcpy.1 Fix manpage formatting 2023-02-03 12:31:28 +01:00