3 Replies Latest reply: Nov 19, 2014 9:48 AM by bbb_999 RSS

    Could i decompress it using a SDK fuction?

    zm dynasty

      I'm managing to create a Title Create tool,
      I start with study the codes in .prproj,and I found the title prefs was compressed as code like below
      could i decompress it using a SDK fuction?or there is an other way?

      codes:

      <ImporterPrefs Encoding="base64" Checksum="69363306">AQAAAAAAAACAgAAAAAAAAENvbXByZXNzZWRUaXRsZQB4nO0da1MbOVI/xbXf
      iR+ADVVabxEet9SRkMJsEn9KGWOI74zts00C++Pvth/S6D02hODx3hQFzPRD
      akndrZ7WjPS//0rxm3gQd2IkKuKbGIiZmIuhmIix+FX8IurijajB/wpgxqIP
      8GvAjsUtYf8Ql+JEbAFVk2h+E20hxQHQTMQVcHwRF3A1EYsAfgmlLKDOAWE+
      OvW2RQPqrIk9+G3BbwMoqgGNFO+oZL7/IjqAX9A9Sjcnig9QQ088AvYEqGbi
      O9zNQIo20M3EPXBgyWkqCaUu6G4BWF1PH+4H1B9tcQPYEdTGJS2jRolmWb+M
      4KcN7WMZfLgUx1DWnKCnxM2UPhTpxiAt1ngDP/kS5tOifBOgXUQlDDG2jOfQ
      n4uIlBqO0OUjVs3REmzvnOQdEn4mzmjcJlTDHPTvY1J/kd+m9u+PqT8GUPqC
      6rkBeLy8X1S7Df0llDIlGXXbYzjELKvRl+oIar6jsdEyxGRqKJmm4jOM0in8
      PYZSOgBrkSVhzSEO6btwfSreAwwhu0DfVNQuBmk74hBG/hh+3sMYXVBr34h9
      6JEduGqKbcUZ0kkY3RlI+x1a9JXaNFPt1ras8RcAuQUabDnej6nMZdx+z4a9
      5vfrAekd6xHeD5T2dYAGx8To3QHV1iMs3t8oHX8D7cZ6DUzC3wm038ZqiKS6
      uGW63xBvQyXIMiG5JiC9TeXC2c/kyamxB1YvpdtRg3HPa4nG57Vld8XW7C5p
      T0ri6kqj9xZo+uLfSl/uydPF7GVH2UsHZO0BDeIvqPUDqhPnObRY1Ot9mIVY
      wnxaCX4u9LbnSvemAEUvp33dBdzjf+Qc05xzR3x2K9ma0nyIj7UYMUckYQ8g
      I+DFWekx86LplraozHjrqrllurhLuHsgOxxk/nrq2GtahuYTZFhezz8A1gPY
      V4D1YTSuxL+U73BLYv0ZUP8dEofx23PxH6DqkSwoQ5xKQskTGiUNO4SSJ6QJ
      OCZmfLCMfNqwrHP6O15ajqFDK0fMQHyC/9fkO9uZpYcYCRo4JFvCWXWo7jRH
      HCfBJw9JlreA+xOu2dJ8K0hRSas1h2QFY8KdAM2IdItHZhs08w1IUnmhK/ZV
      q9QsQVdGpFVTGpvXlnL12pH6adqureeQPBuOUIzK9k567uhlzwA64vGh7P0f
      yErGJBfO375exGlQqyYUf39S7XGj9RAryXrQD2IvnSntnkOs49eYpkuV0V2x
      jK56whnRHDhW8QdaiZ5XObYN8ZKeGa4oNsb5xfasn1Rbef5NUUmyySmV3Sfb
      vCTaDs0f/WxU6vRUhWWtRp8q13g9u23LaHU7tba6d76esW6833Dtszmfp3vL
      Syg178c0L65pV1lvF0MH/Rm11MK/mxam9G2uSh2rUjZP/8o5eDN00Ne06oox
      Yv5zWDwvp5/B83krkSdB5uZnRV0Gt69Df/vKaobwrDGguLypetzAsB8exO9w
      bTIW21mew8cw9T9JCpOHdWFob5zx1D3YoThc51nY2tIUq9s11ttRz5/Y/y1L
      bhvuU8byEzEKzTcir7Bw2mtDme4PeobCXjCaE9YRo2J++xnUHgH32ZS52N5D
      X2DjJGCH8KSJGerrTHYXxjSnpP1sKzadC2***9L3EfjmHnmNNlDdKUtdZJwh
      leaeUJ+dEByf2x6XlpTH4ZZqeyG0lluSAvMVfmmuv7IxxkPsBly297ihXulR
      LuCW/OIj8aCN7dFaDeaDG1kZIS17ldBeq0s8wSo0OoerW+nfV6Cvjyz/0cry
      gJrirbLQPI+1sPqqpn5Ya00/TSmbM8wkO6JcJ+ppL8tn6bz8ckqTy+EnfPQG
      euaK2UKMTtLaDbeSfaqb9QuxkspGCTCfjvgJrWzhTL2V2UuKIsXdtWwthUdZ
      OduK8cgXuJuQl+RZnnMt2qPn00kakRlhxsqqF6SHuvfj2Kd5nGMYsSvy6yNq
      y9cssuioGeeCbDL0jU/hxLU5nQ3mLHSPPIexT9ZetDper8un1uuVruYj/IS0
      5zaT5UyNUMwqdpVV+DzuHBybgXkFEus0c4wLk4Kz3SPLXmyIpBmaVyX9nrUx
      kuQ/Js8xUDPRdZbRR90JpXdLezo/ZpN9qOl79pB5FGg/Lu6c+saXLEUlKZZj
      C/tdzXw4dj5/ior7fkwrNT3LC9ezUQhxqTrttZNT1X8P5H8a4H92KJJr0fVu
      jkypUuzVFcS9g+sHknQbNPbn/XXXZ+yaERPTiHwbKS0kXEnfRAtpghZjRLS3
      QZayS1r9s/6+tqXUV7CVLejN3Ve1FzuHViRrseVal620NsZWaqDPP/L7dFsI
      oToe42cXI39enFZPvvNQ8SLF96ANd+r9KvvtonnA2faicBvD0WUM/nQJttcu
      wc7aJdhduwTNtUvQWrsEe2uXYH/tEtSz9ynXKUO9ADKs3zPWc30j53f2X0mS
      9fvIeq6X3LHWXn62JFu5+unm3X6+tdYKYbEoRRGstkZfFBRDjvVHNixHEWy3
      Rm8aF0OO9cc6LMf6I566+hKnGHIUI/opRgRUK0gUVCtIJFRbKRpqvqI0xfCq
      +VHRc+Rw4XY2wl5R8u/nQRtCSN66a19JgPj4VwNxCkl9g7m2e4K7+sBZ2jiF
      pO8dR7Qyee6sRddUfXGs29P8VoWdZQuxkjKQQ2flz+QxYzibg7N07jpBCovv
      3PNKIH/Pdyn4qx79Fkkc63O9FfYXPI0or0tjSjgIVixiGElajN+jjmhtkt87
      sVfO03hT1yHoXj9al43ht/x7tGaMq6e2DuuRTuFNXSbXuqVWyUKMpHf4WWf0
      2w8VMczyjqjvem5BTby25Narzbd0PbD00Ibwm6v3Tj/pewk1YO5xluHMPd6F
      sq0mcX3jJG5snMTbGyfxjidxg96XSUtt8CnJDcWPSm+8Y+iN4jjbHxkv7Hsi
      2z8baOybVZ8z/l2rwX+gN53CN0hiFDZf2L44zm0fzk9TNQf5LTQ4nwd7zX17
      MY23eTGC0O9aplpn09i872gW5S8i7Tk2TsEzM+tW7H1IH+vHOi8Vr7SeEa/o
      t8yKGKmUccomxiluTUWMUvDJslVGKhsl8eZHKuuWuIxOyuhkndHJ3qtFJzuv
      Ep2UeZQyPlm3Ty9jkyJIvPmxSZlFKeOUMk6x32x6zqrPfhmtlNFKGa2U0Uqh
      JS6jlTJaKaOVv0O0Yt48fk600iyjlTJaKXC00qCv7PK8vManvbymKCOXMnIp
      I5cycikjl5eJXFyIu18bRxIxWCzG0d8iPD9SceF6PyuN118qhSX4lBzz4Lyl
      906y98kxcU+KQtK48lknC7I5lzLc2yKfGr9uv6cogiUcKcvwy0lR2fz663df
      Q+IUqCF9qmMgPlstrCv9iOFcnhitS9PNKbebKLcbpWUdGGa12O2z4YbK33vU
      hkvBOzbhTo5h2+M4l6cD8CsLWws4fQpfhz/TTmQjGpH4GqhLYdcf9msc5/Is
      kzmk8GXuLpW568nsYs2uISGn2csAJZqS5+lkGmC3M8T59RxkVN9Ai3CnxcdE
      rXFKO5qP4f24Pl6GG1VfqrnWt+wUld+m+B6MIQXuPoE9yfPeXMUCi6z9KSzi
      XE/+cr49/0uJ0reXvr307aVvL337Jvr2/PXQ0reXvr307aVvL3376/p2H8aZ
      mjPwJLfkx5jGvecT5Eyux9zj3RH123f6atycIheD6ppjMHMaAOdW9R2eYToR
      U+VxH6Ozkd7B4emn7HzIfLfJOKLO7tMZn7ibY13ln1iTH2lOwT3J8eTBhsLp
      Pchjpdn5UCyD9zXHsxz31exkl7wDmD34u+2Ua5eB9oGZNzfL6EOLcXLLj5wW
      8v9ydkY1R9ddS2BenVnFa3eXhBgsxc02p8crdf5rReCZufq8N73PfZ0w04xj
      LnjHUZcC69H7f7vtGpKG5O37jWc1mL3DccWjTufXtdQe1y5e0im07Ku2gaKu
      rItzCwa3fF/jb5mEPBPpfvJ1Nk0nnR47i9pqHgXi83oNKY5pvXekfA3y2afy
      Gd1iy8ISV+WIn3PTV1coB5YWo0GduiD7m2VtOYCWHIJGsG76WElRyZh6ACF4
      KgfLybZ8rXR3JvgUC6w9dUbrapQVVSNG7fckt9a5iuU5OB53z3OoZCPsY5sK
      +zk7tYXbp1e0GadPuU7R6BEPz3DxKatKR16u7xY0F9vngIzVtaktpKkGPsSF
      urN5NTrzm1Up9vv3Qp8xY+4r4ja79r3LlPqgDzVdwi/OSOHOwSGFJJvqKX9s
      okgfKh0bwbrxJHssHWc+4wd1HxmZ+T7duqoXP1WD+Opjdpr2iXrGCd/vyduP
      90Zx+RZXTWKwxw6zuFWfJeBDNR1rmfuU7mIQkpad8aaV7knMDDkV+eeyt5Uv
      Mue649PwhPj/Au9BvUU=</ImporterPrefs>

        • 1. Re: Could i decompress it using a SDK fuction?
          Zac Lam Adobe Employee

          Hi there,

           

          If you are building a tool that creates titles and saves them to a format Premiere Pro understands, you could use the PRTL file format.  To generate sample files in this format, just create the titles in Premiere Pro.  Then in the Project panel, select the titles you want to save to the PRTL format, and choose File > Export > Title.  The PRTL are not base64-encoded, and are easily readable in an XML editor.  Using these sample files as a guide, you could create a tool that generates the same format, so that the files can be imported into Premiere Pro.

           

          To answer your original question: no, there is no SDK function to decompress base64-encoded data.  You'd need to provide your own function for that.

           

          Regards,

           

          Zac

          • 2. Re: Could i decompress it using a SDK fuction?
            peulichon

            Hi,

            Well, you (adobe) compresse the title definition with base64, add a binaryHash, but doesn't give acces to the hashing format ???

            I (and i'm not the only person) search to play with an title already in a prproj file. change title, change police, change size...all title parameter.

            Not with the export title option but with script for automation.

            I parse the prproj/xml file (ungzip), with python I found the title "Media", I decompresse, decode, utf-16 etc...

            I change my title and recollapse my xml title.

            Now, Adobe block me for editing the BinaryHash ??

            You don't provide any reference for playing with jsx, C++ pluggin is little too big for me and i'm not sur you give a big control for all the premierepro function.

            What the problem for give us the hashing format ? Explain me please I don't understand !

             

            Regards

             

            Ian.

            • 3. Re: Could i decompress it using a SDK fuction?
              bbb_999 Adobe Employee

              > What the problem for give us the hashing format ?

               

              Adobe does not support or recommend parsing .prproj files for data. Instead, PPro provides numerous APIs for working with that data.