Skip to content

Commit

Permalink
use h265
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman SHamagin committed Aug 12, 2023
1 parent d278ab9 commit 4de1825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (c *Config) m3u8ReverseProxy(ctx *gin.Context) {
outputFile := dir + "/" + newName

// Сжатие файла с помощью ffmpeg
cmd := exec.Command("ffmpeg", "-i", filepath, "-vf", "scale=720:480", "-c:v", "libx265", "-b:v", "600k", "-b:a", "128k", "-preset", "medium", outputFile)
cmd := exec.Command("ffmpeg", "-i", filepath, "-vf", "scale=720:480", "-c:v", "libx265", "-b:v", "600k", "-b:a", "128k", "-preset", "fast", outputFile)
err = cmd.Run()
if err != nil {
log.Fatalf("Ошибка при сжатии файла: %v", err)
Expand Down

0 comments on commit 4de1825

Please sign in to comment.