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 mp4 file. please h...

Help
Anonymous
2011-07-04
2013-04-23

  • Anonymous
    2011-07-04

    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 Windows7 SP2 to compile encoder and player.

    Could anyone post solution?

    I can not play test30.mp4 and  enc-test30.mp4 in mp4player

    +++

    cd C:\jboss-4.0.2\bin
    run.bat

    cd C:\openipmp2\src\Demo\data
    OMADRM_create.bat

    cd C:\openipmp2\src\server\OMADRMWS
    admin_OMADRM.bat test godqhr01

    C:\openipmp2\doc\html>mp4creator -E -W=EncoderInfo.xml -X=UserName;root -X=UserP
    ass;godqhr01 -X=License;test;2011-06-30;2012-08-31;ODRL -Y=openipmp;bfs test50.m
    p4 enc-test50.mp4

    C:\openipmp2\doc\html>
    mp4player -W=PlayerInfo.xml -X=UserName;root -X=UserPass;godqhr01 enc-test30.mp4.

    ===

    <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>\p12\&lt;/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>

    ===

    <PlayerInfo>
    <!- OpenIPMP p12 file path->
    <P12FilePath>c:/p12/</P12FilePath>
    <!- OpenIPMP random number file->
    <RandomNumberFilePath>.\entropy.dat</RandomNumberFilePath>
    <!- OMA device registration database file->
    <RegDatabasePath>c:/p12/ncacheagentregdb.xml</RegDatabasePath>
    <!- OMA device rights database file->
    <RODatabasePath>c:/p12/agentrodb.xml</RODatabasePath>
    <!- OMA device certificate file->
    <CertPath>c:/p12/deviceCertSigned.der</CertPath>
    <!- OMA device private key file->
    <PrivateKeyPath>c:/p12/deviceKey.der</PrivateKeyPath>
    <!- OMA device CA certificate file->
    <RootCAPath>c:/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>c:/p12/OMACACert.der</TrustedCAPath>
    <!- OMA device supported algorithm->
    <SupportedAlgorithm>md5</SupportedAlgorithm>
    <!- OMA device supported algorithm->
    <SupportedAlgorithm>md5rsa</SupportedAlgorithm>
    </PlayerInfo>

     

  • Anonymous
    2011-07-07

    10:55:37.055-videosync-6: Max Window resolution 1600x900
    10:55:37.055-videosync-7: Setting video mode 176 144 1 1
    10:55:37.609-mp4file-7: cntl tracks 0
    10:55:37.609-mp4file-7: MP4 - got track 1 profile ID 0
    10:55:37.616-my_player-7: qtime video tracks 1
    10:55:37.616-my_player-7: Couldn't find video codec encv
    10:55:37.616-my_player-7: qtime audio tracks 1
    10:55:37.616-my_player-7: Couldn't find audio codec enca
    10:55:37.617-avsync-6: sync changed state Init to Wait Sync
    10:55:37.617-my_player-3: No valid codecs in file enc-anyar.mov
    10:55:37.617-avsync-7: grabbed persist

     
  • manisha
    manisha
    2012-04-30

    Hi there,

    i just wanted to ask that the p12 file which i got is "name.p12".

    but you have specified in file it lis like that

    "<!- OpenIPMP p12 file path-> <P12FilePath>c:/p12/</P12FilePath>"

    and is it required to change these parameters also

    <RegDatabasePath>c:/p12/ncacheagentregdb.xml</RegDatabasePath> <!- OMA device rights database file-> <RODatabasePath>c:/p12/agentrodb.xml</RODatabasePath> <!- OMA device certificate file-> <CertPath>c:/p12/deviceCertSigned.der</CertPath> <!- OMA device private key file-> <PrivateKeyPath>c:/p12/deviceKey.der</PrivateKeyPath> <!- OMA device CA certificate file-> <RootCAPath>c:/p12/OMACACert.der</RootCAPath>

    i didn't see anything like that in documents.

     
  • dacheng
    dacheng
    2012-06-01

    Hi All

    Do you resolve this issue?

    I also meet an issue about playing protected content mp4 file.
    Can you give me a hint?

    I can play the cleartext video.

    Can Someone tell me what I miss?

    The detail information list below:

    My platform is
    Fedora core 4
    MySQL 4.1.11
    Java 1.4.2.10 SDK
    JBoss 4.0.2
    OpenIPMP v202

    I install the DRM server and build plug-in SDK successfully.
    I can register a new user and download the .p12 file.
    I try using Demo usage to exercise openipmp lib.

    ======================================
    0. Edit the XML file


    <<<<<<< 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>/usr/DRMDemo/</P12FilePath>
    <!- OpenIPMP random number file->
    <RandomNumberFilePath>/usr/DRMDemo/entropy.dat</RandomNumberFilePath>
    <!- Content title, used by DOI content info manager->
    <ContentTitle></ContentTitle>


    <<<<<<<PlayerInfo.xml>>>>>>>>>

    <PlayerInfo>
    <!- OpenIPMP p12 file path->
    <P12FilePath>/usr/DRMDemo/</P12FilePath>
    <!- OpenIPMP random number file->
    <RandomNumberFilePath>/usr/DRMDemo/entropy.dat</RandomNumberFilePath>
    <!- OMA device registration database file->
    <RegDatabasePath>/usr/DRMDemo/ncacheagentregdb.xml</RegDatabasePath>
    <!- OMA device rights database file->
    <RODatabasePath>/usr/DRMDemo/agentrodb.xml</RODatabasePath>
    <!- OMA device certificate file->
    <CertPath>/usr/DRMDemo/deviceCertSigned.der</CertPath>
    <!- OMA device private key file->
    <PrivateKeyPath>/usr/DRMDemo/deviceKey.der</PrivateKeyPath>
    <!- OMA device CA certificate file->
    <RootCAPath>/usr/DRMDemo/MACACert.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>/usr/DRMDemo/OMACACert.der</TrustedCAPath>
    <!- OMA device supported algorithm->
    <SupportedAlgorithm>md5</SupportedAlgorithm>
    <!- OMA device supported algorithm->
    <SupportedAlgorithm>md5rsa</SupportedAlgorithm>
    </PlayerInfo>

    ======================================
    1. create protected content


    # mp4creator -E -W="/usr/DRMDemo/EncoderInfo.xml" -X="UserName;dacheng" -X="UserPass;admin123" -X="License;dacheng;2012-05-31;2013-05-31;ODRL" -Y="openipmp;bfs" playcat.mp4 en-playcat.mp4
    Warning - The configuration file was not found (/etc/axiscpp.conf).
    Using default values
    Warning - The configuration file was not found (/etc/axiscpp.conf).
    Using default values
    MP4ERROR: MP4File::FindIntegerProperty: no such property - moov.trak.mdia.minf.stbl.stsd.*.*.esds.decConfigDescr.objectTypeId
    MP4ERROR: MP4File::FindBytesProperty: no such property moov.trak.mdia.minf.stbl.stsd.*.*.esds.decConfigDescr.decSpecificInfo.info
    #


    ==>I check the "Content" and "Licenses" web page that has a new record, even if there are some warning and error message in the console,

    (Content page)
    playcat.mp4.track1 (10.9901/12.m.2)
    10.9901/12.i.2 - Packaged on: 05-31-2012
      
    (Licenses page)
    playcat.mp4.track1 10.9901/12.m.2  Matt Witte dacheng 05-31-2012 05-31-2013


    ======================================
    2. play  protected content


    #mp4player -W="/usr/DRMDemo/PlayerInfo.xml" -X="UserName;dacheng" -X="UserPass;admin123" en-playcat.mp4
    20:32:22.732-plugin-6: Adding RTP plugin h261 /usr/local/lib/mp4player_plugin/h261_rtp_plugin.so
    20:32:22.732-plugin-6: Adding RTP plugin isma-href /usr/local/lib/mp4player_plugin/href_rtp_plugin.so
    20:32:22.733-plugin-6: Adding RTP plugin mpeg4-latm /usr/local/lib/mp4player_plugin/latm_rtp_plugin.so
    20:32:22.736-plugin-6: Adding video plugin xvid-10 /usr/local/lib/mp4player_plugin/xvid10_plugin.so
    20:32:22.884-plugin-6: Adding audio plugin aac /usr/local/lib/mp4player_plugin/aac_plugin.so
    20:32:22.885-plugin-6: Adding video plugin rawv /usr/local/lib/mp4player_plugin/raw_video_plugin.so
    20:32:22.886-plugin-6: Adding RTP plugin enc-mpeg4-generic:audio /usr/local/lib/mp4player_plugin/isma_enc_rtp_plugin.so
    20:32:22.943-plugin-6: Adding audio plugin ffmpeg audio /usr/local/lib/mp4player_plugin/ffmpeg_audio_plugin.so
    20:32:22.944-plugin-6: Adding audio plugin mp3 /usr/local/lib/mp4player_plugin/mp3_plugin.so
    20:32:22.945-plugin-6: Adding RTP plugin enc-mpeg4-generic:video /usr/local/lib/mp4player_plugin/isma_enc_video_rtp_plugin.so
    20:32:22.946-plugin-6: Adding RTP plugin rfc3267 /usr/local/lib/mp4player_plugin/rfc3267_plugin.so
    20:32:22.946-plugin-6: Adding RTP plugin rfc-2429 /usr/local/lib/mp4player_plugin/rfc2429_rtp_plugin.so
    20:32:22.946-plugin-6: Adding audio plugin rawa /usr/local/lib/mp4player_plugin/raw_audio_plugin.so
    20:32:22.956-plugin-6: Adding video plugin MPEG4 ISO /usr/local/lib/mp4player_plugin/mpeg4_iso_plugin.so
    20:32:22.956-plugin-6: Adding RTP plugin h264 /usr/local/lib/mp4player_plugin/h264_rtp_plugin.so
    20:32:22.957-plugin-6: Adding text plugin href /usr/local/lib/mp4player_plugin/href_text_plugin.so
    20:32:22.958-plugin-6: Adding video plugin ffmpeg /usr/local/lib/mp4player_plugin/ffmpeg_video_plugin.so
    20:32:22.959-plugin-6: Adding audio plugin a52dec /usr/local/lib/mp4player_plugin/a52_audio_plugin.so
    20:32:22.959-plugin-6: Adding audio plugin wav /usr/local/lib/mp4player_plugin/wav_plugin.so
    20:32:22.960-plugin-6: Adding audio plugin celp /usr/local/lib/mp4player_plugin/celp_plugin.so
    20:32:22.960-plugin-6: Adding RTP plugin mpeg4-generic /usr/local/lib/mp4player_plugin/isma_rtp_plugin.so
    20:32:22.961-plugin-6: Adding video plugin h261 /usr/local/lib/mp4player_plugin/h261_plugin.so
    20:32:22.961-plugin-6: Adding audio plugin g711 /usr/local/lib/mp4player_plugin/g711_audio_plugin.so
    20:32:22.961-plugin-6: Adding text plugin plaintext /usr/local/lib/mp4player_plugin/plaintext_text_plugin.so
    20:32:22.996-videosync-6: Max Window resolution 1280x1024
    20:32:22.996-videosync-7: Setting video mode 176 144 1 1
    20:32:23.045-mp4file-7: cntl tracks 0
    20:32:23.045-mp4file-7: MP4 - got track 1 profile ID 21
    20:32:23.045-plugin-7: Found matching video plugin MPEG4 ISO
    20:32:23.045-videosync-7: persistence is 0x8b54f50
    20:32:23.045-plugin-7: Found matching video plugin MPEG4 ISO
    20:32:23.046-mp4file-7: video - 1345 samples
    20:32:23.046-mp4file-7: MP4 video max time is 53800 53.8
    Warning - The configuration file was not found (/etc/axiscpp.conf).
    Using default values
    20:32:23.237-videosync-7: video configured
    iso throw 1798
    20:32:23.241-mp4iso-7: Mpeg4 ncaught 1798 -> waiting for I
    iso throw 1798
    20:32:23.243-mp4iso-7: ts 1720,Caught exception in wait_i 1798
    iso throw 1798
    20:32:23.243-mp4iso-7: ts 1760,Caught exception in wait_i 1798
    iso throw 1798

    20:32:23.442-mp4iso-7: ts 53520,Caught exception in wait_i 1798
    20:32:23.442-mp4file-7: video snf end 1345 1345
    20:32:23.442-mp4file-7: video last frame 1346 1345
    20:32:23.442-media-6: video hit eof
    (Ctrl + C)
    20:33:07.510-avsync-6: sync changed state Wait Sync to Exit
    20:33:07.511-media-7: closing down media 0
    20:33:07.511-media-5: Video decoder skipped 0 frames
    20:33:07.511-media-5: video - bytes 321046, seconds 52.52, fps 25.019 bps 48902.7
    20:33:07.511-mp4iso-6: MPEG4 codec results:
    20:33:07.511-mp4iso-6: total frames    : 1345
    20:33:07.511-mp4iso-6: wait for I times: 0
    20:33:07.511-mp4iso-6: wait I frames   : 1
    20:33:07.512-video-5: video Sync Stats:
    20:33:07.512-video-5: Displayed-behind frames 0
    20:33:07.512-video-5: Total frames displayed 0
    20:33:07.512-video-5: Max behind time 0
    20:33:07.512-video-5: Skipped rendering 0
    20:33:07.512-video-5: Filled frames 0
    20:33:07.512-avsync-7: grabbed persist


    simultaneously, message in the JBoss console.
    20:32:23,069 INFO    08:32:23.069  osmsLoginManager      -- processLoginRequest() : for user: dacheng
    20:32:23,069 INFO    08:32:23.069  osmsLoginManager      -- processLoginRequest() :  user:dacheng pwd: AZICOnu9cyUFFvBp3xi1AA== db pwd: AZICOnu9cyUFFvBp3xi1AA==
    20:32:23,070 INFO    08:32:23.069  osmsUsers             -- osmsUsers:login() : Processing login for user: dacheng
    20:32:23,094 INFO    08:32:23.094  osmsRightsManager     -- processLicenseRequest() : for contentID: 10.9901/12.i.2


    ==> There is nothing in the player, no video, no audio, only blank.

    Best Regards
    DaCheng