mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 16:12:19 +00:00
Use FFMPEG settings that are recommended by pion, better performances, see #3
This commit is contained in:
parent
a8146e7cbb
commit
503649a6da
@ -46,9 +46,9 @@ func ingestFrom(inputChannel chan srt.Packet) {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
ffmpeg = exec.Command("ffmpeg", "-hide_banner", "-loglevel", "error", "-re", "-i", "pipe:0",
|
ffmpeg = exec.Command("ffmpeg", "-hide_banner", "-loglevel", "error", "-re", "-i", "pipe:0",
|
||||||
"-an", "-vcodec", "libvpx", //"-cpu-used", "5", "-deadline", "1", "-g", "10", "-error-resilient", "1", "-auto-alt-ref", "1",
|
"-an", "-vcodec", "libvpx", "-cpu-used", "5", "-deadline", "1", "-g", "10", "-error-resilient", "1", "-auto-alt-ref", "1",
|
||||||
"-f", "rtp", "rtp://127.0.0.1:5004",
|
"-f", "rtp", "rtp://127.0.0.1:5004",
|
||||||
"-vn", "-acodec", "libopus", //"-cpu-used", "5", "-deadline", "1", "-g", "10", "-error-resilient", "1", "-auto-alt-ref", "1",
|
"-vn", "-acodec", "libopus", "-cpu-used", "5", "-deadline", "1", "-g", "10", "-error-resilient", "1", "-auto-alt-ref", "1",
|
||||||
"-f", "rtp", "rtp://127.0.0.1:5005")
|
"-f", "rtp", "rtp://127.0.0.1:5005")
|
||||||
|
|
||||||
input, err := ffmpeg.StdinPipe()
|
input, err := ffmpeg.StdinPipe()
|
||||||
|
Loading…
Reference in New Issue
Block a user