I think streams are better handled using a dedicated mux/demuxer