Create video from JPG?

  • Thread starter Thread starter Brian Hampson
  • Start date Start date
Hi,

A quick MSDN search points me to the Windows Media Encoder 9 Series SDK
where there's an article named "Using a File as a Source".
Here's a C# example from this article:

try
{
// Create a Windows Media Encoder object.
WMEncoder Encoder = new WMEncoder();

// Retrieve the source group collection.
IWMEncSourceGroupCollection SrcGrpColl = Encoder.SourceGroupCollection;

// Create a source group called SG_1.
IWMEncSourceGroup SrcGrp = SrcGrpColl.Add("SG_1");

// Create an audio and a video source object.
IWMEncSource SrcAud = SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_AUDIO);
IWMEncVideoSource SrcVid =
(IWMEncVideoSource)SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_VIDEO);

// Specify the path of the source file.
SrcAud.SetInput("C:\\audio.wav", "", "");
SrcVid.SetInput("C:\\video.avi", "", "");
}

catch (Exception e)
{
// TODO: Handle exceptions.
}
Well, it's about WAV files but I think the approach for JPEGs will be
similar.--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx
 
Thanks for teh link. I DID go looking through the API after you
pointed me there, but I can't find anything that would take an array
of Image (for example) and space it evenly in time. (For that matter,
I didn't find ANYTHING that would work from images, other than
streaming via HTML - yeach)

Anyone else? Is this even possible? I know you can do it with
Quicktime Pro (interactively), but there doesn't seem to be a
published API, that might allow that :(9

Dmitriy Lapshin said:
Hi,

A quick MSDN search points me to the Windows Media Encoder 9 Series SDK
where there's an article named "Using a File as a Source".
Here's a C# example from this article:

try
{
// Create a Windows Media Encoder object.
WMEncoder Encoder = new WMEncoder();

// Retrieve the source group collection.
IWMEncSourceGroupCollection SrcGrpColl = Encoder.SourceGroupCollection;

// Create a source group called SG_1.
IWMEncSourceGroup SrcGrp = SrcGrpColl.Add("SG_1");

// Create an audio and a video source object.
IWMEncSource SrcAud = SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_AUDIO);
IWMEncVideoSource SrcVid =
(IWMEncVideoSource)SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_VIDEO);

// Specify the path of the source file.
SrcAud.SetInput("C:\\audio.wav", "", "");
SrcVid.SetInput("C:\\video.avi", "", "");
}

catch (Exception e)
{
// TODO: Handle exceptions.
}
Well, it's about WAV files but I think the approach for JPEGs will be
similar.--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx
Brian Hampson said:
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!

Brian Hampson
blog: http://www.blogontheweb.com/dragonspeed
 
Back
Top