Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3075 Discussions

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

Omar_Barlas
Beginner
1,464 Views

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.



0 Kudos
6 Replies
IDZ_A_Intel
Employee
1,464 Views
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
0 Kudos
gthomaz
Beginner
1,464 Views
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!
0 Kudos
Omar_Barlas
Beginner
1,464 Views
Hi gthomaz

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

thanks in advance

0 Kudos
gthomaz
Beginner
1,464 Views
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-directshow-and-c.html

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;
}




0 Kudos
Tushar_G_
Beginner
1,464 Views

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

0 Kudos
Petter_L_Intel
Employee
1,464 Views

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 

0 Kudos
Reply