Error code -5 is a generic message and usually means that something on the timeline has upset the encoders, this could be a transition, effect, title, or an image,audio or video format change.
Ensure the graphics card/chipset drivers are up to date and as @Antiguo usuario has pointed to your computer specification - I would suggest you put this information in your profile signature so we do not have to keep asking for it.
Try export the video again and watch the Movie time in the export dialog and note the movie time when the encoding fails.
Examine the timeline around the time noted to see what is there and, by trial and error, eliminate effects, transitions etc and repeat the export - this can be a tedious process.