diff --git a/app/scrcpy.1 b/app/scrcpy.1 index dec5896531..3c780a08bc 100644 --- a/app/scrcpy.1 +++ b/app/scrcpy.1 @@ -35,7 +35,7 @@ Default is 0 (no buffering). .BI "\-\-audio\-codec " name Select an audio codec (raw, opus or aac). -Default is opus. +Default is raw. .TP .BI "\-\-audio\-encoder " name diff --git a/app/src/cli.c b/app/src/cli.c index 195da15422..884f6ee0b8 100644 --- a/app/src/cli.c +++ b/app/src/cli.c @@ -133,7 +133,7 @@ static const struct sc_option options[] = { .longopt = "audio-codec", .argdesc = "name", .text = "Select an audio codec (raw, opus or aac).\n" - "Default is opus.", + "Default is raw.", }, { .longopt_id = OPT_AUDIO_CODEC_OPTIONS, diff --git a/app/src/options.c b/app/src/options.c index adc665c486..f2a7c4f52f 100644 --- a/app/src/options.c +++ b/app/src/options.c @@ -16,7 +16,7 @@ const struct scrcpy_options scrcpy_options_default = { #endif .log_level = SC_LOG_LEVEL_INFO, .video_codec = SC_CODEC_H264, - .audio_codec = SC_CODEC_OPUS, + .audio_codec = SC_CODEC_RAW, .record_format = SC_RECORD_FORMAT_AUTO, .keyboard_input_mode = SC_KEYBOARD_INPUT_MODE_INJECT, .mouse_input_mode = SC_MOUSE_INPUT_MODE_INJECT, diff --git a/app/src/server.c b/app/src/server.c index a26ae71de0..e931477156 100644 --- a/app/src/server.c +++ b/app/src/server.c @@ -238,7 +238,7 @@ execute_server(struct sc_server *server, ADD_PARAM("video_codec=%s", sc_server_get_codec_name(params->video_codec)); } - if (params->audio_codec != SC_CODEC_OPUS) { + if (params->audio_codec != SC_CODEC_RAW) { ADD_PARAM("audio_codec=%s", sc_server_get_codec_name(params->audio_codec)); } diff --git a/server/src/main/java/com/genymobile/scrcpy/Options.java b/server/src/main/java/com/genymobile/scrcpy/Options.java index b26f6a7b76..072cd4ae19 100644 --- a/server/src/main/java/com/genymobile/scrcpy/Options.java +++ b/server/src/main/java/com/genymobile/scrcpy/Options.java @@ -11,7 +11,7 @@ public class Options { private boolean audio = true; private int maxSize; private VideoCodec videoCodec = VideoCodec.H264; - private AudioCodec audioCodec = AudioCodec.OPUS; + private AudioCodec audioCodec = AudioCodec.RAW; private int videoBitRate = 8000000; private int audioBitRate = 196000; private int maxFps;