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
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to