Flash Media Server written in Python (
FMSPy ) is
another RTMP server for Adobe Flash / Flex / Air applications. FMSPy is an analogue of the Adobe Flash Media Server, with much fewer 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 of packets, cutting and pasting from chunks, etc.
- Basic RPC (Invoke) client-server and server-client support. That is, from the Flash application, you can call the application methods on the server side using the NetConnection class, and vice versa, from the server side, call the application methods.
- Infrastructure for writing applications (as plugins for FMSPy) with its API in Python .
In the next releases:
- Streaming (broadcasting) from a webcam, streaming video / audio from a server (FLV, MP4, MP3).
- Support server-side Shared Object .
- Load analysis, semi-automatic clustering for load sharing.
FMSPy is written in
Python using the
Twisted Framework , applications on FMSPy are also implemented in Python and all the features available in Twisted are available: asynchronous network model, database connections,
memcached , various services, etc.
Startup and installation
If you already have Python and setuptools installed (most often on Unix / Linux, this is the case), you just need to run as root:
')
easy_install fmspy
Easy_install will automatically install all necessary dependencies (if they are not already installed). More information about the installation can be found in the
documentation .
After installation, start in debug mode (on the console) as follows:
twistd -n fmspy
To end the server, just press Ctrl + C.
Examples
Two examples are installed together with FMSPy: echotest and simple chat. Once launched, open the
http: // localhost: 3000 / examples / page and select the one you are interested in.

Instead of conclusion
Try, test, join the development. Any help is welcome: writing documentation, patches, ideas of new features, graphic materials! All this is best sent to the
tracker .
Ahead of the new releases, also in the near future article on writing applications for FMSPy.
References:
Short FAQ:- How are things going with performance? I already did the first testing, on microtests at the Red5 level. This is a completely not optimized code, I have specific ideas on how to make it 5-10 times faster, so I hope that this will be a very, very effective implementation.
- In your reports on RIT 2008, 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 remained in the depths 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 undoubtedly be better!