owncast/core
Jannik 3f9f4a151c
refactor: use io.Pipe and ffmpeg's stdin (#1148)
This removes the usage of `syscall.Mkfifo` which was previously used and
won't work on Windows systems and opens the door for other processes on
the computer to interfere in the rtmp stream (dumping bad content in the
fifo, removing the file, blocking the file in offline status).
Instead, this patch introduces an `io.Pipe` which pipes the RTMP stream
to the ffmpeg command while staying in Owncast.

Further links:
* ffmpeg on using `pipe:0` as an input: https://ffmpeg.org/ffmpeg-protocols.html#pipe
2021-07-03 12:28:25 -07:00
..
chat
data Some linter cleanup 2021-06-29 10:21:00 -07:00
playlist
rtmp refactor: use io.Pipe and ffmpeg's stdin (#1148) 2021-07-03 12:28:25 -07:00
storageproviders fix: avoid duplicate cache-control header (#1048) 2021-05-23 13:35:05 -07:00
transcoder refactor: use io.Pipe and ffmpeg's stdin (#1148) 2021-07-03 12:28:25 -07:00
webhooks
chatListener.go
core.go Remove config file migrator (#1045) 2021-05-23 13:36:34 -07:00
stats.go Do not save invalid disconnect time 2021-06-29 11:38:13 -07:00
status.go
storage.go
streamState.go refactor: use io.Pipe and ffmpeg's stdin (#1148) 2021-07-03 12:28:25 -07:00