axiomatic-systems / Bento4

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

can't decrypt mp4 videos #267

Open youssefmaher opened 6 years ago

youssefmaher commented 6 years ago

hello . i download video mp4 with url m3u8 and i useing kid i don't know if right or wrong and i useing mp4 decrypt but don't work with me and i trying with another video but no new still don't work with me ... please help me with decrypt mp4 videos

barbibulle commented 6 years ago

In order to decrypt a video, you need to have the key(s) that were used to encrypt it. The KID is just a key identifier, not the key itself. The key is usually not available (it is delivered using a DRM system), unless in special cases where an HLS .m3u8 file has a direct URL to a non-DRM-wrapped key (this would show as am #EXT-X-KEY line in the .m3u8 file).