1. 增加配置持久化

2. 完善细节
This commit is contained in:
sansen
2026-07-29 19:33:46 +08:00
parent 86532cc2e9
commit a53e205bfb
12 changed files with 721 additions and 215 deletions
+15 -9
View File
@@ -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.