Please visit our new Forums at Kaltura.org, our brand new community website. These Forums have been closed and will remain online as an archive only.

All Entries on CMS doesn't list all entries...

All Entries on CMS doesn't list all entries...

Postby Chris Hocking on Tue Dec 30, 2008 11:57 am

Hi Everyone,

Apologies for posting so many questions already! I'm still trying to get my head around this system.

Again, I'm not sure if this is a bug or not, but it appears that the All Entries list on the CMS doesn't actually list all the entries. For example, on my CMS it lists 6 entries, but if I use the listentries API call, it claims there are 41 entries (which I think is correct).

Also, I'm still slightly confused about the difference between rough-cuts, entries and kshows - and what justifies an entry. According to the documentation...

An entry is a media entity and it's meta data on the Kaltura servers. It can be an image, a sound clip, a video or a rough-cut (explained below) wrapped with vast information such as dates, titles, tags, ratings and more.


...which makes perfect sense. However, it seems to me that you can have multiple entries for the same video clip. For example, say user one uploads a video clip. This will create two entries - a entry for the actual video, and a roughcut containing that video. If user two now makes a remix of that clip, then two more entries are created - a roughcut, and another entry for the same video clip. If a hundred users do remixes then you end up with a hundred and one remixes and a hundred and one entries for the same video clip.

Is this right? Surely there should only ever be ONE unique entry ID for each individual asset (whether it be a image, sound clip, video or rough-cut).

If I'm completely wrong, or have completely missed the plot - please let me know! But after doing some simple tests using the Test Console, this seems to be the case.

Thanks in advance...

Best Regards, Chris!
Chris Hocking
 
Posts: 139
Joined: Sat Dec 27, 2008 8:02 am

Re: All Entries on CMS doesn't list all entries...

Postby Roman on Tue Dec 30, 2008 1:47 pm

Video, image & audio are not duplicated when cloning a rough cut.

When you remix a rough cut, you will remix that rough cut only (And will create a new version for it)

Every video/images/audio must be linked with some roughcut entry, but it can be ignored by passing kshow = -1 when adding an entry. This will link the entry to the users default roughcut, so you won't be getting new roughcut for every media upload.


Roman
Roman
Site Admin
 
Posts: 92
Joined: Sun Aug 03, 2008 8:06 am

Re: All Entries on CMS doesn't list all entries...

Postby Chris Hocking on Tue Dec 30, 2008 2:52 pm

Great! Thanks for clearing that up Roman...

I'm still slightly confused however! The addentry function does seem to create a new entry every time you use it.

Here is a copy of the result:

Code: Select all
<xml>

<result>

<entries>

<entry1_>
<id>goexu6p30g</id>
<name>Kaltura Test 05</name>
<partnerId>00000</partnerId>
<subpId>0000000</subpId>
<puserId>Administrator</puserId>
<tags>kaltura, test, 05</tags>
<status>2</status>
<type>1</type>
<mediaType>1</mediaType>
<kshowId>g14s60nbkw</kshowId>
<createdAt>2008-12-30 10:01:24</createdAt>
<createdAtAsInt>1230649284</createdAtAsInt>
<dataPath>/content/entry/data/1/480/goexu6p30g_100000.flv</dataPath>
<rank>0</rank>
<totalRank>0</totalRank>
<duration>10.031</duration>
<source>20</source>

<dataUrl>
http://cdn.kaltura.com/p/12431/sp/1243100/flvclipper/entry_id/goexu6p30g/version/100000
</dataUrl>

<thumbnailUrl>
http://cdn.kaltura.com/p/12431/sp/1243100/thumbnail/entry_id/goexu6p30g/version/100000
</thumbnailUrl>
<version>100000</version>
<permissions>1</permissions>

<downloadUrl>
http://cdn.kaltura.com/p/12431/sp/1243100/raw/entry_id/goexu6p30g/version/100000
</downloadUrl>
<views>0</views>
<votes>0</votes>
<plays>0</plays>
<modifiedAt>2008-12-30 10:01:24</modifiedAt>
</entry1_>
</entries>
<new_entry_count>1</new_entry_count>
<serverTime>1230649284</serverTime>
</result>
<error/>

<debug>
<sigtype>1</sigtype>
<validateSignature/>
<signature>000002d70beba2c5a11a9802efed485a</signature>

<entry1_>

<added_fields>
<name>Kaltura Test 05</name>
<source>20</source>
<mediaType>1</mediaType>
<fromTime>^0</fromTime>
<toTime>^0</toTime>
</added_fields>
</entry1_>
<execute_impl_time>0.51481294631958</execute_impl_time>
<execute_time>0.62520790100098</execute_time>
<total_time>0.627436876297</total_time>
</debug>
</xml>
Chris Hocking
 
Posts: 139
Joined: Sat Dec 27, 2008 8:02 am

Re: All Entries on CMS doesn't list all entries...

Postby Roman on Tue Dec 30, 2008 5:07 pm

addentry will create an new entry for the media (video/image/audio) every time

when passing kshow_id = -1
the new media entry will be linked to the default user's roughcut

when passing kshow_id = -2
a new roughcut entry will be also created for the new media entry

if you want to add the entry to an existing roughcut, you can pass kshow_id=entry-ROUGHCUTID
if you have roughcut id xyz123, you should pass kshow_id=entry-xyz123
Roman
Site Admin
 
Posts: 92
Joined: Sun Aug 03, 2008 8:06 am

Re: All Entries on CMS doesn't list all entries...

Postby Chris Hocking on Wed Dec 31, 2008 12:18 am

Cheers Roman! I'm slowly getting my head around it. Thanks for being so patient. I do have some more questions however...

1. So two different KShow's cannot both have the exact same media? For example, if you have two video clips, and you want to insert them into two different KShow's, then you have to use the addentry function which will duplicate them?

2. So I now presume that the Contribution Wizard is basically just a user interface for the addentry function?

3. However, multiple rough-cuts of the same KShow can be linked to the same media asset?

4. Also, how to you select which is the default user's roughcut?

5. Finally, I just want to make sure this is correct. You can't create a rough cut without creating a KShow first? A rough cut is always a child to a KShow?
Chris Hocking
 
Posts: 139
Joined: Sat Dec 27, 2008 8:02 am

Re: All Entries on CMS doesn't list all entries...

Postby Roman on Wed Dec 31, 2008 3:10 pm

Chris Hocking wrote:Cheers Roman! I'm slowly getting my head around it. Thanks for being so patient. I do have some more questions however...

No problem, happy to help.

Chris Hocking wrote:1. So two different KShow's cannot both have the exact same media? For example, if you have two video clips, and you want to insert them into two different KShow's, then you have to use the addentry function which will duplicate them?


Lets use roughcut or mix teminology, because kshow is obsolete and won't be supported in the future. It is currently used as a container to open the simple editor.
Basically, the same media can exists in 2 mixes. (When you clone a mix, the entries are not duplicated. Although, if you addentry using an existing Kaltura id, it will be duplicated)


Chris Hocking wrote:2. So I now presume that the Contribution Wizard is basically just a user interface for the addentry function?


Yes, including the search functionality

Chris Hocking wrote:3. However, multiple rough-cuts of the same KShow can be linked to the same media asset?


Yes, but every roughcut has it's kshow. And derive media assets from a parent kshow (the one used for cloning)

Chris Hocking wrote:4. Also, how to you select which is the default user's roughcut?


Default user roughcut is created automatically

Chris Hocking wrote:5. Finally, I just want to make sure this is correct. You can't create a rough cut without creating a KShow first? A rough cut is always a child to a KShow?


You can use addRoughcutEntry as described in create a mix and the kshow will be created automatically:
http://corp.kaltura.com/wiki/index.php/ ... te_a_Remix

KShow is just used as a container to link media together to populate the simple editor (Not like a roughcut which is already a video sequence)

And yes a roughcut is a child to a kshow.


Roman
Roman
Site Admin
 
Posts: 92
Joined: Sun Aug 03, 2008 8:06 am


Return to Kaltura API's (web services)

Who is online

Users browsing this forum: No registered users and 1 guest

cron