1. 增加配置持久化
2. 完善细节
This commit is contained in:
+15
-9
@@ -6,17 +6,23 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// StreamTags holds tag metadata from ffprobe's nested JSON output.
|
||||
type StreamTags struct {
|
||||
Language string `json:"language"`
|
||||
Title string `json:"title"`
|
||||
}
|
||||
|
||||
// StreamInfo holds information about a single stream.
|
||||
type StreamInfo struct {
|
||||
Index int `json:"index"`
|
||||
CodecType string `json:"codec_type"`
|
||||
CodecName string `json:"codec_name"`
|
||||
Width int `json:"width,omitempty"`
|
||||
Height int `json:"height,omitempty"`
|
||||
Duration string `json:"duration,omitempty"`
|
||||
BitRate string `json:"bit_rate,omitempty"`
|
||||
FPS string `json:"r_frame_rate,omitempty"`
|
||||
Language string `json:"tags>language,omitempty"`
|
||||
Index int `json:"index"`
|
||||
CodecType string `json:"codec_type"`
|
||||
CodecName string `json:"codec_name"`
|
||||
Width int `json:"width,omitempty"`
|
||||
Height int `json:"height,omitempty"`
|
||||
Duration string `json:"duration,omitempty"`
|
||||
BitRate string `json:"bit_rate,omitempty"`
|
||||
FPS string `json:"r_frame_rate,omitempty"`
|
||||
Tags StreamTags `json:"tags"`
|
||||
}
|
||||
|
||||
// FormatInfo holds container format information.
|
||||
|
||||
Reference in New Issue
Block a user