protonemedia / laravel-ffmpeg

This package provides an integration with FFmpeg for Laravel. Laravel's Filesystem handles the storage of the files.
https://protone.media/en/blog/how-to-use-ffmpeg-in-your-laravel-projects
MIT License
1.63k stars 194 forks source link

Customize m3u8 manifest file for key URI #347

Closed serdarkok closed 2 years ago

serdarkok commented 3 years ago

Hi There;

How can i make customize m3u8. i would like to move all key files to user's api and user can watch the videos by authentication. such as:

...
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-KEY:METHOD=AES-128,URI="https://api.anotherdomain.com/keys/f699e852033abcc5.key",IV=0xe80cd6b63b149020e7bdd117f77cd63f
#EXTINF:11.200000,
24_0_100_00000.ts
#EXTINF:9.600000,
...

Is there any way this while encoding process.

I know, i can change these by manually as well but that will be diffucult as you know.

pascalbaljet commented 2 years ago

You can use the DynamicHLSPlaylist feature: https://github.com/protonemedia/laravel-ffmpeg#protecting-your-hls-encryption-keys