Hi,
Please try to customize the sample from
... ! nvegltransform ! nveglglessink
to
... ! queue ! nvoverlaysink
May refer to:
[Nano] Deepstream-test3-app not working as expected for multiple video source - #4 by DaneLLL
Not sure but it looks like rc.local runs in root permission and cannot run EGL-based sinks. Please try nvoverlaysink.