use new metadata API in rm (de)muxer