I am trying to write a processed mat to STDOUT so that I can pipe it into ffmpeg, but I can't understand what the difference is exactly between
imencode and imread.
According to the opencv documentation
imencode : Encodes an image into a memory buffer.
imread : Loads an image from a file.
Isn't imread loading image data into a memory buffer as well? Can an opencv window be piped to another application?
Instead of using raspvid I would like to pipe ffmpeg my program's output, which would be the window that displays the processed window.
http://www.valmueller.net/stream-video-with-raspberry-pi-to-youtube/
imreadandimencodeis that the first is for input (encoded image, in this case in a file, read into a cv::Mat) and the second for output (cv::Mat written as an encoded image to a memory buffer). What exactly do you mean by "window be piped to another application"? - Dan MaĊĦek