encryption not available for fmp4/m4s segments ?!?
Hello, I'm urgently searching for a solution to protect HLS streams using DRM/AES encryption. Currently, it seems that this is only working with .ts segments not with .m4s segments and .ts files again don't work with HEVC / 4k HDR content, so it seems I'm 100% stuck at this point. There is also a report from another user (4 years ago) with exactly the same issue: https://trac.ffmpeg.org/ticket/7138 Is there any kind of progress or workaround? -- Grüße / Kind regards, Robin van der Linden
Am 11.07.22 um 23:22 schrieb Robin van der Linden via ffmpeg-user:
Hello,
I'm urgently searching for a solution to protect HLS streams using DRM/AES encryption. Currently, it seems that this is only working with .ts segments not with .m4s segments and .ts files again don't work with HEVC / 4k HDR content, so it seems I'm 100% stuck at this point.
There is also a report from another user (4 years ago) with exactly the same issue: https://trac.ffmpeg.org/ticket/7138 Is there any kind of progress or workaround?
no idea how "encryption" should work without "DRM" "protect HLS streams using DRM/AES encryption" belongs fro the sake of god to the transport layer and has nothing to do with the media file
Hello again, well I'm not sure what I should do with your reply, but good to know that you know it better, but that doesn't help me at all. If you know a solution, please let me simply know. 1. " No idea how "encryption" should work without "DRM" " -> Clearkey for example. 2. If you have really read my message, it's according to HEVC and that it's only compatible if you use fmp4 as hls_segment_type instead of mpegts. I use h264 and HEVC as I provide ABR streams up to 4K HDR, so there is no way around fmp4 for me. The problem is that fmp4 is not "packable" with encryption, and you will get the following error: > Encrypted fmp4 not yet supported Could not write header for output file #0 (incorrect codec parameters ?): Not yet implemented in FFmpeg, patches welcome < If you don't believe me, please try yourself using the following parameters found at http://www.ffmpeg.org/ffmpeg-all.html -> 21.17.1 Options (-hls_enc -hls_enc_key -hls_enc_key_url -hls_enc_iv). Please make sure you set hls_segment_type to fmp4 And yes I'm on the latest greatest self build ffmpeg version available (5.0.1). Thanks in advance. Am 2022-07-12 00:35, schrieb Reindl Harald:
Am 11.07.22 um 23:22 schrieb Robin van der Linden via ffmpeg-user:
Hello,
I'm urgently searching for a solution to protect HLS streams using DRM/AES encryption. Currently, it seems that this is only working with .ts segments not with .m4s segments and .ts files again don't work with HEVC / 4k HDR content, so it seems I'm 100% stuck at this point.
There is also a report from another user (4 years ago) with exactly the same issue: https://trac.ffmpeg.org/ticket/7138 Is there any kind of progress or workaround?
no idea how "encryption" should work without "DRM"
"protect HLS streams using DRM/AES encryption" belongs fro the sake of god to the transport layer and has nothing to do with the media file _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
-- Grüße / Kind regards, Robin van der Linden
On Tue, Jul 12, 2022 at 9:07 AM Robin van der Linden via ffmpeg-user < ffmpeg-user@ffmpeg.org> wrote:
Hello again,
well I'm not sure what I should do with your reply, but good to know that you know it better, but that doesn't help me at all. If you know a solution, please let me simply know.
1. " No idea how "encryption" should work without "DRM" " -> Clearkey for example. 2. If you have really read my message, it's according to HEVC and that it's only compatible if you use fmp4 as hls_segment_type instead of mpegts. I use h264 and HEVC as I provide ABR streams up to 4K HDR, so there is no way around fmp4 for me. The problem is that fmp4 is not "packable" with encryption, and you will get the following error: > Encrypted fmp4 not yet supported Could not write header for output file #0 (incorrect codec parameters ?): Not yet implemented in FFmpeg, patches welcome < If you don't believe me, please try yourself using the following parameters found at http://www.ffmpeg.org/ffmpeg-all.html -> 21.17.1 Options (-hls_enc -hls_enc_key -hls_enc_key_url -hls_enc_iv). Please make sure you set hls_segment_type to fmp4
And yes I'm on the latest greatest self build ffmpeg version available (5.0.1).
Thanks in advance.
AES-128 doesnt work for HLS with fMP4, maybe you can try using -encryption_scheme cenc-aes-ctr -encryption_key and -encryption_kid before muxing into HLS
I have a need to receive a multiplexed transport stream wrapped in SRT and then forward to an IP destination as TSoIP. Below is what I'm currently using: ffmpeg -i srt://0.0.0.0:200?mode=listener -codec copy -map 0 -f mpegts udp://10.0.40.10:2000 When I look at the received stream, I see the four programs in the original stream, but the output isn't including all the streams of the programs. Any guidance on how to make this happen? Thanks! James
Hi James, You could use srt-live-transmit tool instead. At debian-based systems you could just apt install srt-tools the docs: https://github.com/Haivision/srt/blob/master/docs/apps/srt-live-transmit.md Best regards, Em 12/07/2022 3:37 PM, James Greenlee escreveu:
I have a need to receive a multiplexed transport stream wrapped in SRT and then forward to an IP destination as TSoIP.
Below is what I'm currently using:
ffmpeg -i srt://0.0.0.0:200?mode=listener -codec copy -map 0 -f mpegts udp://10.0.40.10:2000
When I look at the received stream, I see the four programs in the original stream, but the output isn't including all the streams of the programs.
Any guidance on how to make this happen?
Thanks!
James _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Well that was ridiculously easy. Looks like it just took off and worked. Thanks!!!! James ----- Original Message ----- From: "Christian David Moura de Freitas" <christian@cdavid.eti.br> To: "FFmpeg user questions" <ffmpeg-user@ffmpeg.org> Sent: Tuesday, July 12, 2022 2:50:33 PM Subject: Re: [FFmpeg-user] Receive SRT, forward as Transport Stream Hi James, You could use srt-live-transmit tool instead. At debian-based systems you could just apt install srt-tools the docs: https://github.com/Haivision/srt/blob/master/docs/apps/srt-live-transmit.md Best regards, Em 12/07/2022 3:37 PM, James Greenlee escreveu:
I have a need to receive a multiplexed transport stream wrapped in SRT and then forward to an IP destination as TSoIP.
Below is what I'm currently using:
ffmpeg -i srt://0.0.0.0:200?mode=listener -codec copy -map 0 -f mpegts udp://10.0.40.10:2000
When I look at the received stream, I see the four programs in the original stream, but the output isn't including all the streams of the programs.
Any guidance on how to make this happen?
Thanks!
James _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
participants (5)
-
Christian David Moura de Freitas -
James Greenlee -
Micael Silva -
Reindl Harald -
Robin van der Linden