Romain Vimont

Results 1981 comments of Romain Vimont

It's your camera application, isn't it? Try another camera app (scrcpy could not capture the camera directly on Android < 12).

Looks like an encoder bug which does not handle properly the case where the display is off :man_shrugging:

> Some more detailed instructions as to where to put this code would be nice. https://github.com/Genymobile/scrcpy/blob/master/doc/windows.md#run > Also what is with such a gibberish name? Says rthfhgyhy567 😄

What if you use `--audio-codec=aac`? The timestamp issue is due to the behavior of the OPUS/Flac encoders on Android: - 245981281e99662aa77e53259a0864ead39ff438 - https://github.com/Genymobile/scrcpy/pull/5870#issuecomment-2759192831

`fixTimestamp()` is only called for the default opus and flac encoders.

Yes, the default OPUS and FLAC encoders rewrite the outout PTS to exactly match the number of samples (so the interval is perfect), which is not a correct behavior, because...

@huynhtanloc2612 Thanks, fixed.

We probably need to remove this flag for Android < 13 (according to c7b04a6b19a86b11b8c857a5fb775b0e16b50ebf): ```diff diff --git a/server/src/main/java/com/genymobile/scrcpy/video/NewDisplayCapture.java b/server/src/main/java/com/genymobile/scrcpy/video/NewDisplayCapture.java index 0622998ed..9440199ce 100644 --- a/server/src/main/java/com/genymobile/scrcpy/video/NewDisplayCapture.java +++ b/server/src/main/java/com/genymobile/scrcpy/video/NewDisplayCapture.java @@ -85,7 +85,6 @@...

@eiyooooo The flag exists, but apparently in Android 12, shell does not have permission to create a virtual display with this flag enabled.