I can openssl
encrypt a ffmpeg
video stream with
ffmpeg -i video1.mp4-video1.mp4.mp4 -f ogg - |
openssl enc -des3 > outptu.ogg.des3
Which strategy would you use to encrypt the ffmpeg output when generating chunks (say of given duration) given by the command:
ffmpeg -f video4linux2 -s vga -i /dev/video0 -f segment -segment_time 1\
-strftime 1 '%Y-%m-%d_%H-%M-%S.ts'
I need to have %Y-%m-%d_%H-%M-%S.ts.des3
instead of %Y-%m-%d_%H-%M-%S.ts
I would love using a name pipe, but it means I have to detect file headers and footers of each chunks generated by ffmpeg.
I guess the straightest solution is to run a background script that encrypt automatically new detected files.