How to download a mix with PHP (need more info)

7 replies [Last post]
Joined: 06/04/2009
Points: 22

Hello Kalturanians,

I have followed the wiki (http://corp.kaltura.com/wiki/index.php/Guides:Download_Mix) to create a download URL for my mix, but when I use "wget" to donwload this URL nothing happens.

I have also tried with other URLs which were already in the node_kaltura table (field: kaltura_download_url), but the same problem occurs.

What am I doing wrong ? do I need to do something special to grab the FLV video ? It would be great if the wiki could be extended with this information. As far as I understand, the donwload URL represents the FLV converted video file, which should be ready for download, right ?

Joined: 06/04/2009
Points: 22

I am using something like the following code:

$node_kaltura_mix = node_load($item->nid);
if(empty($node_kaltura_mix->kaltura_download_url)) {
      $kaltura_client = KalturaHelpers::getKalturaClient();
      $session_user = KalturaHelpers::getSessionUser();
      $result = $kaltura_client->addDownload($session_user, $node_kaltura_mix->kaltura_entryId, 'flv');
}

But I am not receiving any notifications back (I don't see anything new in kaltura_notifications table and the download_url remains empty)

Joined: 02/22/2009
Points: 97

yonailo,

did you ever check the $result of the request ? perhaps the request doesn't at all come successful from some reason?

Joined: 06/04/2009
Points: 22

I have been told that kalturaCE does not support flattening video-mixes, so I think that is the problem.
Thanks anyway!

Joined: 02/22/2009
Points: 97

you never mentioned in your message that this issue is on a kalturaCE.
indeed on kalturaCE flattening is not available

Joined: 03/14/2010
Points: 1

Does KalturaCE support flattening nowadays?

Joined: 03/29/2009
Points: 764

No - only the enterprise edition.

Joined: 06/29/2009
Points: 93

Well, you can try this out. It will flatten your mix for you !!! http://10byte.com/blog/kmf/