Skip to content
Snippets Groups Projects
Commit 09a567b2 authored by Christian Pointner's avatar Christian Pointner
Browse files

don't resample in fetch-converter

parent 4f036d0a
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ func newFFmpegFetchConverter(job *Job) (c *ffmpegFetchConverter, err error) {
// c.cmd = exec.CommandContext(job.ctx, "ffmpeg", "-hide_banner", "-nostats", "-i", "-")
c.cmd = exec.CommandContext(job.ctx, "ffmpeg", "-nostats", "-y", "-i", "-")
c.cmd.Args = append(c.cmd.Args, "-map_metadata", "0", "-vn")
c.cmd.Args = append(c.cmd.Args, "-ar", "192k", "-codec:a", "pcm_s24le")
c.cmd.Args = append(c.cmd.Args, "-codec:a", "pcm_s24le")
c.cmd.Args = append(c.cmd.Args, "-f", "wav", filename)
// loudness normalization, see: http://k.ylo.ph/2016/04/04/loudnorm.html
c.cmd.Args = append(c.cmd.Args, "-map_metadata", "-1", "-vn")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment