forked from j62/ctbrec
1
0
Fork 0

Make recording single file after remux

Also set the file size to the size of the remuxed one
This commit is contained in:
0xb00bface 2020-09-22 20:41:07 +02:00
parent d23f3fea04
commit 7b1898072f
1 changed files with 2 additions and 2 deletions

View File

@ -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 {