# 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
- 
- vaapih264dec should work with I420 but not working
- 
- 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
- 