Open mstoykov opened 6 years ago
I checked this sample, there are 2 issues here -
I created a quick hack for the second issue, and the video plays fine. A more elegant fix can probably be implemented quite easily, but considering the first issue and the fact MKV in general has been discontinued, I'm not sure it's worth the effort.
First thank you for the quick reply.
Could you propose how to (re)encode/mux the file in order for the current source to work?
The fix, even the hack one, would be greatly appreciated as even though MKV might be discontinued, which I am not aware of, webm seems to be doing good for itself.
Sorry, I meant 'discontinued in the context of this module', not the format as a whole :) Regarding lacing - you can probably repackage (without retranscoding) using ffmpeg - ffmpeg doesn't use lacing when encoding MKV. I'll check regarding the code fix
Is there any update on the fix? I would be happy with the quick hack as well :).
Sorry for the delay, I now pushed the change that I wrote shortly after you opened this issue - https://github.com/kaltura/nginx-vod-module/pull/867 What I didn't like about this change was that I had to apply it on 'simple block' element (it didn't work when I applied it only on 'cluster'). I wanted to dig deeper into it, but didn't get a chance to do it.
For me this fix did not change the returned playlist - I still get only around 3 seconds of playthrough. Maybe you missed some part of it ? I'm going to try some more encoding options to see if it will make a difference.
Hi @MStoykov, any news on this? Thanks.
+1
I use tears of steel webm file as the test file (http://ftp.nluug.nl/pub/graphics/blender/demo/movies/ToS/tears_of_steel_1080p.webm) . Using it just like it is I get 404 and this in the logs
After some hours of trial and error I figured that the audio was the problem. Removing the audio yielded manifest with two segments with total length of 7 seconds although full 15 seconds were played by dash.js.
After some reencoding, looking up what was recommended around the issues and the web I used:
The
-t 30 -s 960x400
is to minimize the size of the encode time. With these options and practically anything else I tried with very little deviation (and not positive at that) I will get a manifest likewhich because of the single audio segment and it size will play for 3 seconds and stop, without the audio I would get the same behavior as before. Also I hit #780, but because the size of the video I just raised the value of vod_max_frames_size to 1024m,
If I change the container to mp4 add
-strict -2
and change the audio codec to ac3, the generated manifest for the mp4 will be fine and playable (atleast for the 30 seconds, I am going to try the whole video soon)I suppose I am doing something wrong. But no changes in the way I encode or the whether I use mkv or webm yielded a playable dash manifest. All the videos are playable from the same firefox I am testing the manifest, so they are not corrupted or something else that will make them unplayable