This could be useful for testing and developing a workflow without running a WebRTC server which can introduce a bunch of friction especially in remote setups that require the use of TURN servers or opening up UDP ports.
A simple version of the script can wrap ffmpeg to:
- Convert video frames from the image2pipe muxer into numpy arrays.
- Convert numpy arrays into tensors.
- Use ComfyStreamClient to run the workflow on each tensor.
- Convert tensors into video frames with the rawvideo demuxer.
- Encode video frames into output video file.