Skip to content

Commit

Permalink
Using smaller test file
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhdz13-netflix committed Sep 30, 2024
1 parent 499074d commit 674bdc0
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public void videoHeaderPartitionTest2() throws IOException
@Test
public void videoHeaderPartitionTest3() throws IOException
{
File inputFile = TestHelper.findResourceByPath("TestIMP/HT/IMP/VIDEO_c840cf14-d4c1-4960-82d8-e8fac0553ed4.mxf");
File inputFile = TestHelper.findResourceByPath("TestIMP/HT/IMP/VIDEO_6ed567b7-c030-46d6-9c1c-0f09bab4b962.mxf");
IMFErrorLogger imfErrorLogger = new IMFErrorLoggerImpl();
HeaderPartition headerPartition = HeaderPartition.fromFile(inputFile, imfErrorLogger);
Assert.assertTrue(headerPartition.toString().length() > 0);
Expand Down
28 changes: 14 additions & 14 deletions src/test/resources/TestIMP/HT/IMP/ASSETMAP.xml
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<AssetMap xmlns="http://www.smpte-ra.org/schemas/429-9/2007/AM">
<Id>urn:uuid:ed9ebdd9-ba03-49de-a88e-489ba3debf94</Id>
<AnnotationText>Meridian</AnnotationText>
<Id>urn:uuid:49e02e84-fee5-430a-8f0d-0063ff9f0e46</Id>
<AnnotationText>Untitled Project</AnnotationText>
<Creator>Blackmagic Design DaVinci Resolve 19.0.0b.0050</Creator>
<VolumeCount>1</VolumeCount>
<IssueDate>2024-07-24T16:54:58</IssueDate>
<IssueDate>2024-09-30T13:25:04</IssueDate>
<Issuer>Blackmagic Design</Issuer>
<AssetList>
<Asset>
<Id>urn:uuid:c840cf14-d4c1-4960-82d8-e8fac0553ed4</Id>
<Id>urn:uuid:6ed567b7-c030-46d6-9c1c-0f09bab4b962</Id>
<ChunkList>
<Chunk>
<Path>VIDEO_c840cf14-d4c1-4960-82d8-e8fac0553ed4.mxf</Path>
<Path>VIDEO_6ed567b7-c030-46d6-9c1c-0f09bab4b962.mxf</Path>
<VolumeIndex>1</VolumeIndex>
<Offset>0</Offset>
<Length>55071899</Length>
<Length>3651582</Length>
</Chunk>
</ChunkList>
</Asset>
<Asset>
<Id>urn:uuid:eb5765cc-b76b-47c7-bdf3-fc1a7c3d3817</Id>
<Id>urn:uuid:b285d8f3-0294-4207-8ea8-4f0b72314213</Id>
<ChunkList>
<Chunk>
<Path>AUDIO_eb5765cc-b76b-47c7-bdf3-fc1a7c3d3817.mxf</Path>
<Path>AUDIO_b285d8f3-0294-4207-8ea8-4f0b72314213.mxf</Path>
<VolumeIndex>1</VolumeIndex>
<Offset>0</Offset>
<Length>651208</Length>
</Chunk>
</ChunkList>
</Asset>
<Asset>
<Id>urn:uuid:d96ab03f-9c0b-49a1-ae8a-00e96710dad8</Id>
<Id>urn:uuid:67be5fc8-87f1-4172-8d52-819ca14c7a20</Id>
<ChunkList>
<Chunk>
<Path>CPL_d96ab03f-9c0b-49a1-ae8a-00e96710dad8.xml</Path>
<Path>CPL_67be5fc8-87f1-4172-8d52-819ca14c7a20.xml</Path>
<VolumeIndex>1</VolumeIndex>
<Offset>0</Offset>
<Length>13250</Length>
<Length>13275</Length>
</Chunk>
</ChunkList>
</Asset>
<Asset>
<Id>urn:uuid:40aeb8ba-60d3-4f79-b5b1-329f81d51689</Id>
<Id>urn:uuid:52f61ec0-1517-49b7-a8e2-941c0200c69a</Id>
<PackingList>true</PackingList>
<ChunkList>
<Chunk>
<Path>PKL_40aeb8ba-60d3-4f79-b5b1-329f81d51689.xml</Path>
<Path>PKL_52f61ec0-1517-49b7-a8e2-941c0200c69a.xml</Path>
<VolumeIndex>1</VolumeIndex>
<Offset>0</Offset>
<Length>1693</Length>
<Length>1708</Length>
</Chunk>
</ChunkList>
</Asset>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?xml version='1.0' encoding='UTF-8'?>
<CompositionPlaylist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.smpte-ra.org/schemas/2067-3/2016">
<Id>urn:uuid:d96ab03f-9c0b-49a1-ae8a-00e96710dad8</Id>
<Annotation>Meridian</Annotation>
<IssueDate>2024-07-24T16:54:58</IssueDate>
<CompositionPlaylist xmlns="http://www.smpte-ra.org/schemas/2067-3/2016" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Id>urn:uuid:67be5fc8-87f1-4172-8d52-819ca14c7a20</Id>
<Annotation>Untitled Project</Annotation>
<IssueDate>2024-09-30T13:25:04</IssueDate>
<Issuer>Blackmagic Design</Issuer>
<Creator>Blackmagic Design DaVinci Resolve 19.0.0b.0050</Creator>
<ContentOriginator>Blackmagic Design</ContentOriginator>
<ContentTitle>Meridian</ContentTitle>
<ContentTitle>Untitled Project</ContentTitle>
<ContentKind>advertisement</ContentKind>
<ContentVersionList>
<ContentVersion>
<Id>urn:uuid:367bbb62-2cee-4535-8a3c-04ad91e26a0e</Id>
<LabelText>Meridian 2024-07-24T16:54:58</LabelText>
<Id>urn:uuid:8753678f-3a6f-4280-b8cd-32e62c6dc52e</Id>
<LabelText>Untitled Project 2024-09-30T13:25:04</LabelText>
</ContentVersion>
</ContentVersionList>
<EssenceDescriptorList xmlns:r1="http://www.smpte-ra.org/reg/335/2012" xmlns:r2="http://www.smpte-ra.org/reg/2003/2012" xmlns:r0="http://www.smpte-ra.org/reg/395/2014/13/1/aaf">
<EssenceDescriptor>
<Id>urn:uuid:be034cf8-75ab-4b7c-aedc-800b9b99b1ad</Id>
<Id>urn:uuid:8f05bbd7-6528-493d-a521-061a866bb35f</Id>
<r0:RGBADescriptor>
<r1:PixelLayout>
<r2:RGBAComponent>
Expand Down Expand Up @@ -56,7 +56,7 @@
<r1:ComponentMaxRef>4095</r1:ComponentMaxRef>
<r1:ScanningDirection>ScanningDirection_LeftToRightTopToBottom</r1:ScanningDirection>
<r1:LinkedTrackID>2</r1:LinkedTrackID>
<r1:InstanceID>urn:uuid:0b005d58-fe0d-42c6-a9d5-6b131413d69d</r1:InstanceID>
<r1:InstanceID>urn:uuid:aa5c9055-930b-4310-bf7c-492e59f8b13b</r1:InstanceID>
<r1:VideoLineMap>
<r2:Int32>42</r2:Int32>
<r2:Int32>0</r2:Int32>
Expand All @@ -83,7 +83,7 @@
<r1:EssenceLength>80</r1:EssenceLength>
<r1:SubDescriptors>
<r0:JPEG2000SubDescriptor>
<r1:InstanceID>urn:uuid:ccf64724-2c99-479c-9cbb-8a796fefa8d9</r1:InstanceID>
<r1:InstanceID>urn:uuid:ced40dbb-9754-4e58-8182-e540b553689e</r1:InstanceID>
<r1:Rsiz>16384</r1:Rsiz>
<r1:Xsiz>1920</r1:Xsiz>
<r1:Ysiz>1080</r1:Ysiz>
Expand All @@ -94,7 +94,7 @@
<r1:XTOsiz>0</r1:XTOsiz>
<r1:YTOsiz>0</r1:YTOsiz>
<r1:Csiz>3</r1:Csiz>
<r1:CodingStyleDefault>01020001010503034000778888888888</r1:CodingStyleDefault>
<r1:CodingStyleDefault>01040001010503034000778888888888</r1:CodingStyleDefault>
<r1:QuantizationDefault>22971e96ea96ea96bc8f008f008ee2874c874c876470037003704577d277d27761</r1:QuantizationDefault>
<r1:J2KExtendedCapabilities>
<r2:Pcap>131072</r2:Pcap>
Expand Down Expand Up @@ -158,10 +158,10 @@
</r0:RGBADescriptor>
</EssenceDescriptor>
<EssenceDescriptor>
<Id>urn:uuid:c9f4927b-0e97-4c74-9b40-47127798315b</Id>
<Id>urn:uuid:9ba0f02b-24aa-4ba8-b2e5-72fbc15ca960</Id>
<r0:WAVEPCMDescriptor>
<r1:LinkedTrackID>2</r1:LinkedTrackID>
<r1:InstanceID>urn:uuid:97bc227c-3186-419c-8799-4f07a6b03703</r1:InstanceID>
<r1:InstanceID>urn:uuid:771842d2-2530-4472-b777-97cfb2dc5211</r1:InstanceID>
<r1:AudioSampleRate>48000/1</r1:AudioSampleRate>
<r1:SampleRate>48000/1</r1:SampleRate>
<r1:ChannelCount>2</r1:ChannelCount>
Expand All @@ -176,8 +176,8 @@
<r1:EssenceLength>64064</r1:EssenceLength>
<r1:SubDescriptors>
<r0:SoundfieldGroupLabelSubDescriptor>
<r1:InstanceID>urn:uuid:f0a7cdac-f937-47a8-9de6-c79d91bda510</r1:InstanceID>
<r1:MCALinkID>urn:uuid:ced75cb8-b74d-4aff-b86f-70de29bb6783</r1:MCALinkID>
<r1:InstanceID>urn:uuid:c3f05ca0-9c39-4355-af1d-de4d82a5dce9</r1:InstanceID>
<r1:MCALinkID>urn:uuid:0524bd7c-c9a0-4b94-9b37-974a543edbf1</r1:MCALinkID>
<r1:MCALabelDictionaryID>urn:smpte:ul:060e2b34.0401010d.03020220.01000000</r1:MCALabelDictionaryID>
<r1:MCATagName>Standard Stereo</r1:MCATagName>
<r1:MCATagSymbol>sgST</r1:MCATagSymbol>
Expand All @@ -188,18 +188,18 @@
<r1:RFC5646SpokenLanguage>en</r1:RFC5646SpokenLanguage>
</r0:SoundfieldGroupLabelSubDescriptor>
<r0:AudioChannelLabelSubDescriptor>
<r1:InstanceID>urn:uuid:bbb94356-110b-4be0-8be8-8478881113a5</r1:InstanceID>
<r1:SoundfieldGroupLinkID>urn:uuid:ced75cb8-b74d-4aff-b86f-70de29bb6783</r1:SoundfieldGroupLinkID>
<r1:MCALinkID>urn:uuid:9fa1d82d-ab89-4001-83bb-51c47595dae3</r1:MCALinkID>
<r1:InstanceID>urn:uuid:8fa0690e-af0a-4644-aee3-2a852d372e11</r1:InstanceID>
<r1:SoundfieldGroupLinkID>urn:uuid:0524bd7c-c9a0-4b94-9b37-974a543edbf1</r1:SoundfieldGroupLinkID>
<r1:MCALinkID>urn:uuid:20c58809-8c39-4da1-b7d0-e7c284f0245f</r1:MCALinkID>
<r1:MCALabelDictionaryID>urn:smpte:ul:060e2b34.0401010d.03020101.00000000</r1:MCALabelDictionaryID>
<r1:MCATagName>Left</r1:MCATagName>
<r1:MCATagSymbol>chL</r1:MCATagSymbol>
<r1:MCAChannelID>1</r1:MCAChannelID>
</r0:AudioChannelLabelSubDescriptor>
<r0:AudioChannelLabelSubDescriptor>
<r1:InstanceID>urn:uuid:72670bf5-0cfe-48d2-b30c-baf10cd362ba</r1:InstanceID>
<r1:SoundfieldGroupLinkID>urn:uuid:ced75cb8-b74d-4aff-b86f-70de29bb6783</r1:SoundfieldGroupLinkID>
<r1:MCALinkID>urn:uuid:dd0b2e9e-f8df-4433-a294-a9f956011af5</r1:MCALinkID>
<r1:InstanceID>urn:uuid:b35affb0-7229-4e24-afb7-94f8b4e78f92</r1:InstanceID>
<r1:SoundfieldGroupLinkID>urn:uuid:0524bd7c-c9a0-4b94-9b37-974a543edbf1</r1:SoundfieldGroupLinkID>
<r1:MCALinkID>urn:uuid:a410eaa1-1c04-46d2-8e00-79d6be465808</r1:MCALinkID>
<r1:MCALabelDictionaryID>urn:smpte:ul:060e2b34.0401010d.03020102.00000000</r1:MCALabelDictionaryID>
<r1:MCATagName>Right</r1:MCATagName>
<r1:MCATagSymbol>chR</r1:MCATagSymbol>
Expand All @@ -210,9 +210,9 @@
</EssenceDescriptor>
</EssenceDescriptorList>
<CompositionTimecode>
<TimecodeDropFrame>true</TimecodeDropFrame>
<TimecodeDropFrame>false</TimecodeDropFrame>
<TimecodeRate>60</TimecodeRate>
<TimecodeStartAddress>01:00:00;00</TimecodeStartAddress>
<TimecodeStartAddress>00:00:00:00</TimecodeStartAddress>
</CompositionTimecode>
<EditRate>60000 1001</EditRate>
<ExtensionProperties>
Expand All @@ -222,40 +222,40 @@
</ExtensionProperties>
<SegmentList>
<Segment>
<Id>urn:uuid:95b17e48-9b12-4328-832a-ff3938e01742</Id>
<Id>urn:uuid:c91d1e5f-0b02-4085-b237-eacb019caa32</Id>
<SequenceList>
<cc:MainImageSequence xmlns:cc="http://www.smpte-ra.org/ns/2067-2/2020">
<Id>urn:uuid:686ebd75-f5c4-44ca-a167-03020d104151</Id>
<TrackId>urn:uuid:144ea2a4-ed33-4e86-8878-2872acab0b2d</TrackId>
<Id>urn:uuid:23bfe257-1452-4787-8d46-941b578929a1</Id>
<TrackId>urn:uuid:0f241da9-8182-40c5-b29f-b5761cf9bd7e</TrackId>
<ResourceList>
<Resource xsi:type="TrackFileResourceType">
<Id>urn:uuid:5bc113ad-9140-454b-8f96-0e888403d1ce</Id>
<Annotation>VIDEO_c840cf14-d4c1-4960-82d8-e8fac0553ed4.mxf</Annotation>
<Id>urn:uuid:4532a6e6-1e34-48fa-8f9a-aa12d48a2b2a</Id>
<Annotation>VIDEO_6ed567b7-c030-46d6-9c1c-0f09bab4b962.mxf</Annotation>
<EditRate>60000 1001</EditRate>
<IntrinsicDuration>80</IntrinsicDuration>
<EntryPoint>0</EntryPoint>
<SourceDuration>80</SourceDuration>
<SourceEncoding>urn:uuid:be034cf8-75ab-4b7c-aedc-800b9b99b1ad</SourceEncoding>
<TrackFileId>urn:uuid:c840cf14-d4c1-4960-82d8-e8fac0553ed4</TrackFileId>
<Hash>L1Ofug8R6uipG8gkbqYrELs6w7c=</Hash>
<SourceEncoding>urn:uuid:8f05bbd7-6528-493d-a521-061a866bb35f</SourceEncoding>
<TrackFileId>urn:uuid:6ed567b7-c030-46d6-9c1c-0f09bab4b962</TrackFileId>
<Hash>cpQ/yEUY5vdyL3mNdTH7xfB+cdg=</Hash>
<HashAlgorithm Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
</Resource>
</ResourceList>
</cc:MainImageSequence>
<cc:MainAudioSequence xmlns:cc="http://www.smpte-ra.org/ns/2067-2/2020">
<Id>urn:uuid:5b32a98f-49ca-4ccd-8c1e-7a73caeb49dd</Id>
<TrackId>urn:uuid:7af9b966-c319-4569-921a-981bf3e9af9b</TrackId>
<Id>urn:uuid:ead0fcb6-4dc8-447f-900b-c5896ec74b4d</Id>
<TrackId>urn:uuid:ad38a4e8-838e-4a6d-84e1-9c69edeb615e</TrackId>
<ResourceList>
<Resource xsi:type="TrackFileResourceType">
<Id>urn:uuid:7be237f4-3a0d-4189-96fb-c86212967104</Id>
<Annotation>AUDIO_eb5765cc-b76b-47c7-bdf3-fc1a7c3d3817.mxf</Annotation>
<Id>urn:uuid:67519d5e-ed30-4919-96ee-2312f4c49c8a</Id>
<Annotation>AUDIO_b285d8f3-0294-4207-8ea8-4f0b72314213.mxf</Annotation>
<EditRate>48000 1</EditRate>
<IntrinsicDuration>64064</IntrinsicDuration>
<EntryPoint>0</EntryPoint>
<SourceDuration>64064</SourceDuration>
<SourceEncoding>urn:uuid:c9f4927b-0e97-4c74-9b40-47127798315b</SourceEncoding>
<TrackFileId>urn:uuid:eb5765cc-b76b-47c7-bdf3-fc1a7c3d3817</TrackFileId>
<Hash>4lh3WweP6n7fZpYG8LkR5lJ/BVM=</Hash>
<SourceEncoding>urn:uuid:9ba0f02b-24aa-4ba8-b2e5-72fbc15ca960</SourceEncoding>
<TrackFileId>urn:uuid:b285d8f3-0294-4207-8ea8-4f0b72314213</TrackFileId>
<Hash>il72nfYnuQCE1eykxSAmJxHvkwg=</Hash>
<HashAlgorithm Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
</Resource>
</ResourceList>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<PackingList xmlns="http://www.smpte-ra.org/schemas/2067-2/2016/PKL">
<Id>urn:uuid:52f61ec0-1517-49b7-a8e2-941c0200c69a</Id>
<AnnotationText>Untitled Project</AnnotationText>
<IssueDate>2024-09-30T13:25:04</IssueDate>
<Issuer>Blackmagic Design</Issuer>
<Creator>Blackmagic Design DaVinci Resolve 19.0.0b.0050</Creator>
<AssetList>
<Asset>
<Id>urn:uuid:6ed567b7-c030-46d6-9c1c-0f09bab4b962</Id>
<AnnotationText>VIDEO_6ed567b7-c030-46d6-9c1c-0f09bab4b962.mxf</AnnotationText>
<Hash>cpQ/yEUY5vdyL3mNdTH7xfB+cdg=</Hash>
<Size>3651582</Size>
<Type>application/mxf</Type>
<OriginalFileName>VIDEO_6ed567b7-c030-46d6-9c1c-0f09bab4b962.mxf</OriginalFileName>
<HashAlgorithm Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
</Asset>
<Asset>
<Id>urn:uuid:b285d8f3-0294-4207-8ea8-4f0b72314213</Id>
<AnnotationText>AUDIO_b285d8f3-0294-4207-8ea8-4f0b72314213.mxf</AnnotationText>
<Hash>il72nfYnuQCE1eykxSAmJxHvkwg=</Hash>
<Size>651208</Size>
<Type>application/mxf</Type>
<OriginalFileName>AUDIO_b285d8f3-0294-4207-8ea8-4f0b72314213.mxf</OriginalFileName>
<HashAlgorithm Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
</Asset>
<Asset>
<Id>urn:uuid:67be5fc8-87f1-4172-8d52-819ca14c7a20</Id>
<AnnotationText>Untitled Project</AnnotationText>
<Hash>CUwgGhQ0HX7TZXOkZKQeVl4Q4fc=</Hash>
<Size>13275</Size>
<Type>text/xml</Type>
<OriginalFileName>CPL_67be5fc8-87f1-4172-8d52-819ca14c7a20.xml</OriginalFileName>
<HashAlgorithm Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
</Asset>
</AssetList>
</PackingList>
Binary file not shown.
Binary file not shown.

0 comments on commit 674bdc0

Please sign in to comment.