增加色域识别
This commit is contained in:
parent
c2d7fb9900
commit
f064d75e5d
|
@ -25,6 +25,8 @@ namespace N_m3u8DL_RE.Common.Entity
|
|||
public string? Channels { get; set; }
|
||||
public string? Extension { get; set; }
|
||||
|
||||
//补充信息-色域
|
||||
public string? VideoRange { get; set; }
|
||||
|
||||
//外部轨道GroupId (后续寻找对应轨道信息)
|
||||
public string? AudioId { get; set; }
|
||||
|
@ -58,7 +60,7 @@ namespace N_m3u8DL_RE.Common.Entity
|
|||
else
|
||||
{
|
||||
prefixStr = $"[aqua]Vid[/] {encStr}";
|
||||
var d = $"{Resolution} | {Bandwidth / 1000} Kbps | {GroupId} | {FrameRate} | {Codecs}";
|
||||
var d = $"{Resolution} | {Bandwidth / 1000} Kbps | {GroupId} | {FrameRate} | {Codecs} | {VideoRange}";
|
||||
returnStr = d.EscapeMarkup();
|
||||
}
|
||||
|
||||
|
@ -101,7 +103,7 @@ namespace N_m3u8DL_RE.Common.Entity
|
|||
else
|
||||
{
|
||||
prefixStr = $"[aqua]Vid[/] {encStr}";
|
||||
var d = $"{Resolution} | {Bandwidth / 1000} Kbps | {GroupId} | {FrameRate} | {Codecs} | {segmentsCountStr}";
|
||||
var d = $"{Resolution} | {Bandwidth / 1000} Kbps | {GroupId} | {FrameRate} | {Codecs} | {VideoRange} | {segmentsCountStr}";
|
||||
returnStr = d.EscapeMarkup();
|
||||
}
|
||||
|
||||
|
|
|
@ -125,6 +125,16 @@ namespace N_m3u8DL_RE.Parser.Extractor
|
|||
if (!string.IsNullOrEmpty(subtitleId))
|
||||
streamSpec.SubtitleId = subtitleId;
|
||||
|
||||
var videoRange = ParserUtil.GetAttribute(line, "VIDEO-RANGE");
|
||||
if (!string.IsNullOrEmpty(videoRange))
|
||||
streamSpec.VideoRange = videoRange;
|
||||
|
||||
//清除多余的编码信息 dvh1.05.06,ec-3 => dvh1.05.06
|
||||
if (!string.IsNullOrEmpty(streamSpec.Codecs) && !string.IsNullOrEmpty(streamSpec.AudioId))
|
||||
{
|
||||
streamSpec.Codecs = streamSpec.Codecs.Split(',')[0];
|
||||
}
|
||||
|
||||
expectPlaylist = true;
|
||||
}
|
||||
else if (line.StartsWith(HLSTags.ext_x_media))
|
||||
|
|
Loading…
Reference in New Issue