H265 stream freezez

on my rockchip rk3576 developement board when i run the below pipeline it freezes after some time , I’m using imx415 camera.

gst-launch-1.0 -e v4l2src num-buffers=512 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1 \
    ! videobalance saturation=0.0 ! queue ! mpph265enc ! queue ! h265parse \
    ! matroskamux name=mux ! filesink location=/home/luckfox/testh265.mkv \
    autoaudiosrc ! audio/x-raw,width=16,depth=16,rate=44100,channels=1 \
    ! queue ! audioconvert ! audioresample ! voaacenc ! aacparse ! mux.

Regards.