[ADD] New entities for library db

This commit is contained in:
max
2025-08-16 16:46:56 +02:00
parent 3c3f2db4e7
commit f9aaf4267e
9 changed files with 133 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
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
}