How to convert DICOM format sequence images to YUV(4:0:0) format

Hi everyone,
I want to use vtm(eg. h.266) to handle the medical series. From the relevant paper, the first step is “image format conversion”, the way is to use ImageJ to convert DICOM image series into raw medical images (YUV (4:0:0) format). I can’t search the detailed method, so i want to ask for the help.
I would be very grateful for any reply.