Open ashutoshsingh0223 opened 3 years ago
On other note
mp4hls 480.mp4 audio.mp4 -o encrypt --encryption-mode=SAMPLE-AES
--encryption-key=3f59234ba0dce26165b94ad867069341
--encryption-iv-mode=random
--encryption-key-uri="https://dev.flowgiga.com/key/test.key"
mp4hls 480.mp4 audio.mp4 -o encrypt --encryption-mode=SAMPLE-AES
--encryption-key=3f59234ba0dce26165b94ad867069341
--encryption-key-uri="https://dev.flowgiga.com/key/test.key"
The above commands don't work when I use my own delivery service. I am delivering test.key
file through nginx. File has the following permissions -rw-r--r-- 1 ubuntu ubuntu 17 Apr 26 09:39 /var/www/test.key
The below command works and output is key.bin
with the same binary content as test.key
and similar permissions. Only difference is one is using relative URL and other a key service as mentioned in the above commands
mp4hls 480.mp4 audio.mp4 -o reencrypt
--encryption-mode=SAMPLE-AES
--encryption-key=3f59234ba0dce26165b94ad867069341
--output-encryption-key
I am trying to output my clearkey encrypted DASH manifest and AES-128 HLS manifest like this.
Then I created my
test.key
file with binary key like this:Now I am delivering the manifest created as
content-type:application/vnd.apple.mpegurl
and test.key ascontent-type:application/pgpkeys
and I also tried withcontent-type:application/octet-stream
.When I run this is safari my payback starts and timer starts moving but I cannot see anything in the video.
Am in doing something wrong.