refactor(directory): propagate dir creation error to caller
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user