scrcpy/doc/recording.md at master · Genymobile/scrcpy #977
Labels
Automation
Automate the things
CLI-UX
Command Line Interface user experience and best practices
DigitalWellbeing
Notes on living well in the digital era.
Git-Repo
Source code repository like gitlab or gh
Software2.0
Software development driven by AI and neural networks.
source-code
Code snippets
TIL
Short notes or tips on coding, linux, llms, ml, etc
Recording
To record video and audio streams while mirroring:
To record only the video:
To record only the audio:
Timestamps are captured on the device, so packet delay variation does not impact the recorded file, which is always clean (only if you use
--record
of course, not if you capture your scrcpy window and audio output on the computer).Format
The video and audio streams are encoded on the device, but are muxed on the client side. Several formats (containers) are supported:
.mp4
,.m4a
,.aac
).mkv
,.mka
).opus
).flac
).wav
)The container is automatically selected based on the filename.
It is also possible to explicitly select a container (in that case the filename needs not end with a known extension):
Rotation
The video can be recorded rotated. See video orientation.
No Playback
To disable playback and control while recording:
It is also possible to disable video and audio playback separately:
# Record both video and audio, but only play video scrcpy --record=file.mkv --no-audio-playback
To also disable the window:
scrcpy --no-playback --no-window --record=file.mp4 # interrupt recording with Ctrl+C
Time Limit
To limit the recording time:
scrcpy --record=file.mkv --time-limit=20 # in seconds
The
--time-limit
option is not limited to recording, it also impacts simple mirroring:Suggested labels
None
The text was updated successfully, but these errors were encountered: