on-demand transcoding with concurrency limit
This commit is contained in:
19
models.go
19
models.go
@@ -12,25 +12,6 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type Transcode struct {
|
||||
gorm.Model
|
||||
Status string // "pending", "running", "failed"
|
||||
SrcID uint // Video.ID or Audio.ID of the source file
|
||||
OriginalID uint // Original.ID
|
||||
SrcKind string // "video", "audio"
|
||||
DstKind string // "video", "audio"
|
||||
TimeSubmit time.Time
|
||||
TimeStart time.Time
|
||||
|
||||
// video fields
|
||||
Height uint // target height
|
||||
Width uint // target width
|
||||
FPS float64 // target FPS
|
||||
|
||||
// audio & video fields
|
||||
Rate uint
|
||||
}
|
||||
|
||||
type User struct {
|
||||
gorm.Model
|
||||
Username string `gorm:"unique"`
|
||||
|
Reference in New Issue
Block a user