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

Incorrect CENC subsample size #350

Open
techterbium opened this issue Nov 2, 2020 · 1 comment
Open

Incorrect CENC subsample size #350

techterbium opened this issue Nov 2, 2020 · 1 comment

Comments

@techterbium
Copy link

Description

Unable to play videos of resolution 1080x720.
I am fragmenting a .mp4 file and then encrypting it and converting it into a DASH format and playing in a video.js player. Below are the commands used. mp4xxxx are bento4 commands.

mp4fragment --fragment-duration 100000 --timescale 10000000 --track audio <input.mp4> <opfraga.mp4>
mp4fragment --fragment-duration 100000 --timescale 10000000 --track video <input.mp4> <opfragv.mp4>

mp4encrypt --method MPEG-CENC --key 1:HEX:random --property 1:KID:HEX --global-option mpeg-cenc.eme-pssh:true <opfraga.mp4> <enc_fraga.mp4>
mp4encrypt --method MPEG-CENC --key 1:HEX:random --property 1:KID:HEX --global-option mpeg-cenc.eme-pssh:true <opfragv.mp4> <enc_fragv.mp4>

mp4dash --use-segment-timeline -o output <enc_fragv.mp4> <enc_fraga.mp4>

These steps work file with a video file whose resolution is 1920x1080. However, when the video is of resolution 1280x720,
I am seeing the below error

VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) The media playback was aborted due to a corruption problem or because the media used features your browser did not support. 

Video Element Error: MEDIA_ERR_DECODE (CHUNK_DEMUXER_ERROR_APPEND_FAILED: Incorrect CENC subsample size.) 

Thanks in advance. Any lead here would be much appreciated.

Additional Information

versions

videojs

what version of videojs does this occur with? - 7.10

browsers

what browser are affected? - Chrome

OSes

what platforms (operating systems and devices) are affected? - ALL

plugins

are any videojs plugins being used on the page? If so, please list them below. - NO

@gkatsev
Copy link
Member

gkatsev commented Nov 2, 2020

Are you able to play your stream back on the reference client test page? https://reference.dashif.org/dash.js/nightly/samples/dash-if-reference-player/index.html

contrib-dash just loads in dash.js, we don't handle anything about it. We did just update contrib-dash to latest 3.x, so, make sure you're on that.

If you're not using contrib-dash, I can move hte issue to the http-streaming repo, in which case, would you be able to provide a sample stream?

Thanks.

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