encryption with openssl and ffmpeg
download openssl from here https://slproweb.com/products/Win32OpenSSL.html
Run CMD ass admistrator by search and run as admitrator then change directory to CD where open ssl located then use this command openssl rand 16> enc.key
after creating enc.key cut and paste to the video file directory then create a text doc and write its name enc.keyinfo then host the enc.key file on server copy link and paste it to enc.keyinfo text doc like this
https://raw.githubusercontent.com/zahir2498/srilanka/main/enc.key
enc.key
then save file must be enc.keyinfo
the open ffmpeg in video directory and use this command
ffmpeg -y -i video.mp4 -hls_time 9 -hls_key_info_file enc.keyinfo -hls_playlist_type vod -hls_segment_filename "segmentNo%d.ts" index.m3u8
if enc.keyinfo file name has extension of .txt change it to .keyinfo Extension using this COMMAND
Rename a file using CMD rund cmd on same director and use this command line
ren vacation_2019*.jpg vacay_19*.jpg
Comments
Post a Comment