SHA256
30 lines
949 B
C#
30 lines
949 B
C#
using System.Collections.Generic;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using FFmpeg.AutoGen;
|
|
|
|
namespace ADOFAIRenderer.Util.FFmpeg
|
|
{
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
|
public enum Codec
|
|
{
|
|
H264, H265, VP9, AV1, VVC
|
|
}
|
|
|
|
internal static class CodecUtil
|
|
{
|
|
public static readonly Dictionary<Codec, AVCodecID> AudioCodecMatch = new()
|
|
{
|
|
[Codec.H264] = AVCodecID.AV_CODEC_ID_AAC,
|
|
[Codec.H265] = AVCodecID.AV_CODEC_ID_AAC,
|
|
[Codec.VP9] = AVCodecID.AV_CODEC_ID_OPUS,
|
|
[Codec.AV1] = AVCodecID.AV_CODEC_ID_OPUS,
|
|
[Codec.VVC] = AVCodecID.AV_CODEC_ID_OPUS
|
|
};
|
|
|
|
public static readonly Dictionary<AVCodecID, List<int>> AvailableSampleRate = new()
|
|
{
|
|
[AVCodecID.AV_CODEC_ID_AAC] = new List<int> { 44100, 48000, 96000 },
|
|
[AVCodecID.AV_CODEC_ID_OPUS] = new List<int> { 48000 }
|
|
};
|
|
}
|
|
} |