Jamie
April 5, 2022, 3:49pm
1
Hello,
I am currently trying to compile a list of media and their flavours. I want to know the size of the flavour and the number of times it has been used/viewed. I have been able to find the “size” field using “flavorAsset.list” but can’t seem to find any data about the number of times that flavour has been viewed.
Is this just something Kaltura doesn’t store about the data? or have I just missed an endpoint?
Any help would be greatly appreciated!
jess
April 6, 2022, 11:09am
2
Hi @Jamie ,
Views and plays are not kept on the flavour asset objects, but on the entry. Since ABR (Adaptive Bit Rate) protocols are used to serve the content (with the default being HLS), a user will [potentially and most likely] be served segments from different flavours (based on his device and bandwidth conditions).
What you can obtain, however, is the total bandwidth consumed per flavour; for that, call report.getCsvFromStringParams()
[see https://developer.kaltura.com/api-docs/service/report/action/getCsvFromStringParams ] and set id
to 1401
and the params
value to from_date_id=$D_FROM;to_date_id=$D_TO
. The format for the from_date_id
and to_date_id
is %Y%m%d
.
Cheers,
Jamie
April 8, 2022, 2:10pm
3
Hi @jess ,
Wow, that’s very interesting that you serve segments from different flavours. I will have a look at the total bandwidth option.
Thank you!
Hi @Jamie ,
Just for additional context:
If you inspect the network traffic when a player is loaded, you can review the HLS playlist sent to you. When I go to How to Set and Create a Presentation Recording with Kaltura Capture - Kaltura Learning I get this file called a.m3u8 with the following content:
#EXTM3U
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="en",URI="https://cfvod.kaltura.com/api_v3/index.php/service/caption_captionasset/action/serveWebVTT/captionAssetId/1_q41zyytw/segmentDuration/300/ks/djJ8MjI0OTg2MXyj3Guny0gphfZgjevsF63A0brSCPbmK-Jh5nwLwsrQ_PXIYXUhXoMhlQMO28_8hpA5LelNmkKxasc6OIJamBXYp0Z5lZOhuWuepYrEn2EAKWDQvIqYAnBGpSlZXBNgFaMiTPYg8pELVaTbvtzEGJTv3T-d0Jd2l3bUNcwFYS46zAi5BvQ6iqsPonwXYTds_sBYDWLE-THcyrbOEtXJQkLMHFQlwY7e_-XEE4-YETaMuS2JOP4vDOS0LagnPQuThyS_uBV2AcSCt5BLFmzUEQU5/a.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Spanish",DEFAULT=NO,AUTOSELECT=YES,FORCED=NO,LANGUAGE="es",URI="https://cfvod.kaltura.com/api_v3/index.php/service/caption_captionasset/action/serveWebVTT/captionAssetId/1_9fpleljf/segmentDuration/300/ks/djJ8MjI0OTg2MXxVWUyvrjLkTAqqdKoZI2jgEZeg8mKOGxs10FvHf1Pv7DMuv5YzAyiGRSDQoOTluvZa0vjGt_l5lfu_AHXqKf3takexR2aJYWAi1JH0TYpzkfzy1eMpnT9YvDWwP-gU_npzORpxzzoHu9n4ne5XcFudhsO4oUGaHN6OxRSsFQpL67GQUKFFzA4U_gLxQEAKYYXtR3urG100JMMc670DAIMwfgv13hCnss1q6WvXSJfGEF9OoQ_bacOeM-Z1AjSYAWX8a1zkFgir75gxOnUqgwEU/a.m3u8"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=418747,RESOLUTION=640x360,SUBTITLES="subs"
https://cfvod.kaltura.com/scf/hls/p/2249861/sp/224986100/serveFlavor/entryId/0_8moxu7wl/v/2/ev/12/flavorId/0_960rzvqv/name/a.mp4/index.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZnZvZC5rYWx0dXJhLmNvbS9zY2YvaGxzL3AvMjI0OTg2MS9zcC8yMjQ5ODYxMDAvc2VydmVGbGF2b3IvZW50cnlJZC8wXzhtb3h1N3dsL3YvMi9ldi8xMioiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2NDk1MTQzNjB9fX1dfQ__&Signature=MINSy0~IN~xBS7Cwt1VKZ3yBwsPAt8WfqIsADeqIAEd7TFuVqNcncpcmMp2LwAnowJwF0VlEvdwFYPzdeAfg8Vbt~b2LOVH2mWFPuKw1X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__&Key-Pair-Id=APKAJT6QIWSKVYK3V34A
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=893750,RESOLUTION=1280x720,SUBTITLES="subs"
https://cfvod.kaltura.com/scf/hls/p/2249861/sp/224986100/serveFlavor/entryId/0_8moxu7wl/v/2/ev/12/flavorId/0_rfua1ho0/name/a.mp4/index.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZnZvZC5rYWx0dXJhLmNvbS9zY2YvaGxzL3AvMjI0OTg2MS9zcC8yMjQ5ODYxMDAvc2VydmVGbGF2b3IvZW50cnlJZC8wXzhtb3h1N3dsL3YvMi9ldi8xMioiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2NDk1MTQzNjB9fX1dfQ__&Signature=MINSy0~IN~xBS7Cwt1VKZ3yBwsPAt8WfqIsADeqIAEd7TFuVqNcncpcmMp2LwAnowJwF0VlEvdwFYPzdeAfg8Vbt~b2LOVH2mWFPuKw1XFJZxWPKPbqb8nEdWu4e9q9AwuYTDMBnGCmxbcZA4FtEU2CvC9~lXO4K-AoHaSolEWBX52Fi8PFHVpDVX6-tFV1MOsyZlrzqy3~NwCJ~ywmTEkHe3NO4gsl4KI-o9Ut0LrGtr23kNcQwqie~Ajzzi39oqv8X5Tvm5JBvTE2SWfA7Sdb4Qak0xoIVxRwvmFaoPtPd8Oyngb8uWmeet0gAJ4pOXJdn7olBFZHA-5UG-3TuhQ__&Key-Pair-Id=APKAJT6QIWSKVYK3V34A
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1926409,RESOLUTION=1920x1080,SUBTITLES="subs"
https://cfvod.kaltura.com/scf/hls/p/2249861/sp/224986100/serveFlavor/entryId/0_8moxu7wl/v/2/ev/12/flavorId/0_dsrvskkt/name/a.mp4/index.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZnZvZC5rYWx0dXJhLmNvbS9zY2YvaGxzL3AvMjI0OTg2MS9zcC8yMjQ5ODYxMDAvc2VydmVGbGF2b3IvZW50cnlJZC8wXzhtb3h1N3dsL3YvMi9ldi8xMioiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2NDk1MTQzNjB9fX1dfQ__&Signature=MINSy0~IN~xBS7Cwt1VKZ3yBwsPAt8WfqIsADeqIAEd7TFuVqNcncpcmMp2LwAnowJwF0VlEvdwFYPzdeAfg8Vbt~b2LOVH2mWFPuKw1XFJZxWPKPbqb8nEdWu4e9q9AwuYTDMBnGCmxbcZA4FtEU2CvC9~lXO4K-AoHaSolEWBX52Fi8PFHVpDVX6-tFV1MOsyZlrzqy3~NwCJ~ywmTEkHe3NO4gsl4KI-o9Ut0LrGtr23kNcQwqie~Ajzzi39oqv8X5Tvm5JBvTE2SWfA7Sdb4Qak0xoIVxRwvmFaoPtPd8Oyngb8uWmeet0gAJ4pOXJdn7olBFZHA-5UG-3TuhQ__&Key-Pair-Id=APKAJT6QIWSKVYK3V34A
A playlist with the different flavors that the player can choose from.
Notice the different resolutions and bandwidth per stream.
jess
April 8, 2022, 2:55pm
5
Hi @Jamie ,
You may find the attached presentation of interest.
The actual segmentation is preformed by our Nginx VOD module, which is also FOSS. See: GitHub - kaltura/nginx-vod-module: NGINX-based MP4 Repackager
Cheers,
fosdem2018_video_platform_presentation.pdf (5.8 MB)