This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how can i decode many channels but only send 1 to the encoder?

Hi,

I have modified the Decode/Display demo to encode to file (my taking some elements from the capture/encode/decode/display demo).

I would like to decode 16 channels and encode 1 of the channels (also write to disk)

Right now only 1 channel is written to disk but all the channels are going to the encoder, which is wasteful and inefficient. If I try to set the number of encoder channels to less than the decoder channels than the link chain does not get created (because of some asserts)

So my question is: how can i set up a link chain to decode and display 16 channels but only send 1 of those channels to the encoder?

 

Thanks!

  • You can use a selectLink after dupLink to limit the  number of encode channels created.

    Connection would be

    dupLink -> (16) selectLink -> (1) ipcOutM3Vpss -> ipcInM3Video -> encLink

    SelectLink configuration should numOutputQue as 1 and numOutCh on que0 as 1

    Refer selectLink api documentation for addditional details.