owncast/core/transcoder
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
..
codecs.go
fileWriterReceiverService.go
hlsFilesystemCleanup.go
hlsHandler.go
thumbnailGenerator.go
transcoder_nvenc_test.go
transcoder_omx_test.go
transcoder_vaapi_test.go
transcoder_x264_test.go
transcoder.go refactor: use io.Pipe and ffmpeg's stdin (#1148) 2021-07-03 12:28:25 -07:00
utils.go