Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion models/models.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package models

import "time"

type Ffmpeg struct {
FfmpegBinPath string
FfprobeBinPath string
Expand Down Expand Up @@ -38,8 +40,10 @@ type Streams struct {
TimeBase string `json:"time_base"`
DurationTs int `json:"duration_ts"`
Duration string `json:"duration"`
Disposition Disposition `json:"disposition"`
BitRate string `json:"bit_rate"`
Disposition Disposition `json:"disposition"`
SideDataList []SideData `json:"side_data_list"`
Tags *StreamTags `json:"tags"`
}

type Disposition struct {
Expand Down Expand Up @@ -68,6 +72,32 @@ type Format struct {
Tags Tags `json:"tags"`
}

type SideData struct {
SideDataType *string `json:"side_data_type"`
DisplayMatrix *string `json:"displaymatrix"`
Rotation *int `json:"rotation"`
MaxContent *int `json:"max_content"`
MaxAverage *int `json:"max_average"`
RedX *string `json:"red_x"`
RedY *string `json:"red_y"`
GreenX *string `json:"green_x"`
GreenY *string `json:"green_y"`
BlueX *string `json:"blue_x"`
BlueY *string `json:"blue_y"`
WhitePointX *string `json:"white_point_x"`
WhitePointY *string `json:"white_point_y"`
MinLuminance *string `json:"min_luminance"`
MaxLuminance *string `json:"max_luminance"`
}

type StreamTags struct {
CreationTime *time.Time `json:"creation_time"`
Language *string `json:"language"`
HandlerName *string `json:"handler_name"`
VendorID *string `json:"vendor_id"`
Encoder *string `json:"encoder"`
}

type Progress struct {
FramesProcessed string
CurrentTime string
Expand Down