start writing demuxer