How to convert .svo file to .h264/.h265 file?

Hi! I’m using zed2 with Jetson AGX Xavier to record videos and I have saved several svo files in h264 compressed mode and h265 compressed mode. However, The post-process need file in h264 or h265 format,which is XXX.h264 or XXX.h265. How can I convert XXX.svo into those types of file? Thanks!