PROCESSOR-SDK-J784S4: Implementation of encoding function for multiple camera (through separate tasks)

Part Number: PROCESSOR-SDK-J784S4

Tool/software:

Hi Experts,

I'm trying to develop an application which will encode the input images received from the graph of the camera. It is done and working perfectly for single camera but now I need it for more than one camera so that LDC out image from the graph of each camera could be taken and encode to create a separate encoded video for each camera. 

The simple architecture of implementation is like:

I have created a separate task for each camera which will receive the LDC image and create the video, and ran all the tasks but code is getting crashed.

Please help me to implement encoding functionality where separate tasks could create encoded videos for the LDC output received from the graph (from multitasking application). Tasks should run parallelly so that the encoded video for each task could be cratered parallelly. 

Currently I'm using '09_01_00_06, version of sdk.

Regards,

Hemraj