[FFmpeg-user] Create video frame by frame using pipes - Can't get FFmpeg to finish up
jnfo-c at grauman.com
Fri Feb 2 02:32:25 EET 2018
> 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
shm 2> error.fil | ffmpeg -f rawvideo -pixel_format bgra -video_size 1920x1080 -framerate 24 -i - -vcodec utvideo out.avi
Hope that helps.
More information about the ffmpeg-user