feat(imagvideo): max_frames(n) filter
* feat: ffmpeg max_frames option in process_frames * test: update golden files
This commit is contained in:
parent
f1b58fd8da
commit
2ce9e97d3c
25 changed files with 36 additions and 17 deletions
|
|
@ -124,8 +124,9 @@ func (p *Processor) Process(ctx context.Context, in *imagor.Blob, params imagorp
|
|||
bands = 4
|
||||
}
|
||||
}
|
||||
case "process_frames":
|
||||
if err = av.ProcessFrames(); err != nil {
|
||||
case "max_frames":
|
||||
n, _ := strconv.Atoi(filter.Args)
|
||||
if err = av.ProcessFrames(n); err != nil {
|
||||
return
|
||||
}
|
||||
case "frame":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue