[FFmpeg-devel] [PATCH] Allow HLS to decrypt stream when using a data url for the key

Simon Black sblack at omnifone.com
Tue Mar 18 09:28:34 CET 2014

Please bear with me, I will create some test URLs from within our service (that has no licensing issues).

On 16 Mar 2014, at 17:23, Michael Niedermayer <michaelni at gmx.at<mailto:michaelni at gmx.at>> wrote:

On Thu, Mar 13, 2014 at 10:00:46AM +0000, Simon Black wrote:
If HLS is trying to play an encrypted stream where the key is a data URL rather
than a file based key HLS will not work.

a data url within the key is one such as:

The error message is reported as:

[https @ 0x7f9eb00120c0] HTTP error 404 Not Found
Unable to open key file


This is caused as the URL is created with the value in URI field of the
EXT-X-KEY tag using

ff_make_absolute_url(seg->key, sizeof(seg->key), url, key);

the data: schema is ignored.

do you have a public url with which to test/verify this bugfix ?

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.

This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com

More information about the ffmpeg-devel mailing list