Skip to content
Advertisement

Tag: opencv

Pipe raw OpenCV images to FFmpeg

Here’s a fairly straightforward example of reading off a web cam using OpenCV’s python bindings: Now I want to pipe the output to ffmpeg as in: $ python capture.py | ffmpeg -f image2pipe -pix_fmt bgr8 -i – -s 640×480 foo.avi Sadly, I can’t get the ffmpeg magic incantation quite right and it fails with libavutil 50.15. 1 / 50.15. 1

Advertisement