From 7b1898072f01e20a909b902eea11dff4dc30eaff Mon Sep 17 00:00:00 2001 From: 0xb00bface <0xboobface@gmail.com> Date: Tue, 22 Sep 2020 20:41:07 +0200 Subject: [PATCH] Make recording single file after remux Also set the file size to the size of the remuxed one --- .../src/main/java/ctbrec/recorder/postprocessing/Remux.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/ctbrec/recorder/postprocessing/Remux.java b/common/src/main/java/ctbrec/recorder/postprocessing/Remux.java index 81142ef8..be76c86a 100644 --- a/common/src/main/java/ctbrec/recorder/postprocessing/Remux.java +++ b/common/src/main/java/ctbrec/recorder/postprocessing/Remux.java @@ -60,11 +60,11 @@ public class Remux extends AbstractPostProcessor { rec.setAbsoluteFile(remuxedFile); } } + rec.setSingleFile(true); + rec.setSizeInByte(remuxedFile.length()); IoUtils.deleteEmptyParents(inputFile.getParentFile()); rec.getAssociatedFiles().remove(inputFile.getCanonicalPath()); rec.getAssociatedFiles().add(remuxedFile.getCanonicalPath()); - rec.setSingleFile(true); - rec.setSizeInByte(remuxedFile.length()); } private void setupLogging(Process ffmpeg, Recording rec) throws IOException, InterruptedException {