rebuild demuxed header for streaming