dvr: added initial support for libavformat muxing