Click here to Skip to main content
12,699,308 members (33,417 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# WPF Video image
Hi people,
I want to create a video from images. I try to AviManager, but the video has huge size and video is not played in BsPlayer. It is played in GomPlayer but show everything in 1 second ( fps is selected as 25 and there is about 100 images). In Addition, there is no time video. So I try to find another way. I'm open to all suggestions.

Thanks advance for help.
Posted 8-Oct-12 23:47pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

ProgramFOX 11-Nov-12 11:48am
Yes, +5!
I did learn creating AVI files also with that article!
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

I found the following .NET project that generates a video from image files.
I hope that it helps
Generate Video from images
MahmutKoyuncu 10-Oct-12 8:37am
Thanks for response, but my images in memory not saved in disk. My project create pictures aboutvone hundred pictures or two hundred. Picture number is changeable and is related input parameters, so i dont want to save them in disk.
Fredy.Klakson 18-Oct-12 4:57am
The same principle applies. The difference is you have an extra steps of loading the images into memory.
When the images are in memory, you can order them as frames to create your video.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This overview[^] mentions the command
ffmpeg -f image2 -i image%d.jpg video.mpg to convert images to video. It will be customizable to use arbitrary codecs, convert frame sizes, set frame rates and so on.

You will have to provide the images stored in a filesystem and adequatly named (with consequtive numbers in the filename).

Ignore this answer if your images are in memory instead of saved to a disk.
MahmutKoyuncu 9-Oct-12 5:18am
This images are created by code, so they are in memory. But your answer realy nice. Thanks for response
Rate this: bad
Please Sign up or sign in to vote.

Solution 4


You can easy make it with DirectShow. Use Image source or Screen Capture source
as a base filter from my article:
Pure .NET DirectShow Filters in C#[^]
In there you need to change way of passing your images in a filter (even dinamically created). You can make filter for application only - see in there application examples with embedded filters. After you need to connect that filter to AVI Muxer and output from AVI Muxer to file writer.
You can set the compressor between your output filter and AVI muxer. There are many 3rd party compressors here is also one of mine:
H.264 CUDA Encoder DirectShow Filter in C#[^]
NOTE: To make realtime output see my notes in article:
DirectShow Virtual Video Capture Source Filter in C#[^]


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170118.1 | Last Updated 11 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100