Refactor FfmpegService to improve progress tracking and streamline command building

This commit is contained in:
2025-07-09 18:25:51 +02:00
parent fa89c66260
commit c512f055ee
5 changed files with 79 additions and 52 deletions

View File

@@ -1,6 +1,8 @@
package com.ddf.vodsystem.entities;
import java.io.File;
import java.util.concurrent.atomic.AtomicReference;
import org.springframework.security.core.context.SecurityContext;
import lombok.Data;
@@ -20,7 +22,7 @@ public class Job {
// job status
private JobStatus status = JobStatus.NOT_READY;
private Float progress = 0.0f;
private AtomicReference<Float> progress = new AtomicReference<>(0f);
public Job(String uuid, File inputFile, File outputFile, VideoMetadata inputVideoMetadata) {
this.uuid = uuid;