From 4d1dff60c7010169dd258413f362941878e330f7 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 10 Oct 2020 17:05:36 +0200 Subject: [PATCH] -crf is better that -quality good --- stream/webrtc/ingest.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stream/webrtc/ingest.go b/stream/webrtc/ingest.go index 081a3d8..144a677 100644 --- a/stream/webrtc/ingest.go +++ b/stream/webrtc/ingest.go @@ -45,9 +45,8 @@ func ingestFrom(inputChannel chan srt.Packet) { } }() - // TODO -quality good is implicit and not adapted ffmpeg = exec.Command("ffmpeg", "-hide_banner", "-loglevel", "error", "-re", "-i", "pipe:0", - "-an", "-vcodec", "libvpx", "-quality", "good", "-cpu-used", "5", "-b:v", "2000k", "-maxrate", "2000k", "-bufsize", "4000k", // TODO Change bitrate when changing quality + "-an", "-vcodec", "libvpx", "-crf", "10", "-cpu-used", "5", "-b:v", "6000k", "-maxrate", "8000k", "-bufsize", "12000k", // TODO Change bitrate when changing quality "-qmin", "10", "-qmax", "42", "-threads", "4", "-deadline", "1", "-error-resilient", "1", "-auto-alt-ref", "1", "-f", "rtp", "rtp://127.0.0.1:5004",