I am currently ripping mpeg2 video and audio streams from a satellite dish PVR system. I use the following method to burn to DVD+R without re-encoding:

1. Rip video and audio files from satellite.
2. Mux video and audio files using mplex
3. Change resolution of muxed file header from 544x480 to 720x480 using DVDPatcher
4. Import file into TMPGenc DVD Author and save project.
5. Re-patch header resolution back to original 544x480
6. Make edits in TMPGenc DVD Author and export project.
7. Burn to DVD+R using Nero.

I have been able to automate steps 1 and 2 using a batch file; however, I cannot find a command line program that will allow me to patch the header resolution of the muxed file. I have searched online and found a bunch of other GUI-based tools that can patch header values (such as DVDPatcher) but none that are command line only. The file could be manually edited using a hex editor, but I'm not sure how to do this from the command line.

Any help pointing to a program or method that will work from the command line will be greatly appreciated!