Skip to content

Commit

Permalink
Merge pull request #363 from Netflix/create-imp-from-essences
Browse files Browse the repository at this point in the history
Allow users to generate IMF metadata files by passing in a simple timeline of tracks
  • Loading branch information
tcase-netflix authored Feb 27, 2024
2 parents dd30bef + cca7a84 commit 0315d5f
Show file tree
Hide file tree
Showing 3 changed files with 513 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/netflix/imflibrary/app/IMPFixer.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class IMPFixer {
private static final String CONFORMANCE_LOGGER_PREFIX = "Virtual Track Conformance";
private static final Logger logger = LoggerFactory.getLogger(IMPFixer.class);

private static UUID getTrackFileId(PayloadRecord headerPartitionPayloadRecord) throws
public static UUID getTrackFileId(PayloadRecord headerPartitionPayloadRecord) throws
IOException {

IMFErrorLogger imfErrorLogger = new IMFErrorLoggerImpl();
Expand Down Expand Up @@ -93,7 +93,7 @@ private static UUID getTrackFileId(PayloadRecord headerPartitionPayloadRecord) t
return packageUUID;
}

private static Map<UUID, PayloadRecord> getTrackFileIdToHeaderPartitionPayLoadMap(List<PayloadRecord>
public static Map<UUID, PayloadRecord> getTrackFileIdToHeaderPartitionPayLoadMap(List<PayloadRecord>
headerPartitionPayloadRecords) throws
IOException {

Expand Down Expand Up @@ -153,7 +153,7 @@ private static Boolean isCompositionComplete(ApplicationComposition applicationC
}

@Nullable
private static PayloadRecord getHeaderPartitionPayloadRecord(ResourceByteRangeProvider resourceByteRangeProvider, IMFErrorLogger imfErrorLogger) throws IOException {
public static PayloadRecord getHeaderPartitionPayloadRecord(ResourceByteRangeProvider resourceByteRangeProvider, IMFErrorLogger imfErrorLogger) throws IOException {
long archiveFileSize = resourceByteRangeProvider.getResourceSize();
long rangeEnd = archiveFileSize - 1;
long rangeStart = archiveFileSize - 4;
Expand Down
Loading

0 comments on commit 0315d5f

Please sign in to comment.