refactored Muxer in remuxing