A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Windows XP and video cards, drivers and similar
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to Programmatically Convert .JPEG Images to Video (.WMV) File?



 
 
Thread Tools Display Modes
  #1  
Old September 17th 05, 07:55 PM
TCook
external usenet poster
 
Posts: n/a
Default How to Programmatically Convert .JPEG Images to Video (.WMV) File?

Hello All,

First, I apologize for posting this to so many newsgroups. I just wasn't
sure which group would be the best place.

I know that Windows Movie Maker can be used to select a group of images and
convert it to a Windows Video (.WMV) file.

I was wondering if someone knows how or has a code snippet for performing
this task programmatically?

I wish to programmatically loop through a directory and convert all .jpeg
images into a singular Windows Video (.WMV) file. Although C# would be my
language of choice, any example would be very welcome.

Thanks & Regards,

TC


Ads
  #2  
Old September 17th 05, 10:29 PM
Alessandro Angeli [MVP::DigitalMedia]
external usenet poster
 
Posts: n/a
Default

"TCook" wrote:

I wish to programmatically loop through a directory and
convert all .jpeg images into a singular Windows Video
(.WMV) file. Although C# would be my language of choice,
any example would be very welcome.


To create a WMV you need to use the WindowsMediaFormat SDK.
Using the WMF SDK, you can push an uncompressed image at a
time through the writer object to produce the WMV. Reading
the images and uncompressing them from JPEG it's up to you.
Otherwise you could use DirectShow, which wraps the WMF
writer object. The DirctShow\PushSource sample the latest
Platform SDK will show you how to read a sequence of BMPs.
Modifying it to read and decompress JPEGs is still up to
you.

Doing this in C# is hard if not close to impossible.

All of this (reading JPEGs, creating WMVs, using PushSource,
using C#) has been covered many times in
microsoft.public.win32.programmer.directx.video (for
DirectShow) and microsoft.public.windowsmedia.sdk (for the
WMF SDK).


--
// Alessandro Angeli
// MVP :: DigitalMedia
// a dot angeli at psynet dot net


  #3  
Old September 18th 05, 09:43 PM
TCook
external usenet poster
 
Posts: n/a
Default

Thanks Alessandro.


"Alessandro Angeli [MVP:igitalMedia]" wrote in
message ...
"TCook" wrote:

I wish to programmatically loop through a directory and
convert all .jpeg images into a singular Windows Video
(.WMV) file. Although C# would be my language of choice,
any example would be very welcome.


To create a WMV you need to use the WindowsMediaFormat SDK. Using the WMF
SDK, you can push an uncompressed image at a time through the writer
object to produce the WMV. Reading the images and uncompressing them from
JPEG it's up to you. Otherwise you could use DirectShow, which wraps the
WMF writer object. The DirctShow\PushSource sample the latest Platform SDK
will show you how to read a sequence of BMPs. Modifying it to read and
decompress JPEGs is still up to you.

Doing this in C# is hard if not close to impossible.

All of this (reading JPEGs, creating WMVs, using PushSource, using C#) has
been covered many times in microsoft.public.win32.programmer.directx.video
(for DirectShow) and microsoft.public.windowsmedia.sdk (for the WMF SDK).


--
// Alessandro Angeli
// MVP :: DigitalMedia
// a dot angeli at psynet dot net




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Insufficient memory to convert to NTFS No Spam General XP issues or comments 2 February 1st 05 02:32 PM
Trying to convert to ntfs ghetto69 Security and Administration with Windows XP 2 January 4th 05 10:35 PM
CONVERT to NTFS with 2 partitions (C: and D:) Steve T. Performance and Maintainance of XP 3 September 24th 04 06:38 AM
Convert Fat 32 to NTFS fails to Convert Why? Barry (Mainmenu) General XP issues or comments 1 September 2nd 04 12:20 PM
Two pieces of spam this week!!! But still SPAM ALERT David Candy General XP issues or comments 159 July 30th 04 09:52 PM






All times are GMT +1. The time now is 06:10 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.