UIVideoProvider - Multiple channels

When adding a second channel in the code with:

_mediaProvider2 =  _mediaProviderService.CreateMediaProvider(2);

There is no second channel when adding a new hardware device.

For that matter, the 2 metadata channels are not there either.

Would il help if I modified the MIP Drivers XML file? Where could I find it?

The parameter on the CreateMediaProvider is the channelnumber, not ‘number of channels’.

To have multiple channels:

  1. add this property to the MediaProviderService:

    \_parameters.Add("NumVideoCh", "2"); // 1..16
    
  2. call “CreateMediaProvider(x)” , where x is from 1 and up to the max defined number of channels

Hi Anders,

Thanks for that. Do you know where I can find the full list of parameters?

I now have the 2nd camera device showing in the config but the second stream never starts. I did not try going higher than two right now.

If I switch the following I get input from my second camera so I think something is wrong with starting stream 2.

CreateMediaProvider(1)

CreateMediaProvider(2)

The “MediaProviderSessionOpening” never gets called for the second stream.

Am I missing something in my params?

_parameters = new Dictionary<string, string>();

    \_parameters.Add("Mac", "108ADBE6AFBB");

    \_parameters.Add("Firmware", "v10");

    \_parameters.Add("Codec", "Jpeg");

    \_parameters.Add("CodecList", "Jpeg");    // Mpeg,H264 later

    \_parameters.Add("FpsRange", "1-60");

    \_parameters.Add("QualityRange", "1-100");

    \_parameters.Add("Gop", "NotSupported");

    \_parameters.Add("Fps", "60");          // Update later in session ?

    \_parameters.Add("Resolution", "800x600");  // Update later in session ?

    \_parameters.Add("Quality", "100");      // Update later in session ?

    \_parameters.Add("ResolutionList", "320x240,640x480,800x600,1024x768");

    \_parameters.Add("SerialNr", "NotSupported");

    \_parameters.Add("GopRange", "NotSupported");

    \_parameters.Add("Model", "ModelName");

    \_parameters.Add("NumVideoCh", "2");

Parameters for the Video have to be the same for all channels. Not sure why the2. channel does not start - I will check later today.

Do you have a list of parameters so I can check?

You are correct - this does not work.

Since both parameter list is channel-less, and the property for number of video channels is not documented - multi video channels is not supported right now.

I will add to our backlog for now.

Ok np, I just created a second MIP driver on a different port.

I noticed you can’t add a device with the same MAC address twice so after changing that I was able to have 2 seperate MIP drivers on my recorder.

Kind regards,

E.