I have a synology diskstation 1016+ and hardware transcoding has been broken for some time for me. I posted my solution (install FFMpeg package and use post-processing script after DVR recording here:
Let me know if you find this useful. I have updated the script to generate h.265 (HEVC) files and I can share that one if you like.