Getting specific flavor for entryid

2 replies [Last post]
Joined: 12/14/2011
Points: 6

I'm trying to see if I can get a specific flavor for a video I just converted.
-It currently has 2 flavors. One mp4 and the other flv.

I want to be able to search by entryid and select one of those flavors (e.g 5,16).
I'm trying to see how I can do that in the testme page.

How can this be accomplished?

Joined: 01/05/2009
Points: 1697

The first way is to use the flavorAsset.getFlavorAssetsWithParams which will return all the available flavors for a given entry id.

The second, is to use the playManifest API -
media.get – will return the metadata and information associated with a given entry Id.

To retrieve the video, you should call the playManifest API, having the partner Id and entry Id at hand –
playManifest – this is the URL where you can access the actual video stream
http://www.kaltura.com/p/[YourPartnerId]/sp/0/playManifest/entryId/[YourEntryId]/format/url/flavorParamId/[VideoFlavorId]/video.mp4

flavorParamId/[VideoFlavorId] determines which video flavor you will receive. In this case I use 0 to get source flavor (the original video that was uploaded).
The following lists few of the conventional flavor id's (this is the same for all Kaltura accounts) -

  • iPhone / Android (mp4) = 301951
  • iPad (mp4) = 301971
  • Nokia/Blackberry (3gp) = 301991
  • Other devices (mp4) = 301961

Note that you also have partner specific flavor id's, these can be retrieved from the KMC Settings > Transcoding Profiles.

Joined: 04/25/2012
Points: 2

Ha, I also try to retrieve a specific video flavor and call the playManifest API. I wanna be able to search by entryid and select one of those video flavors. Thanks a lot for critical approach issue! network services