---
# System prepended metadata

title: on host and KMB

---

# on host and KMB

```
# KMB
-v -e filesrc location=/home/root/vehicle_test.h264 ! \
decodebin ! videoconvert ! video/x-raw,format=BGRx ! \
gvainference model=/home/root/models/ssd512.blob name=gvadetect \
device=KMB pre-process-backend=ie ! \
vasobjecttracker tracking-type=ZERO_TERM_IMAGELESS device=VPU ! \
gvaclassify name=gvaclassify \
model=/home/root/models/vehicle-attributes-recognition-barrier-0042.blob \
model_proc=/home/root/model_proc/vehicle-attributes-recognition-barrier-0039.json device=KMB ! \
gvawatermark ! queue ! vaapih264enc ! \
rtspclientsink location=rtsp://172.23.218.55:8554/test
# KMB
gst-launch-1.0 -v  filesrc location=/home/root/vehicle_test.h264 ! decodebin ! videoconvert ! vaapih264enc ! rtspclientsink location=rtsp://172.23.218.55:8554/test
```
- failed (Segmentation fault)
```
# KMB
gst-launch-1.0 filesrc location=/home/root/NY_low.mp4 ! \
decodebin ! videoconvert ! vaapih264enc ! \
rtspclientsink location=rtsp://172.23.218.55:8554/test
# host
./test-record "( rtph264depay name=depay0 ! h264parse ! vaapih264dec low-latency=true ! vaapisink sync=true )"
```

#### use raw video to avoid encoding on KMB
```
# KMB
gst-launch-1.0 -v  filesrc location=/home/root/NY_low.h264 ! h264parse ! vaapih264dec enable-multicore=true low-latency=true ! "video/x-raw, format=(string)I420, width=(int)1280, height=(int)720" ! rtspclientsink location=rtsp://192.168.21.129:8554/test
# host
./test-record "( rtpvrawdepay name=depay0 ! videoparse format=2  width=1280 height=720 framerate=30000/1001 ! xvimagesink sync=false )"
```
- internal data stream error
  - ![](https://cdn.cacher.io/attachments/u/3dnij5h3zeqjm/SkiPzXCVnCbz4SDqESXURKAzF53j24ZD/kddi7hoca.png)
- vaapih264dec should work with I420 but not working
  - ![](https://cdn.cacher.io/attachments/u/3dnij5h3zeqjm/eMWEhGe9W9gj0RzBFme0FHr9obuLeept/xbm73inc4.png)
  - it seems only work with NV12 actually
```
# KMB
gst-launch-1.0 -v  filesrc location=/home/root/NY_low.h264 ! h264parse ! vaapih264dec low-latency=true ! "video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720" ! autovideoconvert ! "video/x-raw, format=(string)I420, width=(int)1280, height=(int)720" ! rtspclientsink location=rtsp://192.168.21.129:8554/test
gst-launch-1.0 -v  filesrc location=/home/root/NY_low.h264 ! h264parse ! vaapih264dec enable-multicore=true low-latency=true ! "video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720" ! autovideoconvert ! "video/x-raw, format=(string)I420, width=(int)1280, height=(int)720" ! rtspclientsink location=rtsp://192.168.21.129:8554/test
# host
./test-record "( rtpvrawdepay name=depay0 ! videoparse format=2  width=1280 height=720 framerate=30000/1001 ! xvimagesink sync=false )"
```
- color fine but really lag
- multicore not helping
- ![](https://cdn.cacher.io/attachments/u/3dnij5h3zeqjm/ZDc02UCBph2zUgdnAkSQB3WHwMqF1cw4/0ceufhb76.png)
