Author |
Topic  |
|
MattOV

Australia
17 Posts |
Posted - May 09 2012 : 21:25:41
|
Hi Fabrizio,
I've been working on a DirectShow video capture application using IEvolution and am currently creating the output AVI using:
Dim result As HiComponents.IEvolution.IEImage.CreateAVIFileResult
result = (IeViewer1.Image.CreateAVIFile("Output12.avi", 25, "dmb1"))
I am using the Morgan MJEG codec to write the AVI file (available from http://www.morgan-multimedia.com/morgan/php/products.php?sProductId=4&sProductSub=info ). I want to be able to access the Codec property pages for the codec that control the output parameters for the AVI (the Morgan MJPEG codec in this case), like I can for the DirectShow filters. Is this possible?
thanks
matt |
|
fab
   
1310 Posts |
Posted - May 10 2012 : 08:04:42
|
Hi Matt, there is an unique way to show codec properties: set codec to an empty string. For example:
IeViewer1.Image.CreateAVIFile("Output12.avi", 25, "")
Selecting a codec, the "Configure" button should be enabled. Unfortunately it shows also the codec selection dialog. |
 |
|
MattOV

Australia
17 Posts |
|
fab
   
1310 Posts |
Posted - May 14 2012 : 01:59:28
|
CreateAVIFile doesn't use DirectShow, but the old api Video for Windows (VfW), so DirectShow property sheets aren't available. |
 |
|
MattOV

Australia
17 Posts |
Posted - May 14 2012 : 02:14:43
|
Thanks Fabrizio,
Can I capture video using Direct Show and then write frames to an AVI using direct show?
thanks
matt |
 |
|
fab
   
1310 Posts |
Posted - May 14 2012 : 02:39:12
|
Yes, you can. Please look at directshow samples. Anyway AVI writing is limited by VfW interface. |
 |
|
MattOV

Australia
17 Posts |
Posted - May 14 2012 : 20:58:17
|
Can you point me to which DirectShow sample? All I can see is the sample that calls the SaveToAVI method that I am currently using.
Much appreciated...matt |
 |
|
fab
   
1310 Posts |
Posted - May 14 2012 : 22:59:56
|
VideoCapture\DirectShow4 - captures using directshow and save back using CreateAVIFile/SaveToAVI
VideoCapture\DirectShow1 - a bit more complex, but allows to specify a directshow filter on the output file. Just select webcam as input, and a file name as output (and a codec). |
 |
|
MattOV

Australia
17 Posts |
Posted - May 15 2012 : 00:18:00
|
Thanks Fabrizio.
I'll try to transfer that approach to my .Net application and see how I go. It makes sense so shouldn't be a problem. Appreciate the help. |
 |
|
|
Topic  |
|