Re: Create video from JPG?
From: Dmitriy Lapshin [C# / .NET MVP] (x-code_at_no-spam-please.hotpop.com)
Date: 12/03/04
- Next message: Nay Myo Aung: "Possible TRY...CATCH...END TRY"
- Previous message: Ollie: "Re: I don't understand inheritance!"
- In reply to: Brian Hampson: "Create video from JPG?"
- Next in thread: Brian Hampson: "Re: Create video from JPG?"
- Reply: Brian Hampson: "Re: Create video from JPG?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Dec 2004 11:42:23 +0200
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" <brian.hampson@gmail.com> wrote in message
news:6e1f263f.0412021132.14bd1698@posting.google.com...
> 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
- Next message: Nay Myo Aung: "Possible TRY...CATCH...END TRY"
- Previous message: Ollie: "Re: I don't understand inheritance!"
- In reply to: Brian Hampson: "Create video from JPG?"
- Next in thread: Brian Hampson: "Re: Create video from JPG?"
- Reply: Brian Hampson: "Re: Create video from JPG?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|