nvidia-holoscan / holoscan-sdk

The AI sensor processing SDK for low latency streaming workflows
Apache License 2.0
117 stars 31 forks source link

How to run vila_live with IP camera? #37

Closed Shehjad-Ishan closed 5 days ago

Shehjad-Ishan commented 5 days ago

Currently, I am using ffmpeg to stream the camera as v4l2 loopback device.

ffmpeg -rtsp_transport tcp -i 'rtsp://admin:jbl12345@192.168.0.149:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif' -fflags +genpts -fps_mode passthrough -pix_fmt yuv420p -r 25 -f v4l2 -s 1280x720 /dev/video3

But getting this error when running vila_live. pixel_format= "YU12".

Caught signal 11 (Segmentation fault: invalid permissions for mapped object at address 0x7f143b205040)
==== backtrace (tid:   8460) ====
 0  /opt/nvidia/holoscan/lib/libucs.so.0(ucs_handle_error+0x2e4) [0x7f145486e264]
 1  /opt/nvidia/holoscan/lib/libucs.so.0(+0x3045f) [0x7f145486e45f]
 2  /opt/nvidia/holoscan/lib/libucs.so.0(+0x30746) [0x7f145486e746]
 3  /usr/lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f14dfa41520]
 4  /usr/lib/x86_64-linux-gnu/libc.so.6(+0x1a0ba0) [0x7f14dfb9fba0]
 5  /opt/nvidia/holoscan/lib/libholoscan_viz.so.2(+0x43f7a) [0x7f13fea1af7a]
 6  /opt/nvidia/holoscan/lib/libholoscan_viz.so.2(+0x3e969) [0x7f13fea15969]
 7  /opt/nvidia/holoscan/lib/libholoscan_viz.so.2(+0x2ae66) [0x7f13fea01e66]
 8  /opt/nvidia/holoscan/lib/libholoscan_op_holoviz.so.2(_ZN8holoscan3ops9HolovizOp7computeERNS_12InputContextERNS_13OutputContextERNS_16ExecutionContextE+0x1c70) [0x7f14529aa450]
 9  /opt/nvidia/holoscan/lib/libholoscan_core.so.2(_ZN8holoscan3gxf10GXFWrapper4tickEv+0x22d) [0x7f1404b2fcdd]
10  /opt/nvidia/holoscan/lib/libgxf_std.so(_ZN6nvidia3gxf14EntityExecutor10EntityItem11tickCodeletERKNS0_6HandleINS0_7CodeletEEE+0x1a7) [0x7f13fa4c6b97]
11  /opt/nvidia/holoscan/lib/libgxf_std.so(_ZN6nvidia3gxf14EntityExecutor10EntityItem4tickElPNS0_6RouterE+0x460) [0x7f13fa4c91e0]
12  /opt/nvidia/holoscan/lib/libgxf_std.so(_ZN6nvidia3gxf14EntityExecutor10EntityItem7executeElPNS0_6RouterERl+0x31e) [0x7f13fa4c9a0e]
13  /opt/nvidia/holoscan/lib/libgxf_std.so(_ZN6nvidia3gxf14EntityExecutor13executeEntityEll+0x2e7) [0x7f13fa4ca1f7]
14  /opt/nvidia/holoscan/lib/libgxf_std.so(+0x18e9fc) [0x7f13fa4349fc]
15  /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xdc253) [0x7f1483eb0253]
16  /usr/lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7f14dfa93ac3]
17  /usr/lib/x86_64-linux-gnu/libc.so.6(clone+0x44) [0x7f14dfb24a04]