opendcp icon indicating copy to clipboard operation
opendcp copied to clipboard

Subtitle problem + ID request

Open GoogleCodeExporter opened this issue 9 years ago • 1 comments

*Please fill in all defect information below.*

Product Version: opendcp 0.29.0 and beta test version of the 0.30.0
GUI or CLI: CLI
Operating system: LINUX DEBIAN 6 (6.0.8)

Hi Terrence,

thanks for the update now the HASH field order is work fine w/o error.

Now my problem is under CLI with the subtitle. And I would like to add a simple 
idea for programming what is solve in the future any subtitle problem under GUI 
and or CLI. ( I hope :) ) 

Everyone can create a standard subtitle XML (interop/SMPTE) file with 
SubtitleEdit - free software -.

The subtitle filename is the UUID_sub.xml ( the uuid is generated by Subtitle 
Edit)  In the Subtitle XML creation we can define the subtitle font in my 
example I use the arial.ttf

Before the XML creation we need to create the Subtitle folder. The folder name 
is the UUID of the subtitle XML and inside the folder the file name is 
uuid_sub.xml plus the font file of the subtitle. (arial.ttf or other)

opendcp_xml —reel pic1.mxf aud1.mxf /UUID/uuid_sub.xml  /UUID/arial.ttf other 
parameters or more reels

or

opendcp_xml —reel pic1.mxf aud1.mxf /UUID/uuid_sub.xml arial.ttf  etc etc...

The Hash generator is create the Hash value of the subtitle file and the font 
file and copy the path to the CPL. (UUID/uuid_sub.xml and /UUID/arial.ttf

for other reel the UUID folder and file name is diff of course.

I think with this solution everyone add working subtitle.

And other small update request if its possible.

Your XML and HASH generator is super super super fast.
Is it possible to add the KeyID to the XML… I mean if the essence is 
encrypted the CPL is write the KeyID UUID? For small or big project this 
opendcp XML solution is work fine and fast - under CLI. And is really good for 
encrypted DCP repair. :)

Thanks
 :)

Tom 


example for subtitle and KeyID:

SUBTITLE: Interop XML Subtitle with SubtitleEdit

<?xml version="1.0" encoding="UTF-8" ?>
<DCSubtitle Version="1.0">
    <SubtitleID>5cd41bea-7f56-4f20-afce-adfee581a31a</SubtitleID>
    <MovieTitle>TEST-MOVIE</MovieTitle>
    <ReelNumber>1</ReelNumber>
    <Language>english</Language>
    <LoadFont URI="Arial.ttf" Id="Arial" />
    <Font Id="Arial" Color="FFFFFFFF" Effect="border" EffectColor="FF000000" Italic="no" Underlined="no" Script="normal" Size="42">
        <Subtitle SpotNumber="1" FadeUpTime="5" FadeDownTime="5" TimeIn="00:01:04:130" TimeOut="00:01:08:009">
            <Text VPosition="8" VAlign="bottom" HAlign="center" Direction="horizontal">
                <Font Italic="yes">OpenDCP is the BEST</Font>
            </Text>
        </Subtitle>
    <Subtitle SpotNumber="2" FadeUpTime="5" FadeDownTime="5" TimeIn="00:01:15:052" TimeOut="00:01:17:167">
            <Text VPosition="8" VAlign="bottom" HAlign="center" Direction="horizontal">This is subtitle</Text>
        </Subtitle>
</Font>
</DCSubtitle>


ASSET:

<Asset>
      <Id>urn:uuid:5cd41bea-7f56-4f20-afce-adfee581a31a</Id>
      <ChunkList>
        <Chunk>
          <Path>5cd41bea-7f56-4f20-afce-adfee581a31a/5cd41bea-7f56-4f20-afce-adfee581a31a_sub.xml</Path>
        </Chunk>
      </ChunkList>
    </Asset>
    <Asset>
      <Id>urn:uuid:6d551cbb-5aea-47fd-8625-29d66128da15</Id>
      <ChunkList>
        <Chunk>
          <Path>5cd41bea-7f56-4f20-afce-adfee581a31a/Arial.ttf</Path>
        </Chunk>
      </ChunkList>
    </Asset>


CPL:

<Id>urn:uuid:bf086962-a9d7-4eb4-9c05-898ee7308c77</Id>
            <AnnotationText>REEL1</AnnotationText>
            <AssetList>
                <MainPicture>
                    <Id>urn:uuid:5f4ecea7-49d5-4c2f-91fd-97b1f07b9f6b</Id>
                    <AnnotationText>TEST_PIC</AnnotationText>
                    <EditRate>24 1</EditRate>
                    <IntrinsicDuration>12000</IntrinsicDuration>
                    <EntryPoint>0</EntryPoint>
                    <Duration>12000</Duration>
            IF ENCRYPTED---><KeyId>urn:uuid:a62eeddf-8c5b-4bd1-a389-e3951a9c7fd6</KeyId>
                    <Hash>OgjDb8Hy6hRBV/vLQvAtcknrtGc=</Hash>
                    <FrameRate>24 1</FrameRate>
                    <ScreenAspectRatio>2.39</ScreenAspectRatio>
                </MainPicture>
                <MainSound>
                    <Id>urn:uuid:43ac9b4d-b02d-44bc-bdf8-a4ef047aa918</Id>
                    <AnnotationText>TEST_AUD</AnnotationText>
                    <EditRate>24 1</EditRate>
                    <IntrinsicDuration>12000</IntrinsicDuration>
                    <EntryPoint>0</EntryPoint>
                    <Duration>12000</Duration>
            IF ENCRYPTED---><KeyId>urn:uuid:df2d2ea1-9818-4f5a-b260-2bdab4f1b641</KeyId>
                    <Hash>yKooobWkh9YPZnemBau5HNcr70A=</Hash>
                </MainSound>
                <MainSubtitle>
                    <Id>urn:uuid:5cd41bea-7f56-4f20-afce-adfee581a31a</Id>
                    <AnnotationText>SUBTITLE</AnnotationText>
                    <EditRate>24 1</EditRate>
                    <IntrinsicDuration>12000</IntrinsicDuration>
                    <EntryPoint>0</EntryPoint>
                    <Duration>12000</Duration>
                    <Hash>pHe9HlAidJ1Uq7OpSscn70YLhAk=</Hash>
                </MainSubtitle>
            </AssetList>

PKL:

<AssetList>
    <Asset>
      <Id>urn:uuid:5cd41bea-7f56-4f20-afce-adfee581a31a</Id>
      <AnnotationText>SUBTITLE</AnnotationText>
      <Hash>pHe9HlAidJ1Uq7OpSscn70YLhAk=</Hash>
      <Size>62442</Size>
      <Type>text/xml;asdcpKind=Subtitle</Type>
      <OriginalFileName>5cd41bea-7f56-4f20-afce-adfee581a31a/5cd41bea-7f56-4f20-afce-adfee581a31a_sub.xml</OriginalFileName>
    </Asset>
    <Asset>
      <Id>urn:uuid:6d551cbb-5aea-47fd-8625-29d66128da15</Id>
      <Hash>BW0grFa+dtB2SAwsq1OBH++5G3M=</Hash>
      <Size>367112</Size>
      <Type>application/ttf</Type>
      <OriginalFileName>5cd41bea-7f56-4f20-afce-adfee581a31a/Arial.ttf</OriginalFileName>
    </Asset>




Original issue reported on code.google.com by [email protected] on 16 Mar 2014 at 12:47

GoogleCodeExporter avatar Mar 13 '15 16:03 GoogleCodeExporter

I'll investigate adding this

Original comment by [email protected] on 16 Apr 2014 at 6:38

  • Changed state: Accepted

GoogleCodeExporter avatar Mar 13 '15 16:03 GoogleCodeExporter