Explicitly remove audio/subtitle and data streams when generating previews via ffmpeg
This commit is contained in:
parent
ed3743982d
commit
4e2aa7d151
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ var (
|
|||
|
||||
func ffmpeg_thumbnail_cmd(path, outpath string) *exec.Cmd {
|
||||
return exec.Command(
|
||||
"ffmpeg", "-loglevel", "fatal", "-y", "-i", path, "-t", fmt.Sprintf("%f", video_duration),
|
||||
"ffmpeg", "-loglevel", "fatal", "-y", "-an", "-sn", "-dn", "-i", path, "-t", fmt.Sprintf("%f", video_duration),
|
||||
"-vf", fmt.Sprintf("fps=%d,scale=%d:-1:flags=lanczos", video_fps, video_width),
|
||||
"-c:v", "libwebp", "-lossless", "0", "-compression_level", "0", "-q:v",
|
||||
fmt.Sprintf("%d", video_encoding_quality), "-loop", "0", "-f", "webp", outpath,
|
||||
|
|
|
|||
Loading…
Reference in a new issue