axiomatic-systems / Bento4

Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools
http://www.bento4.com
1.99k stars 482 forks source link

I am not able to play .m3u8 video when I package a video with "mp4dash --hls ..." command #664

Open tanmayapatramuvi opened 2 years ago

tanmayapatramuvi commented 2 years ago

Hi

When I package a video with --hls key so that I could get both dash and hls video in same folder, I could not able to play the output m3u8 file. The command I used is:

Error Snapshot when I try to play: https://ibb.co/VCYgrgB

Command: bento4/bin/mp4dash --hls --hls-key-url=skd://muvi_token --encryption-cenc-scheme=cbcs --encryption-key=45581206458484097617822896758747:17853123456153013562999000889748 --use-segment-template-number-padding --marlin --widevine --widevine-header=https://muvi.com --playready --playready-header=https://muvi.com --playready-version=4.3 big_buck_bunny_720p_5mb.mf4 big_buck_bunny_720p_5mb_480.mf4 big_buck_bunny_720p_5mb_240.mf4 big_buck_bunny_720p_5mb_144.mf4

Output of the Command:

Encrypting track IDs [1, 2] in big_buck_bunny_720p_5mb.mf4 Encrypting track IDs [1, 2] in big_buck_bunny_720p_5mb_480.mf4 Encrypting track IDs [1, 2] in big_buck_bunny_720p_5mb_240.mf4 Encrypting track IDs [1, 2] in big_buck_bunny_720p_5mb_144.mf4 Parsing media file 1: tmp03y51ekz = Encrypted[big_buck_bunny_720p_5mb.mf4] Parsing media file 2: tmp07l1xd_t = Encrypted[big_buck_bunny_720p_5mb_480.mf4] Parsing media file 3: tmpnh450_t1 = Encrypted[big_buck_bunny_720p_5mb_240.mf4] Parsing media file 4: tmpvf6vr2wi = Encrypted[big_buck_bunny_720p_5mb_144.mf4] WARNING: video segment durations for "File 1#1" vary by more than 10% (consider using --use-segment-timeline) WARNING: video segment durations for "File 2#1" vary by more than 10% (consider using --use-segment-timeline) WARNING: video segment durations for "File 3#1" vary by more than 10% (consider using --use-segment-timeline) WARNING: video segment durations for "File 4#1" vary by more than 10% (consider using --use-segment-timeline) WARNING: audio segment durations for "File 1#2" vary by more than 10% (consider using --use-segment-timeline) Splitting media file (audio) tmp03y51ekz = Encrypted[big_buck_bunny_720p_5mb.mf4] Splitting media file (video) tmp03y51ekz = Encrypted[big_buck_bunny_720p_5mb.mf4] Splitting media file (video) tmp07l1xd_t = Encrypted[big_buck_bunny_720p_5mb_480.mf4] Splitting media file (video) tmpnh450_t1 = Encrypted[big_buck_bunny_720p_5mb_240.mf4] Splitting media file (video) tmpvf6vr2wi = Encrypted[big_buck_bunny_720p_5mb_144.mf4]

ashiskumarsahu commented 2 years ago

@barbibulle Could you please reply on this thread? I am having the same issue.

mp4dash --encryption-cenc-scheme=cbcs --encryption-key=xxxx:xxxx:xxxx --use-segment-template-number-padding --widevine --widevine-header=https://muvi.com --playready --playready-version=4.3 --playready-header=https://muvi.com --hls --fairplay-key-uri=skd://muvi_token Cinderella.mf4

I am able to pack the content but its not playing in safari. Please suggest if the above command is correct or any change required?