If you know the play time and the size you want, you can calculate the total bitrate you need to set. Subtract the audio bitrate from the total, and you get the video bitrate to set. Make a spreadsheet and fill in the numbers.
Depending on the contents and aspect ratio, you may get bad results. Setting a lowest acceptable quality is better, but then size can vary a lot.