forked from j62/ctbrec
Make recording single file after remux
Also set the file size to the size of the remuxed one
This commit is contained in:
parent
d23f3fea04
commit
7b1898072f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue