Skip to content

Commit

Permalink
use CRF 20 instead of bitrate
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikvedvik committed Oct 20, 2023
1 parent 94a92fa commit 57fd3e9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions services/transcode/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@ func VideoH264(input common.VideoInput, cb ffmpeg.ProgressCallback) (*common.Vid
}

params = append(params,
"-b:v", input.Bitrate,
"-maxrate", input.Bitrate,
"-crf", "20",
//"-b:v", input.Bitrate,
//"-maxrate", input.Bitrate,
)

if input.BufferSize != "" {
params = append(params,
"-bufsize", input.BufferSize,
)
}
//if input.BufferSize != "" {
// params = append(params,
// "-bufsize", input.BufferSize,
// )
//}

var filterComplex string

Expand Down

0 comments on commit 57fd3e9

Please sign in to comment.