openvidu-test-e2e: add -crf flags to video encodings with ffmpeg

master
pabloFuente 2025-02-06 23:16:36 +01:00
parent 9f9eda5ce4
commit 88214676a8
1 changed files with 3 additions and 3 deletions

View File

@ -63,9 +63,9 @@ public class OpenViduTestE2e {
// 2. Any extra flags needed for that codec to work // 2. Any extra flags needed for that codec to work
final protected static Map<String, Pair<String, ?>> FFMPEG_VIDEO_CODEC_NAMES = new HashMap<>() { final protected static Map<String, Pair<String, ?>> FFMPEG_VIDEO_CODEC_NAMES = new HashMap<>() {
{ {
put("H264", Pair.of("libx264", "")); put("H264", Pair.of("libx264", "-crf 40"));
put("VP8", Pair.of("libvpx", "")); put("VP8", Pair.of("libvpx", "-crf 40"));
put("VP9", Pair.of("libvpx-vp9", "")); put("VP9", Pair.of("libvpx-vp9", "-crf 40"));
put("MPEG-4", Pair.of("mpeg4", "")); put("MPEG-4", Pair.of("mpeg4", ""));
put("M-JPEG", Pair.of("mjpeg", "-force_duplicated_matrix:v 1 -huffman:v 0")); put("M-JPEG", Pair.of("mjpeg", "-force_duplicated_matrix:v 1 -huffman:v 0"));
// put("AV1", Pair.of("libaom-av1", "")); // NOT SUPPORTED BY THE RTSP SERVER // put("AV1", Pair.of("libaom-av1", "")); // NOT SUPPORTED BY THE RTSP SERVER