No need to reinvent the wheel. There's an existing merge request on GitLab to add XAVC 300/480 if you want something to test:
https://code.videolan.org/videolan/x...rge_requests/6
Current builds
here.
Code:
x264 "inputfile.y4m" --avcintra 300 --avcintra-flavor sony --output-depth 10 --output-csp i422 -o "raw_video.h264"
or
Code:
x264 "inputfile.y4m" --avcintra 480 --avcintra-flavor sony --output-depth 10 --output-csp i422 -o "raw_video.h264"
The patch tries to match the output of an EVS XT playback server. I don't know that all the CQM trickery it does is strictly necessary. That's why this patch is 3 years old and still marked WIP. It worked for me, but needs to be tested more.