Creating a DRM protected ASF file with WM Format SDK
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Creating a DRM protected ASF file with WM Format SDK

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> DRM
Author Message
Dennis
Guest





Posted: Tue Nov 08, 2005 5:30 pm    Post subject: Creating a DRM protected ASF file with WM Format SDK Reply with quote

I failed to create a DRM protected WMA file using WM Format SDK. For some
reason, I can also not find any information on the net about it. Does nobody
use Format SDK to create their files?

Here's the setup. I have my own application which is tested to produce
unprotected ASF files using Format SDK. I received a WMStubDRM.lib from WMLA
together with the four magic values such as certificate and signing key. Then
I followed exactly the steps listed on
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmform95/htm/protectingfileswithdrmversion7orlater.asp
to add DRM support. In particular, I do not link with wmvcore.lib, but with
the wmstubdrm.lib received from WMLA. However, in step 5 of the list,
SetDRMAttribute returns 0xC00D002B (invalid request). Downloaded any WMP/DRM
updates, and restarted, but no success.

So I figured, may it's my application. So I pulled up the wmvcopy sample
included with the Format SDK. At the very end of CWMVCopy::CreateWriter I
replaced "return (hr);" with the following code (only up to step 5, because
the program does not execute any further anyway), again linking with
wmstubdrm.lib instead of wmvcore.lib:

IWMDRMWriter *pDrmWriter = NULL;
BOOL bUseAdvancedDrm = TRUE;

_tprintf(TEXT("Query IWMDRMWriter\n"));
hr = m_pWriter->QueryInterface(IID_IWMDRMWriter, (void**) &pDrmWriter);
if (SUCCEEDED( hr ))
{
_tprintf(TEXT("SetDRMAttribute: Use_Advanced_DRM\n"));
hr = pDrmWriter->SetDRMAttribute(1, g_wszWMUse_Advanced_DRM,
WMT_TYPE_BOOL,
(BYTE *) &bUseAdvancedDrm, sizeof(BOOL));
if (SUCCEEDED( hr ))
{
_tprintf(TEXT("Success\n"));
} else {
_tprintf(TEXT("SetDRMAttribute returns 0x%08X\n"), hr);
}
pDrmWriter->Release();
}

return( hr );

Trying to copy jeanne.wma (from the WMP SDK), the result is the same:
Creating the Reader...
Reader Callback: File is opened.
Creating the Writer...
Query IWMDRMWriter
SetDRMAttribute: Use_Advanced_DRM
SetDRMAttribute returns 0xC00D002B
Could not create the Writer (hr=0xc00d002b).

The documentation mentions that only WMA and WMV codecs are supported, but
that's what was used here. Does anyone have an idea about what could go wrong?

Some more facts: Windows XP SP2, clean DRM system, Format SDK 9.5, WMP
10.00.00.3901

Thank you,
Dennis

Back to top
Sebastian Gottschalk
Guest





Posted: Tue Nov 08, 2005 5:30 pm    Post subject: Re: Creating a DRM protected ASF file with WM Format SDK Reply with quote

Dennis wrote:

Quote:
I failed to create a DRM protected WMA file using WM Format SDK.

Just to clearify that: This is no such thing linke a DRM protected WMA
file. It's either WMA or DRM protected, the latter violating the
specification of WMA (STMPE VC-1 Audio Layer). This is a quite serious
legal issue, as selling such files as WMA is basically fraud.

So you should really think if you actually want to got through all that
trouble for ending up with about nothing.
--
Dieser Schrieb stellt eine private Meinungsäußerung des Verfassers im
Sinne der gesetzlich garantierten Meinungsfreiheit dar. Wem das nicht
passt, der wende sich an das Bundesverfassungsgericht. Viel Erfolg!
Key: 0xA0E28D18 FP: 83AE 1136 1E2B 9767 8FB2 7594 4128 1A9E A0E2 8D18
Back to top
Dennis
Guest





Posted: Tue Nov 08, 2005 5:30 pm    Post subject: Re: Creating a DRM protected ASF file with WM Format SDK Reply with quote

Thanks for your response. Now let me clarify: I am trying to create a WMDRM
protected ASF, containing audio samples encoded using the Windows Media Audio
codec. AFAIK, this is perfectly legal. Sorry for using
possibly-legally-incorrect language.

Sebastian, do you also have technical advice on the issue?

Dennis

"Sebastian Gottschalk" wrote:

Quote:
Dennis wrote:

I failed to create a DRM protected WMA file using WM Format SDK.

Just to clearify that: This is no such thing linke a DRM protected WMA
file. It's either WMA or DRM protected, the latter violating the
specification of WMA (STMPE VC-1 Audio Layer). This is a quite serious
legal issue, as selling such files as WMA is basically fraud.

So you should really think if you actually want to got through all that
trouble for ending up with about nothing.
--
Dieser Schrieb stellt eine private Meinungsäußerung des Verfassers im
Sinne der gesetzlich garantierten Meinungsfreiheit dar. Wem das nicht
passt, der wende sich an das Bundesverfassungsgericht. Viel Erfolg!
Key: 0xA0E28D18 FP: 83AE 1136 1E2B 9767 8FB2 7594 4128 1A9E A0E2 8D18


Back to top
Dennis
Guest





Posted: Thu Nov 10, 2005 5:30 pm    Post subject: Re: Creating a DRM protected ASF file with WM Format SDK Reply with quote

Sebastian, it's a DRM protected ASF file containing audio content encoded
using a Windows Media Audio codec. I hope this is legal enough.

Anyway, the problem is a technical (may a documentation) one, not a legal
one. I would appreciate if anyone out there using WM Format SDK to encode
protected ASF files could share their thoughts.

Thank you,
Dennis

"Sebastian Gottschalk" wrote:

Quote:
Dennis wrote:

I failed to create a DRM protected WMA file using WM Format SDK.

Just to clearify that: This is no such thing linke a DRM protected WMA
file. It's either WMA or DRM protected, the latter violating the
specification of WMA (STMPE VC-1 Audio Layer). This is a quite serious
legal issue, as selling such files as WMA is basically fraud.

So you should really think if you actually want to got through all that
trouble for ending up with about nothing.
--
Dieser Schrieb stellt eine private Meinungsäußerung des Verfassers im
Sinne der gesetzlich garantierten Meinungsfreiheit dar. Wem das nicht
passt, der wende sich an das Bundesverfassungsgericht. Viel Erfolg!
Key: 0xA0E28D18 FP: 83AE 1136 1E2B 9767 8FB2 7594 4128 1A9E A0E2 8D18
Back to top
Sebastian Gottschalk
Guest





Posted: Thu Nov 10, 2005 5:30 pm    Post subject: Re: Creating a DRM protected ASF file with WM Format SDK Reply with quote

Dennis wrote:

Quote:
Sebastian, it's a DRM protected ASF file containing audio content encoded
using a Windows Media Audio codec. I hope this is legal enough.

That's yet fine.

Quote:
Anyway, the problem is a technical (may a documentation) one, not a legal
one.

Wrong. If you claim that your files are actually WMA, then you're supposed
to follow the STMPE VC-1 specification which strictly defines what WMA is
and what is not. The specifiation is official and signed by a company
comitee, protected by name and market rights. If you're making worng claim
about your files, then for the one they can sue you for market law
violation, and the customers can sue you for not delivering what you
promised (according to their natural understanding of your promises, which
is "WMA according to VC-1 specifiation" and not "some file with file
extension .wma which contains a bunch of data and I can't play it").

From a lawful point of aspect the DRM itself would be illegal anyway.
--
Dieser Schrieb stellt eine private Meinungsäußerung des Verfassers im
Sinne der gesetzlich garantierten Meinungsfreiheit dar. Wem das nicht
passt, der wende sich an das Bundesverfassungsgericht. Viel Erfolg!
Key: 0xA0E28D18 FP: 83AE 1136 1E2B 9767 8FB2 7594 4128 1A9E A0E2 8D18
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> DRM All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB