I'm currently trying to demux an mpegts stream received through https://github.com/russelltg/srt-rs to mux it as a DASH and HLS livestream, all using ac_ffmpeg.
However, ac_ffmpeg expects the Read trait to be implemented for input, which I have tried to somewhat mimick:
(duplicate of https://github.com/russelltg/srt-rs/issues/124 in case this is more related to ffmpeg than SRT)
I'm currently trying to demux an mpegts stream received through https://github.com/russelltg/srt-rs to mux it as a DASH and HLS livestream, all using
ac_ffmpeg
. However,ac_ffmpeg
expects theRead
trait to be implemented for input, which I have tried to somewhat mimick:The full code can be found here: https://gist.github.com/niklaskorz/0e623c667b76dc30fa872282331033e4
Unfortunately, this results in lots of error messages on ffmpeg's side:
Is there anything wrong with my approach of using channels and buffering?