core/demuxer: add functions for creating demuxers with options