refactor(directory): propagate dir creation error to caller

This commit is contained in:
2026-06-20 01:27:51 +01:00
parent 8602f65db7
commit 37e9b6c1e7
3 changed files with 11 additions and 16 deletions

View File

@@ -27,14 +27,13 @@ public class StreamActionsService {
public CompletableFuture<File> saveSection(
List<File> segments,
float trimOffset,
float duration
float duration,
File outputFile
) throws IOException, InterruptedException {
String concatInput = segments.stream()
.map(File::getAbsolutePath)
.collect(Collectors.joining("|"));
File outputFile = directoryService.getVodFile(UUID.randomUUID() + ".mp4");
List<String> command = List.of(
"ffmpeg",
"-y",