---
# System prepended metadata

title: NPTS demo on IBase

---

# NPTS demo on IBase




![](https://hackmd.io/_uploads/ByCW2JlW6.png)

## Using below to fix pubkey expire and .Xauthority error.

## Fix PUBKEY expire 

https://community.intel.com/t5/oneAPI-Registration-Download/The-GPG-PUB-KEY-INTEL-SW-PRODUCTS-PUB-expired/m-p/1529230?profile.language=zh-CN

```
Please run three commands:
1.  wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB

2. sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB

3. sudo apt update
```

### rm -rf /home/dlstreamer/.Xauthority

```
docker run -it --rm --net=host -eno_proxy=$no_proxy -e https_proxy=$https_proxy -e socks_proxy=$socks_proxy -e http_proxy=$http_proxy -v ~/.Xauthority:/home/dlstreamer/.Xauthority -v /tmp/.X11-unix -e DISPLAY=$DISPLAY -v ~/Downloads:/mnt --device /dev/dri --group-add 110 snake7gun/yolov8n-seg-demo-eapet


apt install -y sudo
echo "dlstreamer:dlstreamer" | chpasswd
usermod -aG sudo dlstreamer
addgroup --gid 110 render
usermod -aG render dlstreamer

su - dlstreamer

source /opt/intel/dlstreamer/setupvars.sh

source /home/dlstreamer/dlstreamer_gst/scripts/setup_env.sh
source /opt/intel/oneapi/setvars.sh

cd dlstreamer_gst/demo/
cp /mnt/innovation_pipeline.sh .
export DISPLAY=:0
./innovation_pipeline.sh rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp
```


```
dlstreamer@eapeet-ibase:~/dlstreamer_gst/demo$ ./innovation_pipeline.sh rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp rtsp://admin:admin@10.5.235.18:8554/CH001.sdp
Added path to GST_PLUGIN_PATH: /home/dlstreamer/dlstreamer_gst/build/intel64/rtsp://admin:admin@10.5.235.18:8554/CH001.sdp/lib
Running pipeline:  compositor name=comp0                 sink_0::xpos=0                    sink_0::ypos=0                 sink_0::alpha=1         sink_1::xpos=640 sink_1::ypos=0                 sink_1::alpha=1         sink_2::xpos=1280 sink_2::ypos=0                 sink_2::alpha=1                 sink_3::xpos=0                    sink_3::ypos=360 sink_3::alpha=1         sink_4::xpos=640 sink_4::ypos=360 sink_4::alpha=1         sink_5::xpos=1280 sink_5::ypos=360 sink_5::alpha=1                 sink_6::xpos=0                    sink_6::ypos=720 sink_6::alpha=1         sink_7::xpos=640 sink_7::ypos=720 sink_7::alpha=1         sink_8::xpos=1280 sink_8::ypos=720 sink_8::alpha=1  ! gvafpscounter ! videoconvert ! fpsdisplaysink video-sink=ximagesink sync=false rtspsrc location=rtsp://admin:admin@10.5.235.18:8554/CH001.sdp onvif-mode=true ! rtponvifparse ! application/x-rtp,media=video ! decodebin ! video/x-raw(memory:VASurface) ! gvadetect model=/home/dlstreamer/models/yolov8n_seg_int8_ppp.xml model_proc=/home/dlstreamer/dlstreamer_gst/samples/gstreamer/model_proc/public/yolo-v8.json nireq=1 gpu-throughput-streams=1 batch-size=4 model-instance-id=1 pre-process-backend=vaapi-surface-sharing device=GPU ! queue ! gvawatermark ! video/x-raw,width=640,height=360 ! queue ! comp0.sink_0 rtspsrc location=rtsp://admin:admin@10.5.235.18:8554/CH001.sdp onvif-mode=true ! rtponvifparse ! application/x-rtp,media=video ! decodebin ! video/x-raw(memory:VASurface) ! gvadetect model=/home/dlstreamer/models/yolov8n_seg_int8_ppp.xml model_proc=/home/dlstreamer/dlstreamer_gst/samples/gstreamer/model_proc/public/yolo-v8.json nireq=1 gpu-throughput-streams=1 batch-size=4 model-instance-id=1 pre-process-backend=vaapi-surface-sharing device=GPU ! queue ! gvawatermark ! video/x-raw,width=640,height=360 ! queue ! comp0.sink_1 rtspsrc location=rtsp://admin:admin@10.5.235.18:8554/CH001.sdp onvif-mode=true ! rtponvifparse ! application/x-rtp,media=video ! decodebin ! video/x-raw(memory:VASurface) ! gvadetect model=/home/dlstreamer/models/yolov8n_seg_int8_ppp.xml model_proc=/home/dlstreamer/dlstreamer_gst/samples/gstreamer/model_proc/public/yolo-v8.json nireq=1 gpu-throughput-streams=1 batch-size=4 model-instance-id=1 pre-process-backend=vaapi-surface-sharing device=GPU ! queue ! gvawatermark ! video/x-raw,width=640,height=360 ! queue ! comp0.sink_2 rtspsrc location=rtsp://admin:admin@10.5.235.18:8554/CH001.sdp onvif-mode=true ! rtponvifparse ! application/x-rtp,media=video ! decodebin ! video/x-raw(memory:VASurface) ! gvadetect model=/home/dlstreamer/models/yolov8n_seg_int8_ppp.xml model_proc=/home/dlstreamer/dlstreamer_gst/samples/gstreamer/model_proc/public/yolo-v8.json nireq=1 gpu-throughput-streams=1 batch-size=4 model-instance-id=1 pre-process-backend=vaapi-surface-sharing device=GPU ! queue ! gvawatermark ! video/x-raw,width=640,height=360 ! queue ! comp0.sink_3 rtspsrc location=rtsp://admin:admin@10.5.235.18:8554/CH001.sdp onvif-mode=true ! rtponvifparse ! application/x-rtp,media=video ! decodebin ! video/x-raw(memory:VASurface) ! gvadetect model=/home/dlstreamer/models/yolov8n_seg_int8_ppp.xml model_proc=/home/dlstreamer/dlstreamer_gst/samples/gstreamer/model_proc/public/yolo-v8.json nireq=1 gpu-throughput-streams=1 batch-size=4 model-instance-id=1 pre-process-backend=vaapi-surface-sharing device=GPU ! queue ! gvawatermark ! video/x-raw,width=640,height=360 ! queue ! comp0.sink_4 rtspsrc location=rtsp://admin:admin@10.5.235.18:8554/CH001.sdp onvif-mode=true ! rtponvifparse ! application/x-rtp,media=video ! decodebin ! video/x-raw(memory:VASurface) ! gvadetect model=/home/dlstreamer/models/yolov8n_seg_int8_ppp.xml model_proc=/home/dlstreamer/dlstreamer_gst/samples/gstreamer/model_proc/public/yolo-v8.json nireq=1 gpu-throughput-streams=1 batch-size=4 model-instance-id=1 pre-process-backend=vaapi-surface-sharing device=GPU ! queue ! gvawatermark ! video/x-raw,width=640,height=360 ! queue ! comp0.sink_5 rtspsrc location=rtsp://admin:admin@10.5.235.18:8554/CH001.sdp onvif-mode=true ! rtponvifparse ! application/x-rtp,media=video ! decodebin ! video/x-raw(memory:VASurface) ! gvadetect model=/home/dlstreamer/models/yolov8n_seg_int8_ppp.xml model_proc=/home/dlstreamer/dlstreamer_gst/samples/gstreamer/model_proc/public/yolo-v8.json nireq=1 gpu-throughput-streams=1 batch-size=4 model-instance-id=1 pre-process-backend=vaapi-surface-sharing device=GPU ! queue ! gvawatermark ! video/x-raw,width=640,height=360 ! queue ! comp0.sink_6 rtspsrc location=rtsp://admin:admin@10.5.235.18:8554/CH001.sdp onvif-mode=true ! rtponvifparse ! application/x-rtp,media=video ! decodebin ! video/x-raw(memory:VASurface) ! gvadetect model=/home/dlstreamer/models/yolov8n_seg_int8_ppp.xml model_proc=/home/dlstreamer/dlstreamer_gst/samples/gstreamer/model_proc/public/yolo-v8.json nireq=1 gpu-throughput-streams=1 batch-size=4 model-instance-id=1 pre-process-backend=vaapi-surface-sharing device=GPU ! queue ! gvawatermark ! video/x-raw,width=640,height=360 ! queue ! comp0.sink_7 
Setting pipeline to PAUSED ...
error: XDG_RUNTIME_DIR not set in the environment.
Pipeline is live and does not need PREROLL ...
Got context from element 'vaapipostproc1': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx0", gst.vaapi.Display.GObject=(GstObject)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx0";
Progress: (open) Opening Stream
Progress: (open) Opening Stream
Progress: (open) Opening Stream
Progress: (open) Opening Stream
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:admin@10.5.235.18:8554/CH001.sdp
Progress: (connect) Connecting to rtsp://admin:admin@10.5.235.18:8554/CH001.sdp
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:admin@10.5.235.18:8554/CH001.sdp
Progress: (open) Opening Stream
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:admin@10.5.235.18:8554/CH001.sdp
Progress: (connect) Connecting to rtsp://admin:admin@10.5.235.18:8554/CH001.sdp
Progress: (connect) Connecting to rtsp://admin:admin@10.5.235.18:8554/CH001.sdp
Progress: (connect) Connecting to rtsp://admin:admin@10.5.235.18:8554/CH001.sdp
Progress: (connect) Connecting to rtsp://admin:admin@10.5.235.18:8554/CH001.sdp
Progress: (open) Retrieving server options
Progress: (open) Retrieving server options
Progress: (open) Retrieving server options
Progress: (open) Retrieving server options
Progress: (open) Retrieving server options
Progress: (open) Retrieving server options
Progress: (open) Retrieving server options
Progress: (open) Retrieving server options
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (open) Retrieving media info
Progress: (open) Retrieving media info
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (open) Retrieving media info
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Progress: (request) Sending PLAY request
Progress: (open) Opened Stream
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Progress: (request) Sent PLAY request
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Progress: (open) Opened Stream
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Progress: (request) Sent PLAY request
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
FpsCounter(last 1.03sec): total=56.43 fps, number-streams=1, per-stream=56.43 fps
FpsCounter(average 1.03sec): total=56.43 fps, number-streams=1, per-stream=56.43 fps
ERROR: from element /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstXImageSink:ximagesink0: Output window was closed
Additional debug info:
../sys/ximage/ximagesink.c(719): gst_x_image_sink_handle_xevents (): /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstXImageSink:ximagesink0
Execution ended after 0:00:04.949256686
Setting pipeline to NULL ...
FpsCounter(last 0.55sec): total=23.83 fps, number-streams=1, per-stream=23.83 fps
FpsCounter(overall 1.57sec): total=45.13 fps, number-streams=1, per-stream=45.13 fps
Freeing pipeline ...

```