473,799 Members | 2,900 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How To: Create a mpeg video from a sequence of JPGs

Hi guys,

I have a lot of JPGs and I need to write a c# code to generate a MPEG
file with those images.

I don't have to change compression of images.

This will be an automatic code that every day will starts .. so every
thing MUST BE without any human action.

Any sample code ?
plz help me :)

Jul 9 '06 #1
3 3286
Kladrian,

Take a look at the DirectShow SDK. It is an unmanaged COM framework
that is used for media encoding and decoding.

It should be noted that what you want to do is NOT a simple task and it
will require some work on your part.

Generally though, it involves creating the video at a certain framerate
(which should be consistent, meaning the images were taken at the same
interval).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Kladrian" <kl******@gmail .comwrote in message
news:11******** **************@ 75g2000cwc.goog legroups.com...
Hi guys,

I have a lot of JPGs and I need to write a c# code to generate a MPEG
file with those images.

I don't have to change compression of images.

This will be an automatic code that every day will starts .. so every
thing MUST BE without any human action.

Any sample code ?
plz help me :)

Jul 9 '06 #2

Nicholas Paldino [.NET/C# MVP] ha scritto:
Kladrian,

Take a look at the DirectShow SDK. It is an unmanaged COM framework
that is used for media encoding and decoding.

It should be noted that what you want to do is NOT a simple task and it
will require some work on your part.

Generally though, it involves creating the video at a certain framerate
(which should be consistent, meaning the images were taken at the same
interval).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Kladrian" <kl******@gmail .comwrote in message
news:11******** **************@ 75g2000cwc.goog legroups.com...
Hi guys,

I have a lot of JPGs and I need to write a c# code to generate a MPEG
file with those images.

I don't have to change compression of images.

This will be an automatic code that every day will starts .. so every
thing MUST BE without any human action.

Any sample code ?
plz help me :)
Thnx for the hint

I don't really care about frame rate ... I have an average of 3 images
per second but it's not really important.

Any start code sample :) ^^ ?

Jul 9 '06 #3
Have you looked at the Windows Media Encoder? It offers the option to combine
streams, jpegs, whatever, and you can choose the output.
Also, has COM Interface you can use from .NET

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Kladrian" wrote:
Hi guys,

I have a lot of JPGs and I need to write a c# code to generate a MPEG
file with those images.

I don't have to change compression of images.

This will be an automatic code that every day will starts .. so every
thing MUST BE without any human action.

Any sample code ?
plz help me :)

Jul 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
18908
by: Average_Joe | last post by:
Hello Java people, Been awhile since I've used Java, and when I did, it was pretty much XML stuff. Anyhow, I've got a client who needs to provide web viewers with both streaming (live) video as well as earlier recorded stuff. There are solutions for this, but they all seem to involve using a windows platform for performing conversion(s). (Either the cameras and
3
9168
by: Vroem | last post by:
I wanted to show an MPEG-4 video file on a web page. I'm talking about a real iso-compliant file (with the .mp4 extension.) I've been searching on how to use mime-types but it turns out that you need to place a realvideo or quicktime file that links to the mpeg-4 file. But that's not what I want. MPEG-4 is supposed to be the standard format for video on internet (and also for other kinds of multimedia). So I want my MPEG-4 file showing...
3
2503
by: Dean Arpajian | last post by:
Looking to find info/ libs on creating (small) video files. Basically what I'm looking for is a tutorial for constructing a short video... (nothing nasty: output from a transmission line simulation). I've been searching for a while now, and all I get is info for creation inside someone else's app. Rather useless for me. The sim needs to be web accessible. So I was thinking mpeg, quicktime, wmv, avi, etc.
7
7547
by: Kilian A. Foth | last post by:
I just found this amazing video puzzle game written with the pygame library, which promises to be infinite fun - but I can't get it to decode any video file I own, except the game's own example .mpg. All I have is lots and lots of useless .avi, .mp2, .wmv, and so on... Now, the pygame.Movie documentation says the Movie class can decode `MPEG movie files'. I know little about multimedia, but I thought divx/xvid video was a variant of...
2
12831
by: Brian Hampson | last post by:
I'd like to be able to create either AVI, MPG, or MOV from a series of JPGS (BMPS, etc). I have no clue about where to start, or what to do. I've tried Googling, but to no avail :( Please help. Thanks!
3
2905
by: DaveF | last post by:
I need to put it in a specific place. Here is the old code switch(CAMERA_TYPE_ID) { case "0": case "7": // this is an image
1
3804
by: solomon_13000 | last post by:
How do I actually convert different video format (avi,mpeg,mp4, etc) file to a flash format and view it as flash? People would upload their video files on my server and my server will do the conversion automatically to flash format. When people preview the video files, they would see them in flash. I am interested to use visual c++ to do the conversion. How is it done? Your help is kindly appreciated. Regards
0
1286
by: seb | last post by:
Hi, I need to convert each frame from a movie (mpeg for example) to an array (in order to do some computation) and then back to a video format mpeg for example. Do you know of any tools ? The equipment : ------------------------ I got myself an IP axis camera with wich I am playing to trying to do some shape recognition. My PC is running winXP SP2.
1
2020
by: daokfella | last post by:
Hi all, I want users of my website community to be able to upload video files. I'd like to automatically convert these on the server to flash video. I'd also like to get a screen shot from the video to show on my video links. Basically, just like YouTube. Can anybody point me to some resources to easily accomplish this? Thanks!
0
10485
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10252
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10231
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9073
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7565
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.