[FFmpeg-user] How to encrypt hls output format with dvbsub subtitles

Ted Park kumowoon1025 at gmail.com
Mon Feb 11 17:57:55 EET 2019


> On Feb 11, 2019, at 7:57 AM, Sergio A S de Aguiar <ssaguiar2 at hotmail.com> wrote:
> 
> Is any way to make encryption work, with the dvbsub subtitles format (maybe some way to make it work using hls format, not segment)?

Burning the subtitles into the video would be the only way with his.

If you didn’t have to use the original dvbsub, it might be possible to use our to convert it to vtt or ttml format, but you would lose typesetting and, although it’s not forbidden in the rfc, Apple says streams that are not video or audio “must not” be encrypted. (The primary author submits the specification drafts as an employee of Apple)

> As, in the input stream, the subtitles are in dvbsub format, I can't use hls output format and I am using segment output format.

If you didn’t have to stay within hls, you could keep the subtitle in the ts (which is what is happening right now) but it would be up to you to implement the de/encryption and presentation of the subtitles.


So I guess it depends on how the his stream is going to be used eventually, in the final project. Is it going to be played in a html page? Is there going to be a custom player? Do you really need it to be selectable, or encrypted?


More information about the ffmpeg-user mailing list