diff options
| author | James Mills <james@mills.io> | 2022-08-01 03:22:17 +0000 |
|---|---|---|
| committer | James Mills <james@mills.io> | 2022-08-01 03:22:17 +0000 |
| commit | 35217febfc2c5d6a7e5d5d2b0b3c10a168fb2ed1 (patch) | |
| tree | a9e7276d1e607646da113a4bf52fbb1698e1818a /app | |
| parent | 3b7c29eb8abbc63eb817e5533e40adcc62c5e8da (diff) | |
Add support for multi-arch binary and docker image releases (#20)
Reviewed-on: https://git.mills.io/prologic/tube/pulls/20
Diffstat (limited to 'app')
| -rw-r--r-- | app/app.go | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -14,15 +14,15 @@ import ( "sort" "strings" + "git.mills.io/prologic/tube/importers" + "git.mills.io/prologic/tube/media" + "git.mills.io/prologic/tube/utils" rice "github.com/GeertJohan/go.rice" "github.com/dustin/go-humanize" "github.com/fsnotify/fsnotify" "github.com/gorilla/handlers" "github.com/gorilla/mux" shortuuid "github.com/lithammer/shortuuid/v3" - "git.mills.io/prologic/tube/importers" - "git.mills.io/prologic/tube/media" - "git.mills.io/prologic/tube/utils" log "github.com/sirupsen/logrus" ) @@ -298,11 +298,15 @@ func (a *App) uploadHandler(w http.ResponseWriter, r *http.Request) { if err := utils.RunCmd( a.Config.Thumbnailer.Timeout, - "mt", - "-b", - "-s", - "-n", "1", - tf.Name(), + "ffmpeg", + "-i", uf.Name(), + "-y", + "-vf", "thumbnail", + "-t", "3", + "-vframes", "1", + "-strict", "-2", + "-loglevel", "quiet", + thumbFn1, ); err != nil { err := fmt.Errorf("error generating thumbnail: %w", err) log.Error(err) |
