[FFmpeg-user] How to decrypt .ts files into separate .ts files with ffmpeg without using a playlist?
Moritz Barsnick
barsnick at gmx.net
Tue Feb 11 13:36:07 EET 2020
On Mon, Feb 10, 2020 at 19:36:58 -0300, Micael Silva wrote:
> The HLS standard says about encryption:
>
> "An encryption method of AES-128 signals that Media Segments are completely
> encrypted using the Advanced Encryption Standard (AES) [AES_128] with a
> 128-bit key, Cipher Block Chaining (CBC), and Public-Key Cryptography
> Standards #7 (PKCS7) padding [RFC5652]. CBC is restarted on each segment
> boundary, *using either the Initialization Vector (IV) attribute value or
> the Media Sequence Number as the IV*; see Section 5.2."
>
> In this case the IV for decryption of the first segment should be 0x0, the
> second 0x1 and so on and so forth.
Nice, I wasn't aware of that, and hadn't found the hlsdec code
supporting this. On the other hand, I obviously successfully decrypted
each segment with iv=0. *shrug* (again)
Moritz
More information about the ffmpeg-user
mailing list