From 4dbdcc4b5549d90311348075bc8d68f8a8d17c10 Mon Sep 17 00:00:00 2001 From: Henry Clout Date: Tue, 10 Dec 2024 09:30:46 +0000 Subject: [PATCH] Added reading of color_transfer & color_primaries props Also: - small doc tidy --- probedata.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/probedata.go b/probedata.go index 9c9fed2..68998a9 100644 --- a/probedata.go +++ b/probedata.go @@ -80,6 +80,8 @@ type Stream struct { Level int `json:"level,omitempty"` ColorRange string `json:"color_range,omitempty"` ColorSpace string `json:"color_space,omitempty"` + ColorTransfer string `json:"color_transfer,omitempty"` + ColorPrimaries string `json:"color_primaries,omitempty"` SampleFmt string `json:"sample_fmt,omitempty"` SampleRate string `json:"sample_rate,omitempty"` Channels int `json:"channels,omitempty"` @@ -122,7 +124,7 @@ func (c *Chapter) EndTime() time.Duration { return time.Duration(c.EndTimeSeconds * float64(time.Second)) } -// Name returns the value of the "title" tag of the chapter +// Title returns the value of the "title" tag of the chapter func (c *Chapter) Title() string { title, _ := c.TagList.GetString("title") return title