How can I do my own batch conversions? ...but update Kaltura as if it did it?

1 reply [Last post]
Joined: 09/01/2011
Points: 6

I am new to Kaltura. I am working with Version 3.0.0, and have just begun to get going. Sorry if this is already covered somewhere else, but I think it may be a unique thing I am trying to do.

Normal scenario: A user logs into my PHP site, and uses the page I have to allow them to upload a new video, or uses the batch upload screen in KMC. The single file upload uses the Kaltura API to upload the video.
Once the user does this, the normal batch processing would kick off conversions for each of the flavors in that customer's Profile.

Here is what I want to do:
Instead of normal batch processing of all the flavors (each in their own batch job), I would just like to have my program (or I could do a Java process or whatever) , called once after the content is uploaded, and instead of all the individual flavor jobs, to have my program figure out how to do all the conversions according to my special needs, and THEN, put everything into Kaltura so it thinks its normal batch processing has done each of the conversions (I guess including the "SOURCE" one).

So, only one use of my special program would get called once (for a single uploaded movie, or multiple times in the case of a batch upload of files), and then ALL the user's profile flavors would get created by my special program, placing the converted media where Kaltura would have, and then the user could see them in their content in the KMC.

I don't necessarily have to make use of the KMC to see status of individual flavor conversions (in fact I will have my own version of that), but in then end, I need Kaltura database tables to be updated properly so everything else works.

Hope that makes sense,
Thanks for all the help,
Karl

Joined: 11/02/2010
Points: 4

Hi Karl,
You can do that by writing a new plugin for our server, much like any other conversion plugins we have.
You can look at something like: quick time tools plugin (plugins/quick_time_tools) or fast start plugin (plugins/fast_start) copy it and create your own logic (in PHP).
Regarding the part where you want to convert all of the flavors in a single job i can tell you it is more complicated and wil require more work from your end.
Can't you just implement a conversion engine for each flavor? why is it so important to do them all in a single job?

After you implement the plugin all you have to do is create a new conversion profile (that uses your engine) and ingest teh entries with this conversion profile.

Also i will provide more information shortly, as i am getting it from all relevant parts in Kaltura.

Hopes this helps,
Roni.