Skip navigation
jonlew90
Currently Being Moderated

Encrypting Live HDS with Flash Access V2

Aug 9, 2012 3:31 PM

Tags: #adobe #fms #4.5.1 #hds-live

In order to encrypt Live HDS content with Flash Access V2, it looks like I need to reconfigure 4 files:

 

  1. rootinstall/applications/livepkgr/Application.xml
  2. rootinstall/applications/livepkgr/events/_definst_/liveevent/Event.xml
  3. rootinstall/applications/livepkgr/events/_definst_/liveevent/Manifest. xml
  4. rootinstall/webroot/liveevent.f4m

 

Here are my configuration files:
1.

<Application>

    <StreamManager>

        <Live>

            <AssumeAbsoluteTime>true</AssumeAbsoluteTime>

        </Live>

    </StreamManager>

 

 

    <HDS>

        <Recording>

              <ContentProtection enabled="allow">

                <ProtectionScheme>FlashAccessV2</ProtectionScheme>

            </ContentProtection>

        </Recording>

    </HDS>

</Application>

 

2.

<Event>

  <EventID>liveevent</EventID>

  <Recording>

    <FragmentDuration>4000</FragmentDuration>

    <SegmentDuration>16000</SegmentDuration>

    <DiskManagementDuration>3</DiskManagementDuration>

 

 

              <ContentProtection enabled="false">

        <ProtectionScheme>FlashAccessV2</ProtectionScheme>

        <FlashAccessV2>

            <ContentID>livestreamJDLEW</ContentID>

            <CommonKeyFile>(common_key_file.bin)</CommonKeyFile>

            <LicenseServerURL>(license_server_url)</LicenseServerURL>

            <TransportCertFile>(transport_cert_file.der)</TransportCertFile>

            <LicenseServerCertFile>(license_server_cert_file.der)</LicenseServerC ertFile>

            <PackagerCredentialFile>(packager_credential_file.pfx)</PackagerCrede ntialFile>

            <PackagerCredentialPassword>(password)</PackagerCredentialPassword>

            <PolicyFile>(policy_file.pol)</PolicyFile>

        </FlashAccessV2>

    </ContentProtection>

  </Recording>

</Event>

 

3.

<manifest xmlns="http://ns.adobe.com/f4m/1.0">

  <media streamId="livestreamJDLEW" bitrate="100"/>

</manifest>

 

4.

<manifest xmlns="http://ns.adobe.com/f4m/2.0">

  <baseURL>http://<ipaddress>/hds-live/livepkgr/_definst_/liveevent/</baseURL>

  <dvrInfo windowDuration="3600"></dvrInfo>

  <media href="livestreamJDLEW.f4m" bitrate="100"/>

</manifest>

 

In (2), when I change the <ContentProtection> enabled tag to "true", the folder rootinstall/applications/livepkgr/streams/_definst_/livestreamJDLEW/ only receives the .control file -- the .bootstrap, .meta, .f4f, and .f4x files are no longer being generated -- and, therefore, no video is created.

 

How can I get my Live HDS streams encrypted with FAXS v2 working?

 

Thanks in advance!

Jon

 
Replies
  • Currently Being Moderated
    Aug 9, 2012 11:14 PM   in reply to jonlew90

    Hi,

     

    Could you tell me what version of FMS you're using? Also, could you check your application logs and core logs under <root_install>/logs.

     

    Thanks,

    Apurva

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 13, 2012 10:54 PM   in reply to jonlew90

    For multiple streams at event level, you need to have multiple enteries in the manifest.xml under livepkgr/events/_definst_/liveevent/Manifest. xml as so :

    <manifest xmlns="http://ns.adobe.com/f4m/1.0">

      <media streamId="livestream1" bitrate="100" />

      <media streamId="livestream2" bitrate="200" />

      <media streamId="livestream3" bitrate="350" />

    </manifest>

    For this manifest you'll typically be publishing the stream as livestream%i?adbe-live-even=liveevent via FMLE.

    For playback you need to use URL as : http://<server-ip>/hds-live/livepkgr/_definst_/liveevent.f4m

     

    Hope this helps.

     

    Thanks,

    Apurva

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 14, 2012 12:08 AM   in reply to jonlew90

    When you have the encryption configs at event level all the streams associated with that event will be encrypted. To verify, you can check the streams being created : livepkgr/streams/_definst_/livestrea1(2 or 3)/. There should be a .drmmeta file created.

     

    You can set any content ID you want. Setting the stream name as content Id will not encrypt only that stream. Whatever content Id you choose to set will be applied to all the streams associated with that event.

     

    Thanks,

    Apurva

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points