ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 [IEvolution] Access to Codec Property pages
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

MattOV

Australia
17 Posts

Posted - May 09 2012 :  21:25:41  Show Profile  Reply
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  Show Profile  Reply
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.
Go to Top of Page

MattOV

Australia
17 Posts

Posted - May 13 2012 :  22:22:22  Show Profile  Reply
Thanks for the feedback Fabrizio

I can access the Codec settings this way and I was probably not clear as I really want to get access to the DirectShow compressor settings (see this page http://www.morgan-multimedia.com/morgan/php/products.php?sProductId=4&sProductSub=screenshots ) to control the output AVI file properties. Is this possible?

thanks again
matt
Go to Top of Page

fab

1310 Posts

Posted - May 14 2012 :  01:59:28  Show Profile  Reply
CreateAVIFile doesn't use DirectShow, but the old api Video for Windows (VfW), so DirectShow property sheets aren't available.
Go to Top of Page

MattOV

Australia
17 Posts

Posted - May 14 2012 :  02:14:43  Show Profile  Reply
Thanks Fabrizio,

Can I capture video using Direct Show and then write frames to an AVI using direct show?

thanks

matt
Go to Top of Page

fab

1310 Posts

Posted - May 14 2012 :  02:39:12  Show Profile  Reply
Yes, you can. Please look at directshow samples.
Anyway AVI writing is limited by VfW interface.
Go to Top of Page

MattOV

Australia
17 Posts

Posted - May 14 2012 :  20:58:17  Show Profile  Reply
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
Go to Top of Page

fab

1310 Posts

Posted - May 14 2012 :  22:59:56  Show Profile  Reply
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).
Go to Top of Page

MattOV

Australia
17 Posts

Posted - May 15 2012 :  00:18:00  Show Profile  Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: