Open boris-petrov opened 7 years ago
I'll try to reproduce this and get back to you shortly.
@barbibulle - any progress on this?
Hi. Sorry, I forgot I needed to look at this. Now that I did read through your post, I realize that you're asking a question for a different software package. The 'MP4Box' tool you're using here isn't part of the Bento4 software package, it is part of GPAC, which is something different.
Hi, of course I know MP4Box
is from another package - I was giving it as a comparison. In my post I first give an example with Bento4
which doesn't work and then I give a working example with gpac
. I hope I'm clear enough now, please reread my initial post. If you can't understand something from there, I could try explaining it again. :) I could also upload the sample video I test with if that's needed.
Using:
I'm using the following commands:
The first one to transcode the video in a web-friendly way (in this case it is not needed but we have to work with any kind of video). The second and third should be self-explanatory.
Result MPD is of the form:
But then when I try playing this in
dash.js
, only a black screen is shown and the video doesn't play. Logs fromdash.js
:When using the same file with
MP4Box
it plays fine (so I think the configuration ofdash.js
is correct - however we have some video files for whichMP4Box
generates a broken MPD file and that's why we switched toBento4
). The commands we use there:We use it slightly differently here - we encode only the video stream and include an unencrypted audio stream but otherwise I think it should be the same.
And the MPD generated:
I could upload the test video and any other code/configuration/commands that we use if needed. What are we doing wrong?
P.S. Forgot to mention - we're using clearkey encryption with
video.js
,dash.js
andvideojs-contrib-dash
- all are the latest versions. Sample code: