Having trouble with the remix -- not updating the video file even after I've sent a request

2 replies [Last post]
Joined: 12/15/2009
Points: 27

I'm generating my own remix via a client side app. I generate the XML in the sequence xml format but it doesn't update the remix ... even though the response is that it was done.

Here is the example code:

$ks = @$result["result"]["ks"];
                $xml_in = '<xml><MetaData><Publish><Application>kalturaAdvancedEditor</Application></Publish><SeqDuration>{}</SeqDuration><ShowVersion>-1</ShowVersion><ThumbUrl>http://localhost/p/1/sp/100/thumbnail/entry_id/vcnp8h76m8/version/100001</ThumbUrl></MetaData><VideoAssets>
                <vidAsset k_id="nvhg4u8bdo" type="VIDEO" name="SALIK" url="http://174.143.151.19/kalturaCE/flvclipper/entry_id/nvhg4u8bdo/clip_from/0/clip_to/5000/flavor/0">
                        <StreamInfo file_name="" posX="0" posY="0" start_byte="-1" end_byte="-1" total_bytes="-1" real_seek_time="-1" start_time="0" len_time="5" volume="50" pan="0" isSingleFrame="0" Clipped_Start="0" Clipped_Len="5"/>
                        <EndTransition cross="0" type="None" StartTime="5" length="0"/><VolumePoints><VolumePoint time="0" volume="0.5"/><VolumePoint time="5" volume="0.5"/></VolumePoints></vidAsset></VideoAssets><AudioAssets firstAssetPolicy="8" soundtrackVolumePolicy="16384" soundtrackVolume="100" soundtrackSilentVolume="40"/><VoiceAssets/><Plugins><Overlays/><Effects/></Plugins></xml>'
;
                $params = array();
                $params['xml']=urlencode($xml_in);
                $params['debug']='false';
                $params['uid']='USERID';
                $params['ks']=$ks;
                $params['HasRoughCut']="0";
                $params['entry_id']='iiwkp77qfk';
                // send a request to example.com (referer = jonasjohn.de)
list($headers, $content) = PostRequest(
    "http://174.143.151.19/kalturaCE/index.php/partnerservices2/setmetadata?partner_id=1&subpId=100",
    "http://www.referrerdoesnotmatter.com/",
    $params
);

response:

"?><xml><result><saved_entry>iiwkp77qfk</saved_entry><serverTime>1261217041</serverTime></result><error></error><debug><sigtype>1</sigtype><validateSignature></validateSignature><signature>fa271a2ddca1189499d862d905bbe24d</signature><execute_impl_time>0.460000038147</execute_impl_time><execute_time>1.16999983788</execute_time><total_time>1.17999982834</total_time></debug></xml>   

Now to me this seems like it should have worked -- do you know what the signature type is? I don't know if I included that correctly. All I send is the entryid, publisherid, ks etc.

Thanks alot... I know I've posted alot over the past days sorry about that -- I think alot of the stuff on here is more about getting the basics running and I could find very little info on things like programatically creating remixes.

Joined: 12/15/2009
Points: 27

okay realized i'm stupid -- I was using the abridged client apis from the krecord module...
and was sending malformed xml.

Anyways now I am able to create remix entries but they are always duration 0 ... I am certain the xml is correct because when I go to investigate I can download it ... I do a diff against a remix that works and it's the exact same.

I literally just upload the same exact xml (SDL) via add entry:

                $mixEntry = new KalturaMixEntry;
                $mixEntry->name="TESTREMIX2";
                $mixEntry->partnerId=1;
                $mixEntry->editorType=1;
                $mixEntry->dataContent = $xml;
                $mixEntry->hasRealThumbnail=1;
                print_r($client->mixing->add($mixEntry));

The mix is created but when I click it the duration is 0 and pressing play just causes the load bar to run forever

Joined: 12/15/2009
Points: 27

Hmmm -- decided rather than generating my own exml would use the "appendEntry"
but this yields:
Fatal error: Class 'sfLogger' not found in /var/www/kalturaCE/kaltura/alpha/apps/kaltura/lib/debugUtils.class.php on line 15