Test it live: https://bryanperris.github.io/n64vi/
This is small html file simulates the framebuffer size computation based on a few video interface registers. You can interactively mess with the values and see what happens to the picture. Press the update button to apply the new size. On page load, the default size is set to the maximum resolution that N64 can support.
This only supports NTSC atm.