Andrew Gunnerson
6af4bd601f
Add support for high frame rate camera capture
...
Add --camera-high-speed to enable high frame rate camera capture. If
the option is enabled, then --camera-fps is mandatory.
PR #4213 <https://github.com/Genymobile/scrcpy/pull/4213 >
Co-authored-by: Romain Vimont <rom@rom1v.com>
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
10 months ago
Andrew Gunnerson
4722bff423
Add --camera-fps
...
Add a new option for specifying the camera frame rate.
By default, Android's default frame rate (30 fps) is used.
PR #4213 <https://github.com/Genymobile/scrcpy/pull/4213 >
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
10 months ago
Romain Vimont
dd36d6135f
Support camera size selection using -m/--camera-ar
...
In addition to --camera-size to specify an explicit size, make it
possible to select the camera size automatically, respecting the maximum
size (already used for display mirroring) and an aspect ratio.
For example, "scrcpy --video-source=camera" followed by:
- (no additional arguments)
: mirrors at the maximum size, any a-r
- -m1920
: only consider valid sizes having both dimensions not above 1920
- --camera-ar=4:3
: only consider valid sizes having an aspect ratio of 4:3 (+/- 10%)
- -m2048 --camera-ar=1.6
: only consider valid sizes having both dimensions not above 2048
and an aspect ratio of 1.6 (+/- 10%)
PR #4213 <https://github.com/Genymobile/scrcpy/pull/4213 >
Co-authored-by: Simon Chan <1330321+yume-chan@users.noreply.github.com>
10 months ago
Simon Chan
faebb7d70a
Add --camera-facing
...
Add an option to select the camera by its lens facing (front, back or
external).
PR #4213 <https://github.com/Genymobile/scrcpy/pull/4213 >
Co-authored-by: Romain Vimont <rom@rom1v.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
10 months ago
Simon Chan
bfeecc0131
Add camera mirroring
...
Add --video-source=camera, and related options:
- --camera-id=<id>: select the camera by its id (see --list-cameras);
- --camera-size=<width>x<height>: select the capture size.
Fixed #241 <https://github.com/Genymobile/scrcpy/issues/241 >
PR #4213 <https://github.com/Genymobile/scrcpy/pull/4213 >
Co-authored-by: Romain Vimont <rom@rom1v.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
10 months ago
Romain Vimont
f032262cd7
Add --list-camera-sizes
...
Add an option to list the device camera declared sizes.
PR #4213 <https://github.com/Genymobile/scrcpy/pull/4213 >
10 months ago
Simon Chan
cd63896d63
Add --list-cameras
...
Add an option to list the device cameras.
PR #4213 <https://github.com/Genymobile/scrcpy/pull/4213 >
Co-authored-by: Romain Vimont <rom@rom1v.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
10 months ago
Romain Vimont
23e116064d
Rename --display to --display-id
...
The option is named "display id" everywhere.
This will be consistent with --camera-id (there will be many camera
options, so an option --camera would be confusing).
PR #4213 <https://github.com/Genymobile/scrcpy/pull/4213 >
10 months ago
Romain Vimont
1c864a88eb
Use --pause-on-exit from launchers
...
The terminal opened by scrcpy-console (.bat or .desktop) must not close
if scrcpy terminates with an error, so that error messages can be read.
Refs #3817 <https://github.com/Genymobile/scrcpy/pull/3817 >
Refs #3822 <https://github.com/Genymobile/scrcpy/pull/3822 >
PR #4130 <https://github.com/Genymobile/scrcpy/pull/4130 >
11 months ago
Romain Vimont
1650b7c058
Add --pause-on-exit
...
Add an option to make scrcpy pause on exit.
Three behaviors are possible:
- always pause on exit:
--pause-on-exit
--pause-on-exit=true
- never pause on exit:
(no option)
--pause-on-exit=false
- pause when scrcpy returns with an error (a non-zero exit code):
--pause-on-exit=if-error
This is useful to prevent the terminal window from automatically
closing, so that error messages can be read.
Refs #3817 <https://github.com/Genymobile/scrcpy/pull/3817 >
Refs #3822 <https://github.com/Genymobile/scrcpy/pull/3822 >
PR #4130 <https://github.com/Genymobile/scrcpy/pull/4130 >
11 months ago
Romain Vimont
d3c2955fb9
Add --time-limit
...
Add an option to stop scrcpy automatically after a given delay.
PR #4052 <https://github.com/Genymobile/scrcpy/pull/4052 >
Fixes #3752 <https://github.com/Genymobile/scrcpy/issues/3752 >
1 year ago
Romain Vimont
a3cdf1a6b8
Add option to kill adb on close
...
Killing adb on close by default would be incorrect, since it would break
any other usage of adb in parallel.
It could be easily done manually by calling "adb kill-server" once
scrcpy terminates, but add an option --kill-adb-on-close for
convenience.
Fixes #205 <https://github.com/Genymobile/scrcpy/issues/205 >
Fixes #2580 <https://github.com/Genymobile/scrcpy/issues/2580 >
Fixes #4049 <https://github.com/Genymobile/scrcpy/issues/4049 >
1 year ago
Romain Vimont
b8d43866d2
Fix options alphabetical order
...
Commit fc52b24503
missed this one.
1 year ago
Romain Vimont
fc52b24503
Reorder options in alphabetical order
...
Fix the options order, using the short option as key first (if any) in
all cases for consistency.
1 year ago
Romain Vimont
ff5ffc892f
Add option to select audio source
...
Pass --audio-source=mic to capture the microphone instead of the device
audio output.
1 year ago
Romain Vimont
1efbfe1175
Add separate video and audio playback options
...
Add --no-video-playback and --no-audio-playback. The option
--no-playback is now an alias for both.
PR #4033 <https://github.com/Genymobile/scrcpy/pull/4033 >
1 year ago
Romain Vimont
a2c8910006
Rename --no-mirror to --no-playback
...
This option impacts video and audio _playback_. For example, if we use
V4L2, the device is still "mirrored" (via V4L2), even if playback is
disabled. Therefore, "playback" is more approriate than "mirror".
The initial option --no-display option was renamed to --no-mirror by
commit 6928acdeac
, but this has never been
released, so it is ok to rename it one more time.
Refs #3978 <https://github.com/Genymobile/scrcpy/pull/3978#issuecomment-1549420103 >
PR #4033 <https://github.com/Genymobile/scrcpy/pull/4033 >
1 year ago
Romain Vimont
8c650e53cd
Add --no-video
...
Similar to --no-audio, add --no-video to play audio only.
Fixes #3842 <https://github.com/Genymobile/scrcpy/issues/3842 >
PR #3978 <https://github.com/Genymobile/scrcpy/pull/3978 >
1 year ago
Romain Vimont
6928acdeac
Rename --no-display to --no-mirror
...
The option impacts both video and audio playback, so "no display" is not
an appropriate name.
PR #3978 <https://github.com/Genymobile/scrcpy/pull/3978 >
1 year ago
sixg0000d
53cb5635cf
Fix pause message
...
The pause terminates only once the Enter key is pressed, not any key.
PR #3826 <https://github.com/Genymobile/scrcpy/pull/3826 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
1 year ago
Romain Vimont
39544f34b4
Add --audio-output-buffer
...
On some systems, the SDL audio callback is not called frequently enough
(for example it requests 5ms of samples every 10ms), because the output
buffer is too small.
By default, we want to use a small value (5ms) to minimize latency and
buffer underrun, but if it does not work well, users need a way to
increase it.
Refs #3793 <https://github.com/Genymobile/scrcpy/issues/3793 >
2 years ago
Romain Vimont
4755b97908
Fix bash auto-completion handling
...
Options having an argument impossible to auto-complete must be handled
separately.
2 years ago
Romain Vimont
cba2501254
Add missing auto-completion for --audio-buffer
2 years ago
Bernard Cafarelli
d2b7315ba6
Fix linux desktop files validation
...
Follow quoting rules from:
<https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables >
PR #3817 <https://github.com/Genymobile/scrcpy/pull/3817 >
Fixes #3633 <https://github.com/Genymobile/scrcpy/issues/3633 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
2 years ago
Romain Vimont
d2952c7e93
Add --audio-codec=raw option
...
Add support for raw (PCM S16 LE) audio codec (a raw decoder is included
in FFmpeg).
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Romain Vimont
c1528cdca9
Add --require-audio
...
By default, scrcpy mirrors only the video when audio capture fails on
the device. Add an option to force scrcpy to fail if audio is enabled
but does not work.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Romain Vimont
b65301f672
Add --list-displays
...
Add an option to list the device displays properly.
2 years ago
Romain Vimont
9196dc1563
Add --list-encoders
...
Add an option to list the device encoders properly.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Romain Vimont
f9960e959f
Add --audio-encoder
...
Similar to --video-encoder, but for audio.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Romain Vimont
b03c864c70
Add --audio-codec-options
...
Similar to --video-codec-options, but for audio.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Romain Vimont
4601735e51
Add support for AAC audio codec
...
Add option --audio-codec=aac.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Romain Vimont
839b842aa7
Add --audio-codec
...
Introduce the selection mechanism. Alternative codecs will be added
later.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Romain Vimont
0870b8c8be
Add --audio-bit-rate
...
Add an option to configure the audio bit-rate.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Romain Vimont
e694619d53
Rename --encoder to --video-encoder
...
This prepares the introduction of --audio-encoder.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Romain Vimont
31555fa530
Rename --codec-options to --video-codec-options
...
This prepares the introduction of --audio-codec-options.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Romain Vimont
9087e85c3f
Rename --bit-rate to --video-bit-rate
...
This prepares the introduction of --audio-bit-rate.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Romain Vimont
cee40ca047
Rename --codec to --video-codec
...
This prepares the introduction of --audio-codec.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
2 years ago
Simon Chan
3cf03e4a4b
Add --no-audio option
...
Audio will be enabled by default (when supported). Add an option to
disable it.
PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757 >
Co-authored-by: Romain Vimont <rom@rom1v.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
2 years ago
Romain Vimont
fa99763668
Fix --encoder documentation
...
Mention that it depends on the codec provided by --codec (which is not
necessarily H264 anymore).
2 years ago
Romain Vimont
9f8e96e895
Fix --no-clipboard-autosync bash completion
...
Fix typo.
2 years ago
Romain Vimont
3d10fbd9b4
Fix --bit-rate option in bash completion script
...
The option is --bit-rate, not --bitrate.
2 years ago
Romain Vimont
3e3756a323
Add auto-completion for --codec option
...
Add missing command to bash and zsh completion scripts.
2 years ago
Anima C13
16e2c1ce26
Add -s auto-completion for zsh
...
Fixes #3522 <https://github.com/Genymobile/scrcpy/pull/3522 >
PR #3523 <https://github.com/Genymobile/scrcpy/pull/3523 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
2 years ago
Anima C13
1bfbadef96
Add -s auto-completion for bash
...
Fixes #3522 <https://github.com/Genymobile/scrcpy/pull/3522 >
PR #3523 <https://github.com/Genymobile/scrcpy/pull/3523 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
2 years ago
Romain Vimont
e5e210506f
Add scrcpy-console.desktop
...
Add a launcher which opens a terminal, and keep it open in case of
errors (so that the user has time to read error messages).
The behavior is the same as scrcpy-console.bat on Windows.
PR #3351 <https://github.com/Genymobile/scrcpy/pull/3351 >
2 years ago
Chih-Hsuan Yen
a2a22f497f
Use shell environment to execute launcher
...
Make Exec= compatible with $PATH configured in .bashrc or .zshrc…
PR #3351 <https://github.com/Genymobile/scrcpy/pull/3351 >
Refs #296 <https://github.com/Genymobile/scrcpy/pull/296#discussion_r224987002 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
2 years ago
Addison Snelling
51a1762cbd
Add desktop entry file for Linux app launchers
...
Refs <https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html >
PR #3351 <https://github.com/Genymobile/scrcpy/pull/3351 >
Replaces PR #296 <https://github.com/Genymobile/scrcpy/pull/296 >
Fixes #295 <https://github.com/Genymobile/scrcpy/issues/295 >
Fixes #748 <https://github.com/Genymobile/scrcpy/issues/748 >
Fixes #1636 <https://github.com/Genymobile/scrcpy/issues/1636 >
Co-authored-by: Chih-Hsuan Yen <yan12125@gmail.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
2 years ago
Romain Vimont
0fca2ad830
Add option to not power on on start
...
By default, on start, the device is powered on. To prevent this
behavior, add a new option --no-power-on.
Fixes #3148 <https://github.com/Genymobile/scrcpy/issues/3148 >
PR #3210 <https://github.com/Genymobile/scrcpy/pull/3210 >
2 years ago
Romain Vimont
3ce6f8ca91
Add Bash completion script
...
Fixes #2930 <https://github.com/Genymobile/scrcpy/issues/2930 >
Refs #3012 <https://github.com/Genymobile/scrcpy/pull/3012 >
3 years ago
hltdev8642
26953784d9
Add ZSH completion script
...
PR #3012 <https://github.com/Genymobile/scrcpy/pull/3012 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
3 years ago