[FFmpeg-user] Is it possible to create an encrypted DASH stream using ffmpeg only?

Alexey Rodionov fluorescent.hallucinogen at gmail.com
Mon Aug 7 19:58:28 EEST 2023


Here's a command to create an encrypted HLS stream (see
https://stackoverflow.com/a/76815067/4050470):

ffmpeg -i input.mp4 -f hls -hls_enc 1 stream.m3u8

And here's a command to create DASH and HLS streams at once:

ffmpeg -i input.mp4 -f dash -hls_playlist true manifest.mpd

But how to encrypt the stream(s) in this case?

As an experiment, I've tried to add to the command the following options:

-encryption_scheme cenc-aes-ctr -encryption_key
76a6c65c5ea762046bd749a2e632ccbb -encryption_kid
a7e61c373e219033c21091fa607bf3b8

but it has no effect.

I would like to avoid using third-party tools like `shaka-packager`
and `bento4`.


More information about the ffmpeg-user mailing list