io.antmedia.muxer.WebMMuxer Maven / Gradle / Ivy
package io.antmedia.muxer;
import static org.bytedeco.ffmpeg.global.avcodec.AV_CODEC_ID_AV1;
import static org.bytedeco.ffmpeg.global.avcodec.AV_CODEC_ID_OPUS;
import static org.bytedeco.ffmpeg.global.avcodec.AV_CODEC_ID_VORBIS;
import static org.bytedeco.ffmpeg.global.avcodec.AV_CODEC_ID_VP8;
import static org.bytedeco.ffmpeg.global.avcodec.AV_CODEC_ID_VP9;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.antmedia.storage.StorageClient;
import io.vertx.core.Vertx;
public class WebMMuxer extends RecordMuxer {
private static int[] WEBM_SUPPORTED_CODECS = {
AV_CODEC_ID_VP8 ,
AV_CODEC_ID_VP9 ,
AV_CODEC_ID_AV1 ,
AV_CODEC_ID_VORBIS ,
AV_CODEC_ID_OPUS
};
public WebMMuxer(StorageClient storageClient, Vertx vertx, String s3FolderPath) {
super(storageClient, vertx, s3FolderPath);
extension = ".webm";
format = "webm";
SUPPORTED_CODECS = WEBM_SUPPORTED_CODECS;
}
}