Hi Barry,
For some reason I can NOT able to play the stream. It is throwing error. I am on ubuntu.
script :
`openssl rand 16 > static.key`
key_as_hex=$(cat static.key | hexdump -e '16/1 "%02x"')
echo ${key_as_hex}
for i in {0..3}; do
init_vector=
printf '%032x' $i
echo ${init_vector}
openssl aes-128-cbc -e -in video_low_$(($i+1)).ts -out video_low_enc_$(($i+1)).ts `-p -nosalt -iv $init_vector -K $key_as_hex
done
apache log:
1.2.3.1 - - [03/Sep/2010:08:54:44 -0700] "GET /test/index.m3u8 HTTP/1.1" 304 150 "-" "Apple Mac OS X v10.6.4 CoreMedia v1.0.0.10F569"
1.2.3.1 - - [03/Sep/2010:08:54:44 -0700] "GET /test/index.m3u8 HTTP/1.1" 200 609 "-" "Apple Mac OS X v10.6.4 CoreMedia v1.0.0.10F569"
1.2.3.1 - - [03/Sep/2010:08:54:44 -0700] "GET /test/static.key HTTP/1.1" 200 279 "-" "Apple Mac OS X v10.6.4 CoreMedia v1.0.0.10F569"
1.2.3.1 - - [03/Sep/2010:08:54:44 -0700] "GET /test/video_low_enc_1.ts HTTP/1.1" 200 665644 "-" "Apple Mac OS X v10.6.4 CoreMedia v1.0.0.10F569"
1.2.3.1 - - [03/Sep/2010:08:54:45 -0700] "GET /test/video_low_enc_2.ts HTTP/1.1" 200 131328 "-" "Apple Mac OS X v10.6.4 CoreMedia v1.0.0.10F569"
I am getting OSStaus error - 12971.
index.m3u8
EXTM3U
EXT-X-TARGETDURATION:3
EXT-X-MEDIA-SEQUENCE:0
EXTINF:3,
EXT-X-KEY:METHOD=AES-128,URI="http://1.2.3.77/test/static.key"
http ://1.2.3.77/test/video_low_enc_1.ts
EXTINF:3,
http ://1.2.3.77/test/video_low_enc_2.ts
EXTINF:3,
http ://1.2.3.77/test/video_low_enc_3.ts
EXTINF:3,
http ://1.2.3.77/test/video_low_enc_4.ts
EXT-X-ENDLIST
Please let me know if I am doing something wrong.
Thanks and Regards.