Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

 
Share this answer
 
Comments
Thomas Daniels 11-Nov-12 11:48am    
Yes, +5!
I did learn creating AVI files also with that article!
I found the following .NET project that generates a video from image files.
I hope that it helps
Generate Video from images
 
Share this answer
 
v2
Comments
Mahmut Koyuncu 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.
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.
 
Share this answer
 
Comments
Mahmut Koyuncu 9-Oct-12 5:18am    
This images are created by code, so they are in memory. But your answer realy nice. Thanks for response
Hello,

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#[^]

Regards,
Maxim.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900