Update muxers documentation

Recording now supports formats other than mp4 and mkv.
This commit is contained in:
Romain Vimont 2023-11-14 09:08:24 +01:00
parent 5e59ed3135
commit e637feba51
5 changed files with 11 additions and 10 deletions

View File

@ -125,7 +125,7 @@ _scrcpy() {
return
;;
--record-format)
COMPREPLY=($(compgen -W 'mkv mp4' -- "$cur"))
COMPREPLY=($(compgen -W 'mp4 mkv m4a mka opus aac' -- "$cur"))
return
;;
--render-driver)

View File

@ -65,7 +65,7 @@ arguments=(
'--push-target=[Set the target directory for pushing files to the device by drag and drop]'
{-r,--record=}'[Record screen to file]:record file:_files'
'--raw-key-events[Inject key events for all input keys, and ignore text events]'
'--record-format=[Force recording format]:format:(mp4 mkv)'
'--record-format=[Force recording format]:format:(mp4 mkv m4a mka opus aac)'
'--render-driver=[Request SDL to use the given render driver]:driver name:(direct3d opengl opengles2 opengles metal software)'
'--require-audio=[Make scrcpy fail if audio is enabled but does not work]'
'--rotation=[Set the initial display rotation]:rotation values:(0 1 2 3)'

View File

@ -347,7 +347,7 @@ Record screen to
The format is determined by the
.B \-\-record\-format
option if set, or by the file extension (.mp4 or .mkv).
option if set, or by the file extension.
.TP
.B \-\-raw\-key\-events
@ -355,7 +355,7 @@ Inject key events for all input keys, and ignore text events.
.TP
.BI "\-\-record\-format " format
Force recording format (either mp4 or mkv).
Force recording format (mp4, mkv, m4a, mka, opus or aac).
.TP
.BI "\-\-render\-driver " name

View File

@ -583,7 +583,7 @@ static const struct sc_option options[] = {
.argdesc = "file.mp4",
.text = "Record screen to file.\n"
"The format is determined by the --record-format option if "
"set, or by the file extension (.mp4 or .mkv).",
"set, or by the file extension.",
},
{
.longopt_id = OPT_RAW_KEY_EVENTS,
@ -594,7 +594,7 @@ static const struct sc_option options[] = {
.longopt_id = OPT_RECORD_FORMAT,
.longopt = "record-format",
.argdesc = "format",
.text = "Force recording format (either mp4 or mkv).",
.text = "Force recording format (mp4, mkv, m4a, mka, opus or aac).",
},
{
.longopt_id = OPT_RENDER_DRIVER,

View File

@ -31,14 +31,15 @@ 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. Two formats (containers) are supported:
- Matroska (`.mkv`)
- MP4 (`.mp4`)
client side. Several formats (containers) are supported:
- MP4 (`.mp4`, `.m4a`, `.aac`)
- Matroska (`.mkv`, `.mka`)
- OPUS (`.opus`)
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 `.mkv` or `.mp4`):
needs not end with a known extension):
```
scrcpy --record=file --record-format=mkv