Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with profile onDemand and DRM #2808

Open
MarianoFacundoArch opened this issue Apr 19, 2024 · 6 comments
Open

Bug with profile onDemand and DRM #2808

MarianoFacundoArch opened this issue Apr 19, 2024 · 6 comments

Comments

@MarianoFacundoArch
Copy link

When using profile onDemand and drm (also with dual) the output is weird.
Cannot be played, and most important, when we look at the M3U8 file it looks like this, so it doesn't even show it is DRM protected even it is (and if we look at full-segment.mp4 it shows all green as it is). However, when trying to play from the mpd file, that shows it is DRM, it cannot be played either.

Some weird thing is happening, I cannot figure out what

#EXTM3U
#EXT-X-TARGETDURATION:5
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="full-segment.mp4",BYTERANGE="1151@0"
#EXTINF:5
#EXT-X-BYTERANGE:142072@1283
full-segment.mp4

#EXT-X-ENDLIST
@MarianoFacundoArch
Copy link
Author

@jeanlf, how can I help track this? It's just not working.
The desired effect is to have a segment+init in the same resulting file

@MarianoFacundoArch
Copy link
Author

@rbouqueau Do you have any guess on this?

@rbouqueau
Copy link
Member

I confirm we loose the encryption info in the manifest:

gpac -i beepbop.mp4 cecrypt:cfile=gpac/tests/media/encryption/cbcs.xml -o enc.m3u8:profile=onDemand

gives:

enc.m3u8:

#EXTM3U
#EXT-X-VERSION:6
#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="1",AUTOSELECT=YES,URI="enc_1.m3u8",CHANNELS="1"
#EXT-X-STREAM-INF:BANDWIDTH=65816,CODECS="avc1.42C00D,mp4a.40.2",RESOLUTION=320x180,FRAME-RATE=25,AUDIO="audio"
enc_2.m3u8

enc_1.m3u8:

#EXTM3U
#EXT-X-TARGETDURATION:1
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="beepbop_track1__dashinit.mp4",BYTERANGE="1132@0"
#EXTINF:0.998458
#EXT-X-BYTERANGE:2197@1252
beepbop_track1__dashinit.mp4
#EXTINF:0.998458
#EXT-X-BYTERANGE:2311@3449
beepbop_track1__dashinit.mp4
#EXTINF:0.998458
#EXT-X-BYTERANGE:2341@5760
beepbop_track1__dashinit.mp4
#EXTINF:0.998458
#EXT-X-BYTERANGE:2393@8101
beepbop_track1__dashinit.mp4
#EXTINF:0.998458
#EXT-X-BYTERANGE:2479@10494
beepbop_track1__dashinit.mp4

#EXT-X-ENDLIST

enc_2.m3u8:

#EXTM3U
#EXT-X-TARGETDURATION:1
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="beepbop_track2__dashinit.mp4",BYTERANGE="1015@0"
#EXTINF:1
#EXT-X-BYTERANGE:7536@1135
beepbop_track2__dashinit.mp4
#EXTINF:1
#EXT-X-BYTERANGE:7750@8671
beepbop_track2__dashinit.mp4
#EXTINF:1
#EXT-X-BYTERANGE:8370@16421
beepbop_track2__dashinit.mp4
#EXTINF:1
#EXT-X-BYTERANGE:8847@24791
beepbop_track2__dashinit.mp4
#EXTINF:0.96
#EXT-X-BYTERANGE:8947@33638
beepbop_track2__dashinit.mp4

#EXT-X-ENDLIST

@MarianoFacundoArch
Copy link
Author

Yes, effectively, and cannot be played.

How shall we address this? I think it is a significant bug

@rbouqueau
Copy link
Member

I agree. There's been a huge slow down in our capacity to address issues in the last few weeks. I am completely overwhelmed but we care. Thanks.

@MarianoFacundoArch
Copy link
Author

I am sorry to hear that.
Please let me know if there’s anything I can help with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants