You can pass the file through a post-processing script before it is added to your library. From Settings -> Live TV & DVR -> DVR Settings:
It’s up to you to find/create said script. A naive script could just pass the file through HandBrakeCLI with a fixed profile and call it good. A more robust script would check the properties of the file (resolution, scan type, etc…) and optimize accordingly.
