Sagar
Sagar

Reputation: 65

generate video from images without storing on disk ffmpeg .net

I want to generate video file from images(memory stream bitmap or image object) without storing on disk with ffmpeg .net. I found a link which is for python,but i don't know about python. Can you "stream" images to ffmpeg to construct a video, instead of saving them to disk?

Upvotes: 0

Views: 1440

Answers (1)

George Y.
George Y.

Reputation: 11799

Not sure what interface to FFmpeg you're using (not familiar with C# interface), but the FFmpeg video encoding API expects the encoded frames from memory, not from disk. So when you call avcodec_encode_video2 you pass the image in memory, not the disk file.

Upvotes: 0

Related Questions