feat: ffmpeg max_frames option in process_frames
This commit is contained in:
parent
2ce9e97d3c
commit
4fe4a1561a
1 changed files with 5 additions and 5 deletions
10
processor.go
10
processor.go
|
|
@ -124,16 +124,16 @@ func (p *Processor) Process(ctx context.Context, in *imagor.Blob, params imagorp
|
|||
bands = 4
|
||||
}
|
||||
}
|
||||
case "max_frames":
|
||||
n, _ := strconv.Atoi(filter.Args)
|
||||
if err = av.ProcessFrames(n); err != nil {
|
||||
return
|
||||
}
|
||||
case "frame":
|
||||
n, _ := strconv.Atoi(filter.Args)
|
||||
if err = av.SelectFrame(n); err != nil {
|
||||
return
|
||||
}
|
||||
case "max_frames":
|
||||
n, _ := strconv.Atoi(filter.Args)
|
||||
if err = av.ProcessFrames(n); err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
meta := av.Metadata()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue