mark failed process for media
rewrite kaldi2json to fix trailing comma bug, using real json encoder