EventStreamR come to inception from a collection of experiences amongst our local LUG the Perth Linux User Group. Although we call ourselves PLUG, we have members from all over the state. Western Australia being quite large, 2,529,875 square km or over 10 times bigger than Victoria; so some of our members find it quite difficult to attend. A few years ago an initiave started by James Bromberger was to film and live stream all PLUG talks so that every member had an oppurtunity to attend our meetings, even if they couldn't necessarily make it in person.
Between our experience streaming and attending LCA2013 to get a feel for how the conference ran, we had come to the conclusion that the Open Source Video mixing stack we use (DVswitch), whilst being easy to use and quite fit for purpose; it can be a little unreliable. Along with that DV aka Digital Video as a dying standard. To my knowledge there isn't a lot of work being put into the project as the world is moving on from DV. In light of all that we had come up with a list of requirements to bring reliability to the table.
- Open Source
- Be able to scale up and down
- Easy to setup and use
- Work on any hardware
- Central Configuration Management + Control
- Able to operate independently (Locations with no network or failure of networking)
Ability to scale down was particularly important to us, as we want to be able to use this solution at our local LUG and also encourage other LUGs to generate content. Which was something that I felt was lacking in some of the established solutions (eg. Matterhorn, though I'm happy to be shown otherwise). So after gathering our requirements, there was also figuring out what problems we needed to solve.
- DVswitch - It sometimes goes bang
- DVgrab - does not fail gracefully
- Setup for multiple stations and rooms is time consuming
There are 2 major components to EventStreamR, I'll cover the engine that sits in the background doing all the hardwork. I had pondered for some time about how I was going to solve the above problems and also meet our requirements. I felt Perl would be up to the challenge (and also happens to be the language I have the most exeprience in). It's a language I frequently use to glue things together in my day job and there are many libraries availble, which means less time re-inventing the wheel.
With Luke writing the framework for the frontend, it left me focus on the backend. Which at it's core is a single daemon and essentially is a RESTful api enabled glorified process manager. I learnt a number of things whilst developing this with Jason.
- The current firewire stack is extremely reliable, the hardware I chose to develop the solution with initially was not. (2 days yak shaving due to a faulty camera and faulty firewire leads).
- IPC::Shareable - I love what it can do, however you really need to devote time to managing your shared memory. We had modest needs, so Signals + HTTP calls were more than enough.
- There are either restrictions to what key names when utilising JSON for serialised data or the JSON library does not escape them correctly. I need to fix this properly
- The default dancer HTTP engine (HTTP::Server::Simple::CGI) does not support all HTTP methods. Causing much hair pulling when attempting to address CORS issues.
- When you think you've squashed all the bugs, there will be more
- You won't have quality time to write code at a conference
- You will have to write code at the conference and it will inolve hours of yak shaving
- If you're making a lot of mistakes, have a nap or if it's late go to bed!
Overall LCA2014 was a success and I'm happy to report that the solution was extremely reliable, we had some hardware failure and issues with capture devices; scenarios we were quite preparred for. I'm sure there is more I could write or more lessons I could share, but I will leave you with the following statement and youtube video.
Amazing things can happen when your volunteers are not afraid to experiemnt.
(We caught this on the video wall in the TAVNOC and crowded around the nearest computer with external speakers. It was amazing!)
Comments
comments powered by Disqus