How can I use Intel Media SDK in visual basic.net ?

How can I use Intel Media SDK in visual basic.net ?

imagem de Omar Barlas

Dear All

How can we used Intel Media SDK in VB.net Application?

I want to Capture Live Video from USB Video Capture Card and encode Video
and then save any format that support Intel Media SDK.

7 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.
imagem de admin

Hi Omar,

Glad to hear of your interest in Intel Media SDK. Unfortunately Intel Media SDK was not designed to support Visual Basic.

However, as far as I know, there might still be some ways for you to utilize Media SDK functionality in a VB application. For instance, Intel Media SDK provides some DirectShow samples(!) (implemented in C++) for encode and decode using Media SDK. I believe these could be loaded and used in a VB.net application. You may also explore more intricate option building a VB bridge directly to the Media SDK DLL implementation, that said, this would bypass the benefits of the Media SDK dispatcher libary.

Keep in mind that the above are currently unsupported use cases and we do not provide any sampleson how to do this. That aside, we would be love to learn about your findings in this area. If you want, feel free to share with us on this forum.

Thanks,Petter

imagem de gthomaz

Hi Omar!I'm not a VB expert.But, I'm using Media SDK in C#, maybe it could be help you.1) Do you know how to create a simple DirectShow app in VB? Like, create a VideoSource connected with a VideoRender and play it. If you don't know, please search on google...You will see that you need the GUID's and PIN's for create each filter.2) You could get an application like GraphEdit and see all DirectShows Filters proprerties. So, please, look in DirectShow Filters -> Intel Media SKD *filters. Here you could get the pin names and the GUID for each Intel filter.I know that it's a really short description, but please try to start with this...if I could help after, let me know!

Regards, Guilherme
imagem de Omar Barlas

Hi gthomaz

Can you share me how are you using media SDK in C#, some sample Application.

thanks in advance

imagem de gthomaz

Hello Omar!
Here are we again =]

I installed SDK filter's on my PC and I use these filters like a common DirectShow Filter.

My sugestion is:
please, try to do a simple app to understand DS in C#(or another language).
Try to create a graphBuilder and add this filters:
VideoSource -> VideoRender

I read an article teaching about DS in C#, I think that it will be a good tip for you: http://www.informikon.com/directshow-tutorials/what-can-be-done-with-dir...

There are a simple sample on next page... please look it too...

After this, you could try to use Intel's SDK in your app.
My sample for this is:

[ComImport,Guid("71183C45-F4FA-4B10-9E04-F9040CB19139")]		 
publicclassH264EncoderFilter{}

publicstaticIPinInput(thisH264EncoderFilterfilter){
IPinp;
Int32r=((IBaseFilter)filter).FindPin("In",outp);
			if(r!=0)Marshal.ThrowExceptionForHR;
returnp;
}

publicstaticIPinOutput(thisH264EncoderFilterfilter){
IPinp;
Int32r=((IBaseFilter)filter).FindPin("Out",outp);
if(r!=0)Marshal.ThrowExceptionForHR;
returnp;
}

Regards, Guilherme

where can i get the intel media sdk dll that i can import in c#

Hi Tushar,

Intel Media SDK does not provide C# bindings. You could implement such layer by yourself using PInvoke (or somthing similar). Or you can explore option from 3rd party, such as:http://limevideo.com/

Regards,
Petter 

Faça login para deixar um comentário.