2 Feb
2018
2 Feb
'18
12:32 a.m.
Hey. Im trying to build a video frame by frame by passing frames to FFmpeg via a pipe (in this case an anonymous pipe).
I did something similar in C++ using Qt. I simply wrote raw image data to stdout using fwrite like: fwrite((unsigned char *)sharedMemory.constData()+16, sharedMemory.size()-16, 1, stdout); and then when I am done writing frames, exit. And here is my command (shm is my c++ prog that writes the data using fwrite): shm 2> error.fil | ffmpeg -f rawvideo -pixel_format bgra -video_size 1920x1080 -framerate 24 -i - -vcodec utvideo out.avi Hope that helps. Josh