A method to transform 5-channel surround sound signals to Bformat is proposed, which provides unaltered spatial qualities when reproduced with directional audio coding (DirAC). The proposed method simulates anechoic B-format recording of the signals with two different virtual loudspeaker configurations, which are combined according to time-frequency analysis of diffuseness of the virtual sound field.