Files
YouTube-Manager/Manager.Data/Models/LibraryContext/MediaFormatEntity.cs
2025-08-16 16:46:56 +02:00

36 lines
1.0 KiB
C#

namespace Manager.Data.Models.LibraryContext;
public class MediaFormatEntity
{
public required string MediaId { get; set; }
public required string MediaPath { get; set; }
public VideoQuality VideoQuality { get; set; } = VideoQuality.None;
public bool IsAdaptive { get; set; }
public string? MimeType { get; set; }
public long Bitrate { get; set; }
public long AverageBitrate { get; set; }
public long LastModifiedUnixEpoch { get; set; }
public long ContentLengthBytes { get; set; }
public long ApproxDurationMs { get; set; }
public int Width { get; set; }
public int Height { get; set; }
public double Framerate { get; set; }
public string? QualityLabel { get; set; }
public int AudioChannels { get; set; }
public string? AudioSampleRate { get; set; }
public double LoudnessDb { get; set; }
}
public enum VideoQuality
{
P4320 = 4320,
P2160 = 2160,
P1440 = 1440,
P1080 = 1080,
P720 = 720,
P480 = 480,
P360 = 360,
P240 = 240,
P144 = 144,
None = 0
}