Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Can't play encrypted file

Help
MoHaX
2006-08-25
2013-04-23
  • MoHaX
    MoHaX
    2006-08-25

    Encryption process goes fine.
    When I try to play encrypted mp4 file, nothing happened at all.
    Debug version of DRMPlugin+mp4player doesn't start also, additionaly I get debugger popup with memory leaks warning.

    I use VC6 SP6 under Windows XP SP2 to compile encoder and player.

    Could anyone post solution?

     
    • piano
      piano
      2006-08-31

      I got the same problem. mp4player.exe did neither play encrypted nor not-encrypted mp4-files, --help or --version parameters are ignored.
      I found no debug.log or drmplugin.log which can possible point me to a solution. It seems mp4player is missing some core-libraries. I still trying to get it work.

      pianoguy

       
    • Everyone,

      Thanks for checking out and testing our code.

      About the problems you've encountered: first of all, are you running the encoder/player from Visual Studio or from console? If running from VS, everything should be set up and working, assuming that the build went ok. If running from a console, then perhaps you forgot to copy some of the necessary DLLs to the working directory.

      Anyway, you should check out the drmplugin.log file after encoding to see if it indicates some error. If not, then it's probably something with the parameters and configuration file for the mp4player. Can you send me your full console line for encoding/playing and configuration files (EncoderInfo.xml/PlayerInfo.xml) and I'll try to check it out?

      Best,
      Danijel Kopcinovic

       
    • piano
      piano
      2006-09-11

      Thanks for reply and dealing with this problem.
      I'm running both apps from console and have tested it now directly from VS. The encoder works well if i start it from VS, but the player gives a "Memory leaks detected" when starting from VS. That must be the problem ... i use Windows XP Home and VS 6.0, nothing special.

      The DLLs are in \Demo\mpeg4ip\mpeg4ip-1.5\DRMPlugin, as described in Your doc. I build the DRMPlugin-Project with Debug Configuration.

      Enconding works well, heres the drmplugin.log:
      OpenIPMPDOIContentInfoManager::GetContentInfo:...
      OpenIPMPDOIContentInfoManager::GetContentInfo: ok...
      OpenIPMPKeyManager::CreateAndStoreKey:...
      OpenIPMPKeyManager::CreateAndStoreKey: ok...
      OpenIPMPKeyManager::AddLicense:...
      OpenIPMPKeyManager::AddLicense: ok...

      The memory leaks must be the problem, but here are the config-files and app-parameter.
      EncoderInfo.xml:
      <EncoderInfo>
      <!-- Rights host address-->
      <RightsHostURL>localhost:8080</RightsHostURL>
      <!-- OMA silent header-->
      <SilentHeader>Silent:on-demand;www.silent.com</SilentHeader>
      <!-- OMA preview header-->
      <PreviewHeader>Preview:instant;www.preview.com</PreviewHeader>
      <!-- OMA content URL header-->
      <ContentURLHeader>ContentURL:www.content.com</ContentURLHeader>
      <!-- OMA content version header-->
      <ContentVersionHeader>ContentVersion:original-content-identifier:1.1</ContentVersionHeader>
      <!-- OMA content location header-->
      <ContentLocationHeader>Content-Location:www.content.com</ContentLocationHeader>
      <!-- OpenIPMP p12 file path-->
      <P12FilePath>c:\p12\&lt;/P12FilePath>
      <!-- <P12FilePath>nico.p12</P12FilePath>-->
      <!-- OpenIPMP random number file-->
      <RandomNumberFilePath>.\entropy.dat</RandomNumberFilePath>
      <!-- Content title, used by DOI content info manager-->
      <ContentTitle></ContentTitle>
      <!-- DOI content information-->
      <doi:KernelMetadata xmlns:doi="http://www.doi.org/">
        <DOI>TBD</DOI>
        <Identifiers>
         <Identifier>
          <IdentifierType>ISWC</IdentifierType>
          <IdentifierValue>T-034.524.680</IdentifierValue>
         </Identifier>
        </Identifiers>
        <Titles>
         <Title>
          <TitleValue>title</TitleValue>
          <Language>en</Language>
         </Title>
        </Titles>
        <StructuralType>visual</StructuralType>
        <Modes>
         <Mode>visual</Mode>
        </Modes>
        <PrimaryAgents>
         <Agent sequence="1">
          <Name>
           <NameType>Person</NameType>
           <NameValue>Matt Witte</NameValue>
          </Name>
          <Roles>
           <Role>Artist</Role>
          </Roles>
         </Agent>
         <Agent sequence="2">
          <Name>
           <NameType>Person</NameType>
           <NameValue>Freddy</NameValue>
          </Name>
          <Roles>
           <Role>Directory</Role>
          </Roles>
         </Agent>
        </PrimaryAgents>
        <Assertor>
         <Registrant>
          <Name>
           <NameType>Person</NameType>
           <NameValue>Persons Name Here</NameValue>
          </Name>
          <Identifier>
           <IdentifierType>PublisherCode</IdentifierType>
           <IdentifierValue>9901</IdentifierValue>
          </Identifier>
         </Registrant>
         <Authority>
          <Name>
           <NameType>Organization</NameType>
           <NameValue>Mutable</NameValue>
          </Name>
         </Authority>
        </Assertor>
      </doi:KernelMetadata>
      </EncoderInfo>

      encoding parameters:
      mp4creator -E -W=EncoderInfo.xml -X=UserName;nico -X=UserPass;xx -X=License;nico;2005-08-31;2007-08-31;ODRL -Y=openipmp;bfs orbit.mp4 enc-orbit.mp4.

      player-parameters:
      mp4player -W=PlayerInfo.xml -X=UserName;nico -X=UserPass;xx enc-orbit.mp4.

      PlayerInfo.xml:
      <PlayerInfo>
      <!-- OpenIPMP p12 file path-->
      <P12FilePath>c:\p12\&lt;/P12FilePath>
      <!-- OpenIPMP random number file-->
      <RandomNumberFilePath>.\entropy.dat</RandomNumberFilePath>
      <!-- OMA device registration database file-->
      <RegDatabasePath>\p12\ncacheagentregdb.xml</RegDatabasePath>
      <!-- OMA device rights database file-->
      <RODatabasePath>\p12\agentrodb.xml</RODatabasePath>
      <!-- OMA device certificate file-->
      <CertPath>\p12\deviceCertSigned.der</CertPath>
      <!-- OMA device private key file-->
      <PrivateKeyPath>\p12\deviceKey.der</PrivateKeyPath>
      <!-- OMA device CA certificate file-->
      <RootCAPath>\p12\OMACACert.der</RootCAPath>
      <!-- OMA device manufacturer-->
      <Manufacturer>manufacturer</Manufacturer>
      <!-- OMA device model-->
      <Model>model</Model>
      <!-- OMA device version-->
      <Version>1.0</Version>
      <!-- OMA device ROAP version-->
      <ROAPVersion>1.0</ROAPVersion>
      <!-- OMA device caching database indicator-->
      <Caching>false</Caching>
      <!-- OMA device trusted CA certificate file-->
      <TrustedCAPath>\p12\OMACACert.der</TrustedCAPath>
      <!-- OMA device supported algorithm-->
      <SupportedAlgorithm>md5</SupportedAlgorithm>
      <!-- OMA device supported algorithm-->
      <SupportedAlgorithm>md5rsa</SupportedAlgorithm>
      </PlayerInfo>

      pianoguy

       
    • piano
      piano
      2006-09-11

      The memory leaks warning only appears when i build everything with debug configuration, with release config i can start both apps from VS, but the player  still not react to given paramaters.

      pianoguy

       
    • Pianoguy,

      Since encoding went without problems, DRM part is working correctly. This means that something is wrong with the mp4player part. You indicated that you cannot play a plaintext file either. Can you check out the output of mp4player when you try to play a plaintext file? It should be in stdout.log or you can see it in Visual Studio output window if you run app from Visual Studio. Or try playing another file. It happened to us before that some files are badly encoded, or with unknown codec, so mp4player cannot play them.

      About the memory leaks: we have added the memory leak check to test if our code generates any. The check is set up only for debug version, that is why you cannot see it in release version. The leak sometimes happens (in mpeg4ip), when the play fails, as in your case. So you can ignore it. :)

      Danijel

       
    • piano
      piano
      2006-09-12

      Thanks for help, Danijel. I'm pretty sure to did all as described in Your doc, actually with no build error. The problem is: mp4player doesnt give any(!) output. Neither when i start it with --version, --help nor DRM-parameters. There is no .log-file created by the player. If i start the player from VS, i get this memory leaks warnings, which i dont care about from now on ;)
      I tried many different media-files till now, always no reaction. mp4creator works well, it produces even log-files. There must be something wrong with the mpeg4ip player ... i tried to build the latest "standalone" mpeg4ip, but its seems to be thought for VS .net, which i dont have.

       
    • This is strange. If build went without errors, then at least something should be written as mp4player output.
      Did you try to run it from Visual Studio and look at the output in VS output window? At least it should write down about adding plug-ins. If mp4player cannot find plug-ins for mp4 file, then it won't play anything, but it should write out about not being able to find appropriate plug-in. Please try this, and send me the output.

       
    • piano
      piano
      2006-09-13

      Hi Danijel, if i try to start mp4player from VS, it shows a console for one second and then the memory leaks warnings. Nothing else, no adding plug-ins appears and no log-files are created, no output. Started from VS, mp4creator shows a warning like "file to encrypt not found" because i dont give parameters ... this works correctly, so the DRM-plugins should be at the right place (for mp4creator). Both projects build without errors.

      I use Microsoft Visual C++ 6.0 Author Edition and i'm no C-guru ... can this be the problem? The Author Edition should work in normal way, but shows a popup-box when starting apps builded with it. I successfully build the MPEG4IP parts of OpenIPMP 0.81 with this one.

      piano

       
    • piano
      piano
      2006-09-15

      I installed service pack 5 for VS 6 as said in MPEG4IP FAQ, but its still the same, building went without errors and mp4player doesn't react to any parameters (or gives the memory-leak warning).

      @Danijel: can You give me the exact version/build number of Your VS? Maybee needless, because build gave no errors, but i'm running out of ideas ..

      piano

       
  • Essar
    Essar
    2009-10-12

    I too got the same problem. I was able to encrypt the mp4 content.
    But when i try to decrypt it only a  blank screen is seen.

    When I tried to play a non encrypted content it played the audio, but there is no video.In the case of protected file there is no Audio or video.

    I build on VC6 + XP SP2

    Could any one help me ?

    Regards
    Essar

     
  • avasilchenko
    avasilchenko
    2009-11-27

    Hi!
    I have some problems with roResponse. Can you share your roResponse. It will help me.

    Thanks in advance.

     
  • zhfufo
    zhfufo
    2010-01-24

    may be you should rebuild SDL.Dll and check  the message in drmplugin.log