Open freddygood opened 4 years ago
I remember I had the similar issue and also would like to know if it's a bug or is there something else.
This is not supported
@erankor, you mean there is no support for clipping at all?
There is support for clipping inside the JSON (clip duration + the clipFrom param on the source object), and there is support for clipping simple mapping JSONs using URL parameters. There is no support for clipping complex JSONs using URL parameters. Technically, it can be done, it's similar to the clipping of the live window, but currently it does not exist.
@erankor, I've got vod-module in mapping mode (here's nginx config | here's demo json file) and when I try get a clip with urls like "http://192.168.0.123:1234/hls/demo/clipFrom/60000/clipTo/70000/master.m3u8" or "http://192.168.0.123:1234/hls/demo/clipFrom/60000/clipTo/70000/index-f1-v1-a1.m3u8", I always get full chunked list. Is that means I have a complex demo json?
Yes, simple JSON = a JSON with a single source clip (https://github.com/kaltura/nginx-vod-module#simple-mapping), in your case there are 2 sequences.
@erankor, so just "video" is a simple JSON, but "video+subtitles" is a complex JSON, that's the problem. Now I got it, thank you.
Not necessarily, if you use multiurl with 2 JSONs instead of a single JSON, you can clip video+subs
Hello, could you point me what am I doing wrong or if the feature even supported?
I have two modes enabled in the config - remote and mapped and I'd like to use clipping
Requesting file directly like
https://host.net/packager/channel/file-123456-480p.mp4/clipFrom/60000/clipTo/70000/index-v1-a1.m3u8
works fine and responds with two chunks instead of 305Requesting smil with converting it to mapped JSON always responds full set of chunks. URL looks like
https://host.net/packager/channel/0987654322.smil/clipFrom/60000/clipTo/70000/index-f1-v1-a1.m3u8
in this case.Btw if I use
/clipFrom/60000/clipTo/60000/
the module throws an error because numbers are the same so the feature seems enabled.Nginx config is here:
Should this configuration work properly?