Utilizing KCW on KalturaCE?

19 replies [Last post]
Joined: 05/18/2009
Points: 45

Any thought to allow use of this player with CE?

Or does it already and I dont know how?
I would like to try the webcam piece with CE. I have Red5 running already.

Joined: 01/05/2009
Points: 1697

Full integration with Red5 is not finished on the alpha version so it is not available yet.

Joined: 01/05/2009
Points: 1697

To patch the code and enable using Red5 - Add a symbolic link to the webcam directory in the katluraCE path;

Create a symbolic link from the oflaDemo directry (or other folder that you customized Red5 save recorded streams to, usually: red5/webapps/oflaDemo) to the webcam folder in the kalturaCE (/ kalturaCE/content/webcam) .

Than you need to change the kcw uiConf (for the sample implementation: content/uiconf/kaltura/samplekit/kcw_2.6.4) to add the webcam UI:

  • Edit the uiConf xml.
  • Inside the MediaProviders tag add the following:
    <service>
        <id>2</id>
        <type>webcam</type>
        <authMethodList>
          <authMethod>1</authMethod>
        </authMethodList>
        <moduleUrl>WebcamView.swf</moduleUrl>
        <name>Webcam</name>
        <logo/>
        <customData>
          <serverUrl>rtmp://{HOST_NAME}/oflaDemo</serverUrl>
        </customData>
        <media>
          <type>video</type>
        </media>
      </service>
  • If your Red5 is installed to listen on a special port or another server, change the "rtmp://{HOST_NAME}/oflaDemo" url to your Red5 recording application url.
Joined: 05/18/2009
Points: 45

Thanks Kalturian,
But I can not locate uiConf.xml in content/uiconf/kaltura/samplekit/kcw_2.6.4

i have kcw_samplekit.xml there , but it does not follow the above format.

Joined: 01/05/2009
Points: 1697

kcw_samplekit.xml is the file to edit (considering the sample implementation kcw is the one you would like to change, if not edit one of the other on content/uiconf/kaltura/).

And the code should look like this (Sorry, the code I posted before is for an older version :) )

<provider id="webcam" name="webcam" code="2">
    <authMethodList>
      <authMethod type="1" />
    </authMethodList>
    <moduleUrl>WebcamView.swf</moduleUrl>
   
    <customData>
      <serverUrl>rtmp://{HOST_NAME}/oflaDemo</serverUrl>
    </customData>
   </provider>
Joined: 05/18/2009
Points: 45

That all works and I can now see the webcam , record button etc.... and it looks like all ok as you go through the wizard.

But then the video disapears - just a kind of sun icon - cant see video anywhere in server process and this in error log

PHP Warning: fread(): supplied argument is not a valid stream resource in /var/www/html/kalturaCE/kaltura/alpha/apps/kaltura/lib/infra/myFlvHandler.class.php on line 113
PHP Warning: rename(/var/www/html/kalturaCE/content/uploads/1_11243824861.6717_thumbnail_big_1.jpg,/var/www/html/kalturaCE//content/entry/bigthumbnail/0/0/u0rljg0di0_100000.jpg) [function.rename]: No such file or directory in /var/www/html/kalturaCE/kaltura/alpha/apps/kaltura/lib/myContentStorage.class.php on line 276

Joined: 05/18/2009
Points: 45

test hrqhljgt5c 1 Clip (1) Single Video (1)
Ready (2)
100000.flv (x) a:1:{s:7:"puserId"; s:6:"USERID"; } 0 2009-06-01 04:37:28 2009-06-01 04:37:28 2009-06-01 04:37:28

The USERID reference looks funny? File size is 0

I can playback in webcam, so it saves.
Does not create thumbnail and the video is not coverting. Red5 is good, I can record and save.

Any ideas? Thanks for your help

Joined: 01/05/2009
Points: 1697

It seems that the script couldn't find the file that was recorded...

To make sure, you created a symbolic link from the streams folder of Red5 (where the videos files are saved during recording) to the webcam folder in the kalturaCE (/kalturaCE/content/webcam) ?

Joined: 05/18/2009
Points: 45

my sym link

ln -s /usr/local/red5/webapps/oflaDemo/streams /var/www/html/kalturaCE/content/webcam

Joined: 06/09/2009
Points: 3

you might want to check that the oflademo streams folder is a symlink to the kalturaCE webcam folder, not the other way around (that was what I did initially! :-) now it works).

Joined: 01/05/2009
Points: 1697

that's correct: ln -s dest-to-point-to src

so to be sure, daniel, did it work for you ?

Joined: 05/18/2009
Points: 45

I have tried both ways, verified permissions.

I am seeing that it seems I am getting an error before all that regarding partnerID and not a valid value.

Undefined property: KalturaConfiguration::$partnerId in /var/www/html/kalturaCE/kaltura/api_v3/web/sample/lib/KalturaClientBase.php on line 41,

Is there a way to add the kcw from this to wp all in one?
I have scoured the code and do not see an option to add webcam

Joined: 05/18/2009
Points: 45

Ok, I have tried link both ways

I even figured out how to make the wp all in one plugin to use the kcw 1.65CE instead of the 1.4?
So now I have a partnerID, no error there.

What I still get is ...

PHP Warning:  fseek(): supplied argument is not a valid stream resource in /var/www/html/kalturaCE/kaltura/alpha/apps/kaltura/lib/infra/myFlvHandler.class.php on line 112, referer: http://MYSITE/kalturaCE/p/0/sp/0/flash/kcw/v1.6.5CE/ContributionWizard.swf
[Sat Jun 13 17:07:28 2009] [error]  PHP Warning:  fread(): supplied argument is not a valid stream resource in /var/www/html/kalturaCE/kaltura/alpha/apps/kaltura/lib/infra/myFlvHandler.class.php on line 113, referer: http://MYSITE/kalturaCE/p/0/sp/0/flash/kcw/v1.6.5CE/ContributionWizard.swf
[Sat Jun 13 17:07:28 2009] [error]  PHP Warning:  rename(/var/www/html/kalturaCE/content/uploads/5_11244912818.5266_thumbnail_big_1.jpg,/var/www/html/kalturaCE/content/entry/bigthumbnail/0/0/b1tbdau3gw_100000.jpg) [<a href='function.rename'>function.rename</a>]: No such file or directory in /var/www/html/kalturaCE/kaltura/alpha/apps/kaltura/lib/myContentStorage.class.php on line 276, referer: http://MYSITE/kalturaCE/p/0/sp/0/flash/kcw/v1.6.5CE/ContributionWizard.swf
[Sat Jun 13 17:07:28 2009] [error]  PHP Warning:  rename(/var/www/html/kalturaCE/content/uploads/5_11244912818.5266_thumbnail_1.jpg,/var/www/html/kalturaCE/content/entry/thumbnail/0/0/b1tbdau3gw_100000.jpg) [<a href='function.rename'>function.rename</a>]: No such file or directory in /var/www/html/kalturaCE/kaltura/alpha/apps/kaltura/lib/myContentStorage.class.php on line 276, referer: http://MYSITE/kalturaCE/p/0/sp/0/flash/kcw/v1.6.5CE/ContributionWizard.swf
[Sat Jun 13 17:07:28 2009] [error]  PHP Warning:  rename(/var/www/html/kalturaCE//content/webcam/03A906EB-184A-9558-7597-DA9659E642C2_clipped.flv,/var/www/html/kalturaCE/content/entry/data/0/0/b1tbdau3gw_100000.flv) [<a href='function.rename'>function.rename</a>]: No such file or directory in /var/www/html/kalturaCE/kaltura/alpha/apps/kaltura/lib/myContentStorage.class.php on line 276, referer: http://MYSITE/kalturaCE/p/0/sp/0/flash/kcw/v1.6.5CE/ContributionWizard.swf

I can see the data in /var/www/html/kalturaCE/content/entry/data/0/0/b1tbdau3gw_100000.flv

But not here
/var/www/html/kalturaCE//content/webcam/03A906EB-184A-9558-7597-DA9659E642C2_clipped.flv

Joined: 01/05/2009
Points: 1697

Do you see the file being created on the kalturaCE/content/webcam directory ?
You should see a file with a GUID name (something like: 03A906EB-184A-9558-7597-DA9659E642C2.flv).
Test this by opening the folder, opening the kcw and start recording, you should see a new file created and that its size is getting bigger as you record.

Joined: 05/18/2009
Points: 45

I am in process of rebuilding the server. Going to redo the install process of everything.
It could have ended up being a permission issue somewhere, so easier at the present point to just redo everything.

I will update.
Thanks for your help.

Joined: 03/29/2009
Points: 764

Thanks, looking forward to your update.

Joined: 05/18/2009
Points: 45

This is my dir structure with sym link.

root@stroll:/home/pickle/public_html/site1/public/kalturaCE/content/webcam/streams# ls -l
total 13216
-rw-r--r-- 1 root root 461064 2009-06-27 23:25 05B794FF-C941-A79C-BAA8-24099C3BD1C2.flv
-rw-r--r-- 1 root root 487420 2009-06-27 23:14 14AF4882-04B9-E633-8039-23FF1BB1D175.flv
-rw-r--r-- 1 root root 234872 2009-06-27 22:42 150CC5D5-4D18-77C6-5271-23E2425A1265.flv
-rw-r--r-- 1 root root 3731502 2009-06-27 22:51 3229F8B4-A544-EF31-E167-23E9EAA366A1.flv
-rw-r--r-- 1 root root 270356 2009-06-27 22:59 3855543D-16FA-D70A-A474-23F1E2DC969B.flv
-rw-r--r-- 1 root root 385751 2009-06-27 23:10 38DF51A4-4FC8-7BD0-7F3A-23FB7B976C03.flv
-rw-r--r-- 1 root root 259975 2009-06-28 00:51 75E01FD8-630D-DF22-9ADC-245895B01BD7.flv
-rw-r--r-- 1 root root 407288 2009-06-27 23:04 884E703C-8932-0F10-450D-23F65989D559.flv
-rw-r--r-- 1 root root 3653855 2009-06-27 03:35 9.flv
-rw-r--r-- 1 root root 18622 2009-06-27 03:38 9.flv.meta
-rw-r--r-- 1 root root 834426 2009-06-27 22:56 E4FFAB19-2866-4565-392A-23EF4D3A95BA.flv
-rw-r--r-- 1 root root 205790 2009-06-28 00:46 EABA3B31-ECFF-6F58-33B9-2453DBA88B13.flv
-rw-r--r-- 1 root root 215621 2009-06-27 13:17 red5RecordDemo28349.flv
-rw-r--r-- 1 root root 322147 2009-06-27 03:37 red5RecordDemo29553.flv
-rw-r--r-- 1 root root 27083 2009-06-27 03:38 red5RecordDemo57157.flv
-rw-r--r-- 1 root root 244181 2009-06-27 13:19 test.flv
-rw-r--r-- 1 root root 1537 2009-06-27 13:19 test.flv.meta
-rw-r--r-- 1 root root 1665121 2009-06-27 03:35 toystory3.flv
-rw-r--r-- 1 root root 2244 2009-06-27 03:41 toystory3.flv.meta
root@stroll:/home/pickle/public_html/site1/public/kalturaCE/content/webcam/streams# cd ..
root@stroll:/home/pickle/public_html/site1/public/kalturaCE/content/webcam# ls -l
total 0
-rw-r--r-- 1 www-data www-data 0 2009-06-27 23:25 05B794FF-C941-A79C-BAA8-24099C3BD1C2_fixed.flv
-rw-r--r-- 1 www-data www-data 0 2009-06-27 23:14 14AF4882-04B9-E633-8039-23FF1BB1D175_fixed.flv
-rw-r--r-- 1 www-data www-data 0 2009-06-27 22:42 150CC5D5-4D18-77C6-5271-23E2425A1265_fixed.flv
-rw-r--r-- 1 www-data www-data 0 2009-06-27 22:51 3229F8B4-A544-EF31-E167-23E9EAA366A1_fixed.flv
-rw-r--r-- 1 www-data www-data 0 2009-06-27 22:59 3855543D-16FA-D70A-A474-23F1E2DC969B_fixed.flv
-rw-r--r-- 1 www-data www-data 0 2009-06-27 23:10 38DF51A4-4FC8-7BD0-7F3A-23FB7B976C03_fixed.flv
-rw-r--r-- 1 www-data www-data 0 2009-06-28 00:51 75E01FD8-630D-DF22-9ADC-245895B01BD7_fixed.flv
-rw-r--r-- 1 www-data www-data 0 2009-06-27 23:04 884E703C-8932-0F10-450D-23F65989D559_fixed.flv
-rw-r--r-- 1 www-data www-data 0 2009-06-27 22:57 E4FFAB19-2866-4565-392A-23EF4D3A95BA_fixed.flv
-rw-r--r-- 1 www-data www-data 0 2009-06-28 00:46 EABA3B31-ECFF-6F58-33B9-2453DBA88B13_fixed.flv
lrwxrwxrwx 1 root root 40 2009-06-28 00:45 streams -> /usr/share/red5/webapps/oflaDemo/streams

Recording works, but same can't find file type of errors.
Is it sym links?

Joined: 02/22/2009
Points: 97

cdaniel,

please do the following:

  • remove the content/webcam folder (link ?)
  • create content/webcam folder (make sure it gets 777 permissions)
  • cd /usr/share/red5/webapps/oflaDemo/
  • ln -s /home/pickle/public_html/site1/public/kalturaCE/content/webcam ./streams

That's the settings on our server, the streams folder of red5 is a sym link to content/webcam folder in kaltura

Please let me know if it works.

Gonen

Joined: 05/18/2009
Points: 45

Ok, i did exactly as instructed above - thank you.
Still the same outcome

error.log

[Sun Jun 28 17:07:29 2009] [error] PHP Warning: fseek(): supplied argument is not a valid stream resource in /home/pickle/public_html/site1/public/kalturaCE/kaltura/alpha/apps/kaltura/lib/infra/myFlvHandler.class.php on line 112, referer: http://www.site1/kalturaCE/p/0/sp/0/flash/kcw/v1.6.5CE/ContributionWizar...
[Sun Jun 28 17:07:29 2009] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/pickle/public_html/site1/public/kalturaCE/kaltura/alpha/apps/kaltura/lib/infra/myFlvHandler.class.php on line 113, referer: http://www.site1/kalturaCE/p/0/sp/0/flash/kcw/v1.6.5CE/ContributionWizar...
[Sun Jun 28 17:07:29 2009] [error] PHP Warning: rename(/home/pickle/public_html/site1/public/kalturaCE/content/uploads/1_11246208755.9_thumbnail_big_1.jpg,/home/pickle/public_html/site1/public/kalturaCE//content/entry/bigthumbnail/0/0/u7bl7wcvnc_100000.jpg) [function.rename]: No such file or directory in /home/pickle/public_html/site1/public/kalturaCE/kaltura/alpha/apps/kaltura/lib/myContentStorage.class.php on line 278, referer: http://www.site1/kalturaCE/p/0/sp/0/flash/kcw/v1.6.5CE/ContributionWizar...
[Sun Jun 28 17:07:29 2009] [error] PHP Warning: rename(/home/pickle/public_html/site1/public/kalturaCE/content/uploads/1_11246208755.9_thumbnail_1.jpg,/home/pickle/public_html/site1/public/kalturaCE//content/entry/thumbnail/0/0/u7bl7wcvnc_100000.jpg) [function.rename]: No such file or directory in /home/pickle/public_html/site1/public/kalturaCE/kaltura/alpha/apps/kaltura/lib/myContentStorage.class.php on line 278, referer: http://www.site1/kalturaCE/p/0/sp/0/flash/kcw/v1.6.5CE/ContributionWizar...
[Sun Jun 28 17:07:29 2009] [error] PHP Warning: rename(/home/pickle/public_html/site1/public/kalturaCE//content/webcam/8CE8CAA2-42FB-65F5-90AA-27D4B2AFD446_clipped.flv,/home/pickle/public_html/site1/public/kalturaCE//content/entry/data/0/0/u7bl7wcvnc_100000.flv) [function.rename]: No such file or directory in /home/pickle/public_html/site1/public/kalturaCE/kaltura/alpha/apps/kaltura/lib/myContentStorage.class.php on line 278, referer: http://www.site1/kalturaCE/p/0/sp/0/flash/kcw/v1.6.5CE/ContributionWizar...
~

--There is this extra / in this line, I had corrected that in the last install , but can not remember where this was.
-- /kalturaCE//content/entry/--
Could this be part?

PHP Warning: rename(/home/pickle/public_html/site1/public/kalturaCE/content/uploads/1_11246208755.9_thumbnail_1.jpg,/home/pickle/public_html/site1/public/kalturaCE//content/entry/thumbnail/0/0/u7bl7wcvnc_100000.jpg)

----
dir
---
pickle@stroll:/usr/share/red5/webapps/oflaDemo/streams$ ls -l
total 21316
-rw-r--r-- 1 root root 461064 2009-06-27 23:25 05B794FF-C941-A79C-BAA8-24099C3BD1C2.flv
-rw-r--r-- 1 root root 487420 2009-06-27 23:14 14AF4882-04B9-E633-8039-23FF1BB1D175.flv
-rw-r--r-- 1 root root 234872 2009-06-27 22:42 150CC5D5-4D18-77C6-5271-23E2425A1265.flv
-rw-r--r-- 1 root root 87406 2009-06-28 05:01 26F10985-72AF-5529-412E-253D229B6E04.flv
-rw-r--r-- 1 root root 3731502 2009-06-27 22:51 3229F8B4-A544-EF31-E167-23E9EAA366A1.flv
-rw-r--r-- 1 root root 270356 2009-06-27 22:59 3855543D-16FA-D70A-A474-23F1E2DC969B.flv
-rw-r--r-- 1 root root 385751 2009-06-27 23:10 38DF51A4-4FC8-7BD0-7F3A-23FB7B976C03.flv
-rw-r--r-- 1 root root 259975 2009-06-28 00:51 75E01FD8-630D-DF22-9ADC-245895B01BD7.flv
-rw-r--r-- 1 root root 3537859 2009-06-28 16:38 8090ADFE-B2F2-DC85-0AB4-27BA59D9ED42.flv
-rw-r--r-- 1 root root 407288 2009-06-27 23:04 884E703C-8932-0F10-450D-23F65989D559.flv
-rw-r--r-- 1 root root 4639823 2009-06-28 17:07 8CE8CAA2-42FB-65F5-90AA-27D4B2AFD446.flv
-rw-r--r-- 1 root root 3653855 2009-06-27 03:35 9.flv
-rw-r--r-- 1 root root 18622 2009-06-27 03:38 9.flv.meta
-rw-r--r-- 1 root root 834426 2009-06-27 22:56 E4FFAB19-2866-4565-392A-23EF4D3A95BA.flv
-rw-r--r-- 1 root root 205790 2009-06-28 00:46 EABA3B31-ECFF-6F58-33B9-2453DBA88B13.flv
-rw-r--r-- 1 root root 215621 2009-06-27 13:17 red5RecordDemo28349.flv
-rw-r--r-- 1 root root 322147 2009-06-27 03:37 red5RecordDemo29553.flv
-rw-r--r-- 1 root root 27083 2009-06-27 03:38 red5RecordDemo57157.flv
-rw-r--r-- 1 root root 244181 2009-06-27 13:19 test.flv
-rw-r--r-- 1 root root 1537 2009-06-27 13:19 test.flv.meta
-rw-r--r-- 1 root root 1665121 2009-06-27 03:35 toystory3.flv
-rw-r--r-- 1 root root 2244 2009-06-27 03:41 toystory3.flv.meta
lrwxrwxrwx 1 root root 72 2009-06-28 16:36 webcam -> /home/pickle/public_html/site1/public/kalturaCE/content/webcam
pickle@stroll:/usr/share/red5/webapps/oflaDemo/streams$

Items show ready and are added to the roughcut editor as time, yet no picture

thanks

Joined: 05/06/2009
Points: 3

For anyone who is reading this thread after me, I had the same problem as described above (I had apache already installed) . I was trying to use webcam with FMS dev server and was getting permission denied error. Eventually I had to change the owner:group of FMS application to be same as that of apache. With that done, the permission denied errors were gone and I'm able to record video from webcam using the instructions given by kaltura. Kaltura rocks!