Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow?
Go Back  Xtreme Visual Basic Talk > > > > Movie export with DirectX? DirectShow?


Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2008, 02:08 PM
DoughBoy DoughBoy is offline
Centurion
 
Join Date: Jun 2006
Posts: 196
Default Movie export with DirectX? DirectShow?


I've been having rotten luck in finding anything that explains if DirectX or DirectShow could export a series of images as a movie clip. Could anyone shed some light on this? If it is possible, could someone point me into a direction of where I could find some documentation explaining how to export a series of bitmaps as a movie clip?

Thanks very much to all for their help.
Reply With Quote
  #2  
Old 09-17-2008, 07:11 AM
darkforcesjedi's Avatar
darkforcesjediMovie export with DirectX? DirectShow? darkforcesjedi is offline
Trust me, I'm an

* Expert *
 
Join Date: Apr 2001
Location: In ur base, pwnin d00dz
Posts: 1,964
Default

DirectShow can quite literally do anything if you have the filters to do it. However, rather than trying to find an appropriate filter, I suggest you take a look at the Berkley MPEG Encoder. This is an executable, not a library. The source (gzip) is available here:
http://bmrc.berkeley.edu/ftp/pub/mul....5b-src.tar.gz

The download site is here, but they only have compiled binaries for *nix:
http://bmrc.berkeley.edu/frame/research/mpeg/

There's a version 1.5c floating around the internet somewhere, but either version you'll have to compile yourself.

This encoder will take sequentially numbered images and encode them into an MPEG video. I used it for a while when I was doing scientific simulations. I would output snapshots as JPEGs and then use the encoder to make a video.
__________________
To err is human; to debug, divine.
Reply With Quote
  #3  
Old 09-17-2008, 11:14 AM
DoughBoy DoughBoy is offline
Centurion
 
Join Date: Jun 2006
Posts: 196
Default

darkforcesjedi,

Thanks very much for your reply. Sounds like this Berkley MPEG Encoder is easy to use would be much appreciated when implemented into my application.

But I must admit, DirectShow has grabbed my current attention and I would like to work with this. Seeing your comment of "DirectShow can quite literally do anything if you have the filters to do it" has further pushed my eagerness to work with DirectShow. Have you had any experience with DirectShow? Can you point me into a direction of how/where I could get started? I've found sites referencing DirectShow.NET, but never came across anything saying "If you have an MPEG Filter you can ...".

For now I'm curious to learn more about DirectShow, if this turns out to be a dead end, then I'll take you up on your suggestion of the "Berkley MPEG Encorder". Which I thank you again for.

I look forward to hearing back from you.
Reply With Quote
  #4  
Old 09-17-2008, 01:55 PM
darkforcesjedi's Avatar
darkforcesjediMovie export with DirectX? DirectShow? darkforcesjedi is offline
Trust me, I'm an

* Expert *
 
Join Date: Apr 2001
Location: In ur base, pwnin d00dz
Posts: 1,964
Default

I'll briefly describe DirectShow here, but detailed information is available from MSDN:
http://msdn.microsoft.com/en-us/libr...23(VS.85).aspx

DirectShow is no longer part of DirectX by the way. It's part of the Windows SDK.

DS is an architecture for managing media. It works by assembling "Filters" into "Graphs". Each filter can have a number (zero or more) of "Input Pins" and "Output Pins". "Pins" are the interfaces between filters. The writer of a filter is free to use any method of communication between his pins and the pins on another filter assuming they both support that method of communication. Normally filters communicate using shared memory.

Filters are executable code (programs). For instance, there is a commonly used filter called "File Writer". It has 1 input pin and no ouput pins. It writes the data from its input pin to a file.

What you need for your project is a filter with no input pins and 1 output pin. This filter would need to be configured to read the files of interest and convert them to a stream compatible with a video compression filter. You could add audio by streaming it from another filter into a muxer (a muxer interleaves audio and video streams).

The problem here is you need the filter that reads image files from your hard drive. You'd need to write or find it before you could continue.

If you want to take a look at what goes on behind the scenes, download GraphEdit. It allows you to manually create graphs. I've used it to transcode videos in the past. You'll find that your computer probably has dozens or even hundreds of filters installed, so it's kind of hard to get into. DirectShow supports automatic rendering (graph building) though. Here's a schematic of a video transcode:
http://msdn.microsoft.com/en-us/libr...33(VS.85).aspx
__________________
To err is human; to debug, divine.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow? Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow?
 
Movie export with DirectX? DirectShow?
Movie export with DirectX? DirectShow?
 
-->