ADD readme & ADD mvnw

This commit is contained in:
2025-06-03 10:39:06 +02:00
parent 544a736f66
commit 3132bae98f
5 changed files with 449 additions and 2 deletions

View File

@@ -39,9 +39,9 @@ public class MetadataService {
try {
process = pb.start();
handleFfprobeError(process);
VideoMetadata metadata = parseVideoMetadata(readStandardOutput(process));
logger.info("Metadata for file {} finished with exit code {}", file.getAbsolutePath(), process.exitValue());
process.destroy();
return parseVideoMetadata(readStandardOutput(process));
return metadata;
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new FFMPEGException(e.getMessage());