mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 15:04:50 +02:00
Explicitly remove audio/subtitle and data streams when generating previews via ffmpeg
This commit is contained in:
@@ -35,7 +35,7 @@ var (
|
|||||||
|
|
||||||
func ffmpeg_thumbnail_cmd(path, outpath string) *exec.Cmd {
|
func ffmpeg_thumbnail_cmd(path, outpath string) *exec.Cmd {
|
||||||
return exec.Command(
|
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),
|
"-vf", fmt.Sprintf("fps=%d,scale=%d:-1:flags=lanczos", video_fps, video_width),
|
||||||
"-c:v", "libwebp", "-lossless", "0", "-compression_level", "0", "-q:v",
|
"-c:v", "libwebp", "-lossless", "0", "-compression_level", "0", "-q:v",
|
||||||
fmt.Sprintf("%d", video_encoding_quality), "-loop", "0", "-f", "webp", outpath,
|
fmt.Sprintf("%d", video_encoding_quality), "-loop", "0", "-f", "webp", outpath,
|
||||||
|
|||||||
Reference in New Issue
Block a user