--- a/ts2mkv.py Tue Nov 28 22:27:01 2017 +0100 +++ b/ts2mkv.py Tue Nov 28 22:35:35 2017 +0100 @@ -291,9 +291,8 @@ p = subprocess.Popen(shlex.split(" ".join(cmd)), \ stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() - with self.info["msg_ffmpeg"] as msg: - msg = out + "\n" + err - msg = msg[msg.find("Input #0"):] + self.info["msg_ffmpeg"] = out + "\n" + err + self.info["msg_ffmpeg"] = self.info["msg_ffmpeg"][self.info["msg_ffmpeg"].find("Input #0"):] def get_ffmpeg_command(self): """ @@ -462,10 +461,9 @@ args = parser.parse_args() processor = ts2mkv(crf=args.crf, tune=args.tune) - with processor.config as c: - c["scaledown"] = not args.ns - c["rename"] = args.rename - c["overwrite"] = args.f + processor.config["scaledown"] = not args.ns + processor.config["rename"] = args.rename + processor.config["overwrite"] = args.f for srcstr in args.input: src = glob.glob(srcstr)