Pipe raw OpenCV images to FFmpeg
Pipe raw OpenCV images to FFmpeg Question: Here’s a fairly straightforward example of reading off a web cam using OpenCV’s python bindings: ”’capture.py”’ import cv, sys cap = cv.CaptureFromCAM(0) # 0 is for /dev/video0 while True : if not cv.GrabFrame(cap) : break frame = cv.RetrieveFrame(cap) sys.stdout.write( frame.tostring() ) Now I want to pipe the output …