Archive for the ‘Red5’ Category

Great post on Red5 Scopes

Tuesday, March 23rd, 2010

Dominic Williams has written up a good post on Red5 scope management. I suggest you take a look!

http://ria101.wordpress.com/2010/03/09/red5-cabin-fever-advanced-scope-and-room-management/

Resources on RTMFP

Tuesday, March 23rd, 2010

RTMFP stands for Real Time Media Flow Protocol and is Flash’s answer to UDP P2P streaming and data transfer. Red5 doesn’t currently support RTMFP, but we have been actively discussing this as a potential feature for future development. In the mean time go ahead and check out these video resources as they should get you up to speed.

cheers!

Clientside vs Serverside remote SharedObject updates

Monday, January 18th, 2010

The following question was asked on the red5 mailing list:

what is the difference between update a sharedobject in the client side doing sharedobject.setProperty(”property”,value) with actionscript and in the server side with red5 doing
sharedobject.setAtributte(”atributte”,value).

There is a difference between the two. Clients who are subscribe to remote SharedObjects get notified of updates via the SyncEvent which gets dispatched by the Flash Player. The SyncEvent object contains a few important properties [target, changeList]. The target property points to the SharedObject which is being updated. However, the changeList property holds an Array of objects that have status in regards to the slot data. Each object in the list has three properties [code, name, and oldValue]. The Flash Player sets code to "clear", "success", "reject", "change", or "delete". You can read more about the difference here! The two values that help answer your question are as follows:

  • A value of "success" means the client changed the shared object.
  • A value of "change" means another client changed the object or the server resynchronized the object.
So if the server updates the SharedObject, then both clients would receive a code value of "change". If a client updates the SharedObject, then one client would receive a code value of "success" and the other would receive a code value of "change".

Red5 H.264 Support in Flash Player 10.1

Monday, January 11th, 2010

For anyone who has recently upgraded to the 10.1 FP, you’ll notice that your mp4/h.264 files no longer work in your application. Fear not, the issue is being worked on and we will hopefully have a patch for this very soon. Until then, just note that your current applications will still work in production since there are no issues with the latest released Flash Player!

FFMpeg Encoding Settings

Monday, January 11th, 2010

FFMpeg can be tricky and a bit intimidating for the faint of heart. In fact, I remember spending a half day encoding movies until I found a setting I liked. To save some of you the same trouble I went through, here is the exact encoding I use for my MP4 files.

ffmpeg -i myMovie.mov -acodec libfaac -ab 128k -vcodec libx264 -vpre hq -vpre slowfirstpass -b 1000k -bt 1000k -threads 0 myMovie.mp4

The line above takes the “myMovie.mov” file and encodes it to “myMovie.mp4″ using h.264 as it’s encoding. You must have FFMpeg installed for this to work and the directions for getting and installing ffmpeg are beyond my discussion here.

Remember that MP4 is a container format which Flash Player 10 can read. This is similar to the FLV file format that were used to. However, the difference comes from the payload in which an MP4 uses h.264 as compared to sorenson and On2 VP6 in the FLV container. H.264 makes for a much smaller encoding and provides for a brilliant video experience with 720p HD video and 1280p.

Red5 Developer Series – Live

Monday, December 21st, 2009

I’m excited to have had a chance over the weekend to work on something I’ve been meaning to start for quite some time! A long time ago, in a galaxy far far away I had created several useful video tutorials on how to setup your Red5 development workspace and get started with developing on the Red5 application server. However, as all oss projects go, the server was constantly changing at a rapid pace. Times have changed as we are approaching the Red5 1.0 release. The server has reached a level of stability during this time and we are almost feature complete! In this regard, it seemed like the perfect time to start over and release some material that the community could benefit from. I decided that youtube was the perfect platform for delivering the series due to their bandwidth and high definition upload capability. That said, I am officially releasing “The Red5 Developer Series” to the community.

Red5 Developer Series

Red5 Developer Series

The Red5 Developer Series is a youtube channel I’ve created that will allow me to publish educational videos for the Red5 application server. So far, I’ve created four videos. Each video has been encoded to high definition 1280×720p. Make sure you click on the “HD” button and view in full screen for the best result. My hope is that  you find these useful. If you would like to show your support, then please subscribe to the “Red5 Developer Series” channel and to my site here. Link to and write posts about the series and my site (www.newviewnetworks.com). Leave me comments and suggestions on what I could do to increase the value of these.

The Red5 Developer Series

The video series includes:

Part 1:
-introductions
-explanation of what the series will cover

Part 2:
-navigating the red5 trac site
-initial discussion of Red5Plugin
-mailing list info
-registering for trac
-how to submit a bug

Part 3:
-how to check out the source code from the repository
-explain what developer tools are needed
-explain what eclipse plugins are needed
-installation of the Red5Plugin
-import the Red5 project into your workspace
-explain directory structure
-explain the build fild
-build a distribution in the deault dist directory
-running your distribution from the terminal
-install a RemoteSharedObject example
-run the RemoteSharedObject example

Part 4:
-shutting down Red5 gracefully
-creating custom distributions
-running your distribution from within eclipse
-attaching source to your distribution
-debugging Red5 source code from within eclipse
-quickly step through Red5 cod

Streaming Red5 Video to Flash Lite 3

Tuesday, October 27th, 2009

Have a look here for an example and source code: flashvisions

note: the source code shows that it’s pretty straight forward… so I guess it’s more of a confirmation than a breakthrough :) .  Regardless, this may be interesting for some of you who have been wondering if this was possible.

Old Example Video Tutorials

Thursday, April 10th, 2008

I was asked to post my old video tutorials, so here they are. I will be removing these as soon as I make updated videos.

When viewing the examples below, you have to refresh the screen if the video fails to load… Sorry!

Simple Example

Installer

Uninstaller

New Application

New Application Correction

Flex Connection

Flex Auth

And then there was light…

Friday, March 21st, 2008

For those of you who have frequented my blog in the past, you’re probably wondering where all the content has gone! It turns out that I had migrated to WordPress from BlogCFC and felt that I could reinvent the site towards my current focus within the industry. For the rest who are new to this site I’ll provide a brief understanding of who I am and explain how I’ll be adding value to the community.

In late 2005 an interesting open source project was just getting kicked around on a mailing list. Not strangers to open source were John Grden and Chris Allen who took on the project management roles. I quickly joined the team committing to what would become a staple in my life for the last 3 years. That project was later named Red5 (original concept).

Red5 of course has a star wars significance. It was Luke Skywalker’s callsign in the Battle of Yavin, during the Galactic Civil War

.

Red5

Regardless, Red5 turned out to capture my interest and seal my fate as it had sealed Luke’s fate. A strange twist on words led to work with a talented developer Luke Hubbard and yeah yeah, the force must have been with him. Luke had a solid understanding of protocols and integration of open source technologies such as MINA and Spring while I started work on adding file format parsing to the io (input/output) library. Later on, we picked up some great contributions from random developers and during that time some fresh legs joined the effort to continue the work on an evolving server. Joachim quickly entered and implemented support for mp3 and amf remoting to name just a few. Paul gave us the support for tomcat and has continued to add value to the server. Now, Rome wasn’t built in a day and neither will Red5 be built in a day. It turns out we are now in 2008 and we’ve reached 0.7 in our timeline. For Red5, this site will stand as a personal perspective of the platform and offer guidance to those who are new and old.

Through the years, I’ve also been developing with Flex, Flash, Java and all technologies in between. I hope to transfer some of my experience and expectations of these languages in future posts.

Last, I am also a core developer on 2 new projects that aren’t yet released to the public. I’ll name just one for the time being and allude to the second in future posts. During my experience with Red5 and building applications focusing on live, real-time applications, I’ve found that there is a void in terms of framework and expertise is designing these types of applications. Many developers understand the API’s but rarely build reusable components on top of reusable frameworks. Worse yet, there are currently no viable frameworks for building UI components for real-time development. It’s in these areas that I hope Jedai, a new open source framework will succeed! The project is not yet open and I am trying my hardest to make this possible in the near future. We’ve already seen some great expectations of the framework and our hope is that others will contribute to the project once it is released. Until then, I’ll relay details and announcements through this site.

There’s far more information than I can explain in my first post, so I’ll leave it at that. If your interested in any of these projects and aren’t sure where to begin, please leave a comment or wait for my next post where I’ll try to explain how you can join the open source community.