Process for MIgrating video content from KMC to another CDN

What are the best practices for migrating video from the Kaltura KMC to another server or CDN?

Hello,

KMC is only the front end management console, I suppose you are asking about how to migrate the content?
Please be more specific as to exactly what you’d like to migrate [videos, metadata, partner info, etc] and also, whether or not you are using a self hosted ENV [if so, what version and on what Linux distro] or Kaltura’s SaaS.

Yes I’m interested in migrating the content. We are a paying Kaltura customer using the SAAS service so the files are hosted on Akamai.

Really we just need the video files along with the corresponding asset ID’s.

You can use the API for that. Note however that when importing back to another account, the IDs will change.

A simple example of how to get the source video URLs using the PHP clientlibs:

$ks = $client->session->start($secret, $userId, $type, $partnerId, $expiry, $privileges);
$client->setKs($ks);
$filter=null;
$total_media_entries = $client->media->count($filter);
$pager = new KalturaFilterPager();
$page_index=1;
$pager->pageSize = 500; 
$processed_entries=0;

while ($processed_entries < $total_media_entries){
    $pager->pageIndex=$page_index;
    $result = $client->media->listAction($filter, $pager);
        foreach ($result->objects as $entry) {
            $filter = new KalturaAssetFilter();
            $filter->entryIdEqual = $entry->id;
            $filter->tagsLike = 'source';
            $pager = null;
            $result = $client->flavorAsset->listAction($filter, $pager);
            if(isset($result->objects[0]->id)){
                $result = $client->flavorAsset->geturl($result->objects[0]->id, null, null, null);
            }    
            if(is_string($result)){
                echo ( $result."\n");
            }    
            $processed_entries++;
        }    
    $page_index++;
}

We have clientlibs for multiple languages which you can find here:
http://www.kaltura.com/api_v3/testme/client-libs.php

You can choose the one you like most.