Saving a changed video

Did you select a video mode to match the format of your source file?

If your video mode matches, then the first thing you should ask yourself is why you want it to perfectly match the encoding parameters of the original file. Maybe different parameters will better suit your needs. If the Youtube preset meets your needs, then you do not need to do anything else.

Depending on your needs, if you need to change the encoding parameters, I recommend that you start with the youtube preset and then go into the Advanced section of the export UI and change one thing at a time. If you want the file size to be larger, then you could try increasing the bitrate, etc.