FMSPy, Alpha Release (0.1)
Flash Media Server written in Python ( FMSPy ) is another RTMP server for Adobe Flash / Flex / Air applications. FMSPy is similar to Adobe Flash Media Server, with much less features, but FMSPy is a completely free open source project. The project is at an early stage of development, but in active development. So, what is today:
- Implementation of the RTMP protocol: encoding / decoding packets, cutting and pasting from chunks, etc.
- Support for basic RPC (Invoke) client-server and server-client. That is, from a Flash application, you can call application methods on the server side using the NetConnection class , and vice versa, call application methods on the server side.
- Infrastructure for writing applications (as plugins for FMSPy) with its own Python API .
In the next releases:
- Streaming (broadcasting) from a webcam, streaming video / audio from a server (FLV, MP4, MP3).
- Server Shared Object Support .
- Load analysis, semi-automatic clustering for load balancing.
FMSPy is written in Python using the Twisted Framework , FMSPy applications are also implemented in Python and they have access to all the features that Twisted has: an asynchronous network model, database connections, memcached , various services, etc.
Launch and installation
If you already have Python and setuptools installed (most often on Unix / Linux this is the case), just run as root:
easy_install fmspy
Easy_install will automatically install all the necessary dependencies (if they are not already installed). You can read more about the installation in the documentation .
After installation, the launch in debug mode (on the console) is as follows:
twistd -n fmspy
To end the server, just press Ctrl + C.
Examples
Together with FMSPy, two examples are installed: echo test and a simple chat. After starting, open the page http: // localhost: 3000 / examples / and select the one you are interested in.


Instead of a conclusion
Try, test, join the development. Any help is appreciated: writing documentation, patches, ideas for new features, graphic materials! All this is best sent to the tracker .
Ahead of new releases, also in the near future an article on writing applications for FMSPy.
References:
Brief FAQ:
- What about performance? I already did the first test, on microtests at the Red5 level. This code is not completely optimized yet, I have concrete ideas on how to make it 5-10 times faster, so I hope that it will be a very, very effective implementation.
- In your reports on RIT 2008, it was mentioned about pyFMS, is it somehow related to the current project? They are not connected in any way, I am the author of pyFMS, but this project has remained in the bowels of NetStream. FMSPy is an implementation from scratch, that is, it has no common code with pyFMS. FMSPy is an open and free project, and it will certainly be better!