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

Sergio A S de Aguiar ssaguiar2 at hotmail.com
Mon Feb 11 19:25:57 EET 2019

Thank you for your answer.

We are using a custom player and we need to have the option to show or not the subtitles.

If the subtitles must not be encrypted, as stated by Apple, I am thinking in encode video and audio with encryption in one ts file and do the same (without encryption) in another ts file. After that, I think it's possible to bring them together thru m3u8 file.

ps: I am sorry to be overposting the answers but I am using hotmail and I can't put it below.

De: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> em nome de Ted Park <kumowoon1025 at gmail.com>
Enviado: segunda-feira, 11 de fevereiro de 2019 13:57
Para: FFmpeg user questions
Assunto: Re: [FFmpeg-user] How to encrypt hls output format with dvbsub subtitles

> 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?
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

More information about the ffmpeg-user mailing list