I saw this in the mid 80's with subtitles. It seemed to me that it wasn't very recent even then, so it could possibly have been made in the 70's or the 60's.
Two men end up in a future after a war which devastated the earth, and forced humans to live underground. I don't remember how they ended up in the future; time travel, having been frozen or having been away, for example in space, for a long time are reasons I can think of. However, they key plot is that the need for men has been eliminated, and the women reproduce by some process involving in vitro tanks. Their society is lead by an elderly woman referred to only as Her Excellency. As the story goes on, the two men find that the surface is actually habitable, and that Her Excellency has kept that fact from her subjects, and when they confront her, she shows her true self, and it turns out that she's actually a man, and that he hates having to pose as a woman. The three of them devise a plan to re-introduce men, and eventually they release their own semen in the in vitro tanks. The final scene shows a young woman picking a baby up from one of the tanks only to discover that it's boy.