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 Codec selection (#892) 2021-04-15 13:55:51 -07:00
fileWriterReceiverService.go Codec selection (#892) 2021-04-15 13:55:51 -07:00
hlsFilesystemCleanup.go Some linter cleanup 2021-06-29 10:21:00 -07:00
hlsHandler.go 0.0.6 -> Master (#731) 2021-02-18 23:05:52 -08:00
thumbnailGenerator.go 0.0.6 -> Master (#731) 2021-02-18 23:05:52 -08:00
transcoder_nvenc_test.go Fix tests 2021-05-23 14:27:35 -07:00
transcoder_omx_test.go Fix tests 2021-05-23 14:27:35 -07:00
transcoder_vaapi_test.go Fix tests 2021-05-23 14:27:35 -07:00
transcoder_x264_test.go Fix tests 2021-05-23 14:27:35 -07:00
transcoder.go refactor: use io.Pipe and ffmpeg's stdin (#1148) 2021-07-03 12:28:25 -07:00
utils.go Ignore warning about hls segment length 2021-04-24 14:00:35 -07:00