lavf: add new API for iterating muxers and demuxers