This option does exist in the form of the post-processing script option in the DVR settings. However, there has been a bug with this feature since the beginning of the year (see thread) . For changing the container, a very simple bash script would work
#! /bin/bash
fdir=$(dirname $1)
fname=$(basename $1 .ts)
ffmpeg -i $1 -codec copy $fdir/$fname.mkv