Maybe it can be hacked together with Syncthing: have your phone's camera sync with an inbox folder on the desktop, have the desktop pick up the files and transcode them with handbrake, then move the original out of the inbox. This will cause Syncthing to sync the deletion back to your phone, and sync the transcoded version back on your phone.
I'd also check if you can just change the bitrate in your camera app's settings in case there's a way to lower the quality there. Could be noticeable, could be just as good as handbrake, never know with hardware encoding.