Nvcompositor crashes with more than one camera source

Hello,
I am using a jetson nano board
jetpack 4.6
deepstream 6.0
cuda 10.1

I am trying to feed 4 IP cameras to NVCompositor but it doesn’t work, and it doesn’t work for two cameras as well.

NVCompositor appears to have some problems as it only works with one camera.

Referring to these topics that have similar issues:

is there any solution for this problem compatible with my release (mentioned above)

I’m not sure it’ll fix your specific issue but what helped me was building the plugin from source with this patch applied: Gst for merging 4 webcams sometimes works, and sometimes it doesn't - #5 by DaneLLL

The above helped me for the compositor side because I saw it had issues with async sources coming up at later times

Besides that, as per my original post, add a check if the attribute pointer exists before accessing it, it’ll go through that loop again later on anyway and set things up correctly

1 Like

thanks for your reply,

I applied the patch meningitis here,

And it didn’t fix the issue.

I believe I would need this fix you mentioned here as well(“add a check if the attribute pointer exists before accessing it, it’ll go through that loop again later on anyway and set things up correctly”), so I wanted to know how did you manage to add this fix and build your own nvcompositor library. I tried to download the source code and it only include the header files and make file, so how could you get the c files to apply the fix?

Hi,
Please apply this patch and rebuild nvcompositor plugin:
Gst for merging 4 webcams sometimes works, and sometimes it doesn't - #5 by DaneLLL

And set background-w and background-h properties accordingly. Please try single, source, two sources, three, and then 4 sources.

1 Like

thanks for your reply
please, can you show me the steps to rebuild?

Hi,
Please download the source code package:
https://developer.nvidia.com/embedded/linux-tegra-r3261

L4T Driver Package (BSP) Sources

And you can see source code of nvcompositor plugin. Please follow README to build it.

1 Like

Hi,

I tried to add this fix and rebuild it, I managed to rebuild it successfully but it still only streams from one camera only

Hi,
Please refer to the post and give it a try:
RTSP Server fails when using a second camera with nvcompositor - #4 by RR.Lara

And please also refer to the commands and steps in
NvCompositor SIGSEGV - #14 by Honey_Patouceul

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.