shaka-project / shaka-packager

A media packaging and development framework for VOD and Live DASH and HLS applications, supporting Common Encryption for Widevine and other DRM Systems.
https://shaka-project.github.io/shaka-packager/
Other
1.97k stars 507 forks source link

Question: Can I use Shaka-Packages with segmented m4s files? #1075

Closed ghost closed 5 months ago

ghost commented 2 years ago

Hey folks,

I'm currently in a situation where I have a HLS structure outputted by ffmpeg. Basically this is a HLS ABR stream with multiple languages and subtitles. Now I wanted to pack this stuff with Shaka packager (Widevine and Fairplay compatible) but I'm not sure how to properly do this as all examples I've found so far don't really match the structure of a HLS stream that I have.

To give you an example, how my folders are structured:

root folder: root

And inside each folder I have this:

sub

What do I know have to tell Shaka-Packager in order to encrypt my files?

sr1990 commented 2 years ago

Hi @venomone Why are you not using shaka packager to create HLS content? If you have not packaged the content yourself and want to encrypt it as hls/dash, just go in each folder and create full mp4 files by concatenating init file with m4s files sequentially (full_mp4_file = init + seg 1 + seg 2 + .... + seg n.) and run shaka packager on them. Check out: https://shaka-project.github.io/shaka-packager/html/tutorials/hls.html#examples