I would like to stream frames from one Python script (A) to another (B) so that B only gets them as fast as A can produce them. Everything I've seen with ffmpeg takes an entire video, or streams from a camera. I guess what I'd like to do is treat a Python script like a camera that generates frames.
I've seen this: http://zulko.github.io/blog/2013/09/27/read-and-write-video-frames-in-python-using-ffmpeg/ but I don't want to send output to a video file, I want another script to read it. I also got a broken pipe error using that code, anyway.