1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-29 22:41:06 +02:00

Make telnet output configurable

This commit is contained in:
Yohann D'ANELLO
2020-10-13 00:15:23 +02:00
parent e640450d98
commit 61ae490a5d
5 changed files with 75 additions and 17 deletions

View File

@ -3,6 +3,7 @@ package webrtc
import (
"bufio"
"fmt"
"gitlab.crans.org/nounous/ghostream/stream/telnet"
"io"
"log"
@ -53,7 +54,7 @@ func ingestFrom(inputChannel chan srt.Packet) {
"-f", "rtp", "rtp://127.0.0.1:5004",
"-vn", "-acodec", "libopus", "-cpu-used", "5", "-deadline", "1", "-qmin", "10", "-qmax", "42", "-error-resilient", "1", "-auto-alt-ref", "1",
"-f", "rtp", "rtp://127.0.0.1:5005",
"-an", "-f", "rawvideo", "-vf", "scale=32x18", "-pix_fmt", "gray", "pipe:1")
"-an", "-f", "rawvideo", "-vf", fmt.Sprintf("scale=%dx%d", telnet.Cfg.Width, telnet.Cfg.Height), "-pix_fmt", "gray", "pipe:1")
input, err := ffmpeg.StdinPipe()
if err != nil {