Author
Topic: Integrating Kmotion (Read 7938 times)

We have some work underway to integrate Kmotion (http://www.lavrsen.dk/twiki/bin/view/Motion/KmotionWebViewer ) into LinuxMCE. We're just tidying this up and then will upload our code to the charon-svn. Currently we have kmotion integrated into the Computing screen as an app (Firefox without the menu bar displayed) and we have a lot of the integration with the security menu working. I'll detail this more fully in the next few days on the wiki

We have some work underway to integrate Kmotion (http://www.lavrsen.dk/twiki/bin/view/Motion/KmotionWebViewer ) into LinuxMCE. We're just tidying this up and then will upload our code to the charon-svn. Currently we have kmotion integrated into the Computing screen as an app (Firefox without the menu bar displayed) and we have a lot of the integration with the security menu working. I'll detail this more fully in the next few days on the wiki

Is anyone interested in getting involved helping on this?

All the best

Andrew

Hi,

I'm certainly interested in enhancing motion support under LMCE. Can you please provide more info about what you did... I haven't tried KMotion yet, but did contact Dave (author) and he was interested in helping that out - he even posted to our forum (he was looking for some financial support too).

So I'll shoot questions although perhaps without any special meaning :- Did you go a bit deeper (currently taking snapshots from motion is incredibly dirty and inefficient hack) and use web interface of motion ?- Did you implement new motion wrapper ?- I mostly see KMotion usable as nice web interface. Regarding desktop viewing - I think that Orbiter and view camera screens are also a good start to make better integration (first of all I'd do mjpeg viewer to have more efficient snapshots retrievement)... What is your vision on integrating KMotion ?

We have some work underway to integrate Kmotion (http://www.lavrsen.dk/twiki/bin/view/Motion/KmotionWebViewer ) into LinuxMCE. We're just tidying this up and then will upload our code to the charon-svn. Currently we have kmotion integrated into the Computing screen as an app (Firefox without the menu bar displayed) and we have a lot of the integration with the security menu working. I'll detail this more fully in the next few days on the wiki

Is anyone interested in getting involved helping on this?

All the best

Andrew

So I'll shoot questions although perhaps without any special meaning :- Did you go a bit deeper (currently taking snapshots from motion is incredibly dirty and inefficient hack) and use web interface of motion ?- Did you implement new motion wrapper ?- I mostly see KMotion usable as nice web interface. Regarding desktop viewing - I think that Orbiter and view camera screens are also a good start to make better integration (first of all I'd do mjpeg viewer to have more efficient snapshots retrievement)... What is your vision on integrating KMotion ?

Thanks in advance,

regards,

Bulek.

We have integrated Kmotion's Web interface and this is currently displayed in a Computing menu application window with all the Firefox window objects/controls removed.

We are allowing Kmotion to setup motion and manage the thread files and the motion wrapper is just reading the config files. At present we have left the Orbiter View Camera screens as they are as they even with performance improvements they have nor UI for playing/browsing the cameras daily timeline - all they do is live viewing. It would be great to add better support for browsing triggered camera events and the video timeline but it would look to be a pretty big job to extend the Orbiter code to support this. So for now adding the Kmotion Web interface looks to be the best way forward.

We have integrated Kmotion's Web interface and this is currently displayed in a Computing menu application window with all the Firefox window objects/controls removed.

We are allowing Kmotion to setup motion and manage the thread files and the motion wrapper is just reading the config files. At present we have left the Orbiter View Camera screens as they are as they even with performance improvements they have nor UI for playing/browsing the cameras daily timeline - all they do is live viewing. It would be great to add better support for browsing triggered camera events and the video timeline but it would look to be a pretty big job to extend the Orbiter code to support this. So for now adding the Kmotion Web interface looks to be the best way forward.

All the best

Andrew

Hi,

thanks for info and effort... Browsing motion movies is currently not so convenient, but can be easily enhanced... Before LMCE I used Freevo instead and I also used motion. I've created symlinks to directories with movies from cameras and Freevo had a great and simple feature - in each directory you could have optional .txt files with some config options - for cameras, I just reversed time order of files in that directory, so newest recording is shown first... And I could quite easily browse, watch and delete recordings...

I've tried something similar with LMCE, but don't know if I can reverse ordering of files in certain directory... But, maybe we have some other options, would be happy if anyone knows more about this :- can we switch to media browser in certain directory as click on the button (we could have "Security Archive" button on Security menu) ?

I'd also like to point out that probably user would want to do only simple things on On screen Orbiter and more complex chores (that need more clicks) over web... Maybe this is also true for this situation....

I am Dave, the developer of kmotion, I think its great you guys are integrating part of kmotion into LMCE. I look forward to some screenshots

I totally agree with the comment 'currently taking snapshots from motion is incredibly dirty and inefficient hack' it is an ugly hack and one I wish I could do without. The only other option I can see is to to decode the mjpeg stream to grab frames. I look forward to seeing what you guys will do with this.

I am Dave, the developer of kmotion, I think its great you guys are integrating part of kmotion into LMCE. I look forward to some screenshots

I totally agree with the comment 'currently taking snapshots from motion is incredibly dirty and inefficient hack' it is an ugly hack and one I wish I could do without. The only other option I can see is to to decode the mjpeg stream to grab frames. I look forward to seeing what you guys will do with this.

I think one of my colleagues Winston has been in contact with you about Kmotion and his work integrating it into LinuxMCE. Currently we're not trying to enhance the Orbiter screens to handle mjpeg or near real time playback or browsing. We've taken the route of integrating your Web UI into a Computing Menu application screen. This actually works pretty nicely and it does mean that the integration is mostly down to the back end hooks etc.

We'll post a version here in the next few days and we'd love to get your feedback ;-)

Yep I think I had a conversation a while ago with someone from your group but thought it was all theoretical. I look forward to seeing what you guys have done. If you need anything you know where to contact me.

there is also one important thing on my mind regarding motion and LMCE. Currently, motion wrapper uses the old way of getting snapshots (it send signal to motion that makes snapshots to disk, then file is read and send as response to get video frame command - and this happens for every snapshot for every camera requested)...

For quite some time, motion has more advanced web interface, where also other aspects can be controlled :

Currently I'm thinking of adding some web interface to browse motion recordings.

There are at least two options :- KMotion (that also gives desktop interface - but I more wonder how it looks as a web interface and how many motion default settings are overriden - we use some of them under LMCE (for instance on_event_start, on event_end we send proper DCE message to trip on/off motion event)....

I'd kindly ask if you can post more info on Wiki about setup and how does KMotion influence on existing motion installation and motion-wrapper under LMCE.... I'd like to get the whole picture before decision how to proceed...

Currently I'm thinking of adding some web interface to browse motion recordings.

There are at least two options :- KMotion (that also gives desktop interface - but I more wonder how it looks as a web interface and how many motion default settings are overriden - we use some of them under LMCE (for instance on_event_start, on event_end we send proper DCE message to trip on/off motion event)....

I'd kindly ask if you can post more info on Wiki about setup and how does KMotion influence on existing motion installation and motion-wrapper under LMCE.... I'd like to get the whole picture before decision how to proceed...

Any other idea ?

Thanks in advance,

regards,

Bulek.

Hi Bulek,

Sorry we're trying to finish a number of things at the moment... Kmotion is one of them. Its does need a rewritten motion wrapper and the thread files need some work too. I'll see if we can get this tidied up for an... release to the charonmedia svn early next week.

after a long time... I'm about to install KMotion on 7.10 version and have few questions...

1. it seems that KMotion wants to take over control of motion. Is this ok under LMCE ?

2. any hints-advices-experiences how to integrate KMotion under LMCE ?

3. which version of motion (can it be latest) ? We're using older snapshot API via signals under lmce...

Update:4. I've compiled newer version of motion but it seems that lmce stops working with it (something is probably wrong with signals and snapshots). Original binary for 2.3.9 Ubuntu gutsy version works ok, but doesn't work if I compile by myself... What is missing ?