EzFlow - live video

Author Message

Michael Scofield

Tuesday 01 July 2008 12:16:54 am

Hello!

I'm trying to set up an Ez Flow website with Live Video Streaming.

My objective is to have a tool that I can use to record and broadcast live videos (like in a live television program).

I have already configured <i>Apache Ant</i>, <i>Java</i> and <i>Red5</i> Java-based server and also tested the Demos (<i>OFLA Demo</i>, <i>Simple broadcaster</i>, <i>Simple subscriber</i>, <i>Simple recorder</i> etc). Everything is working fine now. I can record with <i>Simple broadcaster</i> and internauts can watch it using <i>Simple subscriber</i> - but i'm using the demos.

My doubts concerns on how to do that using eZ Publish. I have created an object of class <i>Flash Recorder</i>, and filled it's attributes with the following data:

<b>Name</b>: Record Live Video
<b>Stream server</b>: rtmp://mydomain:1935/oflaDemo
<b>File server</b>: http://mydomain:5080/oflaDemo/streams
<b>Key</b>: ThisIsTheDefaultKeyChangeMe

(I don't know if it's the correct way of configuring the object. I just filled with information I got from the demos)

I published it and now when I open it in the browser (mydomain/ezflow/index.php/por/Live-Video/Record-Live-Video) I can record movies, but I don't know how to make it available to the internauts, be in a file for download or live like a television program.

I imagined that while I'm recording, if another internaut try to access the same page, he would see the live content I'm recording at the moment. But this didn't happen. If I open the same page again, ez Publish will provide the same interface and two people will be recording videos.

I looked in the back end for a class that I could use as the Player, but I only found <i>Flash</i> and <i>Video/Flash Player</i>. Both of them requires a file to be selected, so I cannot use it, because live content is being broadcasted by <i>Red5</i> and not from a file.

So, do I need to create new Ez Publish classes based on the demos to broadcast like the way I want? Is it necessary to create a customized Player (swf), because the players included with Red5 doesn't seem to have tools to forward a movie, for example.

Anyone can help me?

Thanks in advance
Michael Scofield

Michael Scofield

Wednesday 02 July 2008 6:36:09 pm

Ok, I finally understood the class <i>Flash Recorder</i> bundled with Ez Flow.

As the name says, it only records video and saves it as a FLV file with the help of the Red5 Flash server.

When the button Record is clicked, the SWF sends the video being shot to the Red5 Server, that writes it to the disk. After you click stop button, the video is made available for download in a discrete button in the bottom right part of the flash application. You will be able to download if <b>File server</b> attribute was filled with correct information during object creation (it must be a HTTP url folder, pointing to the directory where Red5 is saving recorded FLV files. I configured it using <i>Alias</i> and <i>Directory</i> directives inside apache httpd.conf file).

To show the FLV you just recorded, you must download the file as I said above, and you must create an object of class Video/Flash Player, uploading the FLV file. This FLV file will not be really streamed when the object is displayed in the browser, it will just use normal progressive download, because at this point, no Flash Streaming Server is being used.

Btw, to create a solution for broadcasting live video (as in a live TV program), one will need to hire a FLASH/ACTIONSCRIPT (or ADOBE FLEX) developer to create the SWF player. And also will need to hire a Java programmer to create the application for the Red5 java-based server. To make things easier, Red5 has working demos with source code available both for the swf player and the red5 application.

Michael

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:02:08
Script start
Timing: Jan 18 2025 11:02:08
Module start 'layout'
Timing: Jan 18 2025 11:02:08
Module start 'content'
Timing: Jan 18 2025 11:02:09
Module end 'content'
Timing: Jan 18 2025 11:02:09
Script end

Main resources:

Total runtime0.7093 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 587.8125152.6094
Module start 'layout' 0.00470.0025 740.421939.4141
Module start 'content' 0.00720.7006 779.8359432.1953
Module end 'content' 0.70790.0014 1,212.031312.1875
Script end 0.7093  1,224.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4331160.0002
Check MTime0.00130.1797160.0001
Mysql Total
Database connection0.00080.114210.0008
Mysqli_queries0.664493.6742520.0128
Looping result0.00040.0557500.0000
Template Total0.678095.620.3390
Template load0.00220.311420.0011
Template processing0.675895.275220.3379
Template load and register function0.00010.020310.0001
states
state_id_array0.00150.217810.0015
state_identifier_array0.00090.125720.0004
Override
Cache load0.00190.2657270.0001
Sytem overhead
Fetch class attribute can translate value0.00050.069510.0005
Fetch class attribute name0.00100.137220.0005
XML
Image XML parsing0.00010.011910.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00060.0870100.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs