Does someone have a script that converts all videos files from 264 to 265 and changes the name?

Even an attempt at it would be appreciated