From 00e97730d5f32b9289a906c345c1f440b86e9b4a Mon Sep 17 00:00:00 2001 From: Adrian Shum Date: Sun, 23 Oct 2022 14:49:11 +0800 Subject: [PATCH] feat: seek() filter and ffmpeg.SeekPosition, ffmpeg.SeekDuration --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index e11d716..7292d66 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,9 @@ It results a complete black frame. This is where `seek(n)` comes handy. It seeks to the key frame before the 5 minutes elapsed time, then perform best frame selection starting from that point using root-mean-square error (RMSE). The result is a reasonable image that sits close to the specified time: +``` +http://localhost:8000/unsafe/200x0/filters:seek(5m)/http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 +``` ![seek 5m](https://raw.githubusercontent.com/cshum/imagorvideo/master/testdata/seek5m.jpg) ### Metadata