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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
"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
|
|||
|
|||
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 | |
|
|
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 |