All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 {

	protected static Logger logger = LoggerFactory.getLogger(WebMMuxer.class);
	
	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) {
		super(storageClient, vertx);
		extension = ".webm";
		format = "webm";
		SUPPORTED_CODECS = WEBM_SUPPORTED_CODECS;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy