|
|
@@ -40,8 +40,8 @@ public class VideoFileProcessor {
|
|
|
private final ObjectNameService objectNameService;
|
|
|
private final FileStoreService fileStoreService;
|
|
|
private final ExecutorService threadPool = ThreadPoolWrapper.threadPool("converter-pool", 10);
|
|
|
- private final Set<String> audioCodecs = new HashSet<>();
|
|
|
- private final Set<String> videoCodecs = new HashSet<>();
|
|
|
+ private final Set<String> audioCodecs = Set.of("aac", "mp3");
|
|
|
+ private final Set<String> videoCodecs = Set.of("h264");
|
|
|
|
|
|
public VideoFileProcessor(MediaRepository mediaRepository, PutObjectService putObjectService,
|
|
|
ObjectNameService objectNameService, FileStoreService fileStoreService) {
|
|
|
@@ -49,8 +49,6 @@ public class VideoFileProcessor {
|
|
|
this.putObjectService = putObjectService;
|
|
|
this.objectNameService = objectNameService;
|
|
|
this.fileStoreService = fileStoreService;
|
|
|
- this.audioCodecs.addAll(Set.of("aac", "mp3"));
|
|
|
- this.videoCodecs.addAll(Set.of("h264"));
|
|
|
}
|
|
|
|
|
|
public void process(String objectName, String objectId, String absolutePath) {
|