The time base seems to be set only with when a video stream is specified, so trying to rescale it in case of audio only leads to a floating exception. The issue might also be reproducible with data or subtitles muxing without video.