Skip to content

Commit

Permalink
Server: Fix some bitrates.
Browse files Browse the repository at this point in the history
  • Loading branch information
e3ndr committed Sep 25, 2023
1 parent 43bac20 commit ca38ff0
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public static List<String> a_getFF(AudioCodec codec) {
return Arrays.asList("-c:a", "copy");

case OPUS:
return Arrays.asList("-c:a", "libopus", "-b:a", "128k");
return Arrays.asList("-c:a", "libopus", "-b:a", "320k");

case AAC:
return Arrays.asList("-c:a", "aac", "-b:a", "320k");
return Arrays.asList("-c:a", "aac", "-ac", "2", "-b:a", "156k");

case MP3:
return Arrays.asList("-c:a", "mp3", "-b:a", "96k");
return Arrays.asList("-c:a", "mp3", "-ac", "2", "-b:a", "128k");
}
return null;
}
Expand Down Expand Up @@ -69,14 +69,14 @@ private static List<String> getH264Args(VideoCodec codec, VideoQuality quality,
case H264_BASELINE:
args.add("-profile:v");
args.add("baseline");
args.add("-level:v");
args.add("1.0");
// args.add("-level:v");
// args.add("1.0");
break;

case H264_HIGH:
args.add("-profile:v");
args.add("high");
args.add("-level:v");
args.add("-level");
args.add("5.0");
if (!enableCuda) {
args.add("-tune");
Expand Down

0 comments on commit ca38ff0

Please sign in to comment.