Author Topic: Integrating Kmotion  (Read 12595 times)

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Integrating Kmotion
« on: September 14, 2008, 06:04:52 pm »
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
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Integrating Kmotion
« Reply #1 on: September 14, 2008, 09:26:33 pm »
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 ?

Thanks in advance,

regards,

Bulek.
 
Thanks in advance,

regards,

Bulek.

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Integrating Kmotion
« Reply #2 on: September 15, 2008, 03:32:11 pm »
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.

All the best

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Integrating Kmotion
« Reply #3 on: September 15, 2008, 10:57:39 pm »
....

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....

Regards,

Bulek.
Thanks in advance,

regards,

Bulek.

dave_s

  • Making baby steps
  • Posts: 3
    • View Profile
Re: Integrating Kmotion
« Reply #4 on: September 16, 2008, 09:36:18 pm »
Hi,

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.

Anyway good luck. kmotion was my first real app, I have moved on and am now deep in kmotion2, http://code.google.com/p/kmotion2/wiki/ScreenShots which is a total rewrite and a lot cleaner internally + a lot more features.

Cheers

Dave




dave_s

  • Making baby steps
  • Posts: 3
    • View Profile
Re: Integrating Kmotion
« Reply #5 on: September 16, 2008, 09:46:19 pm »
lol ... there is me thinking I can't grab a frame from a mjpeg stream without C/C++ when I bump into http://www.lavrsen.dk/twiki/bin/view/Motion/MjpegFrameGrabPHP looks like kmotion2 will be useing something something similar ...

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Integrating Kmotion
« Reply #6 on: September 16, 2008, 10:09:10 pm »
Hi,

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.

Anyway good luck. kmotion was my first real app, I have moved on and am now deep in kmotion2, http://code.google.com/p/kmotion2/wiki/ScreenShots which is a total rewrite and a lot cleaner internally + a lot more features.

Cheers

Dave

Hi Dave,

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 ;-)

Cheers

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

dave_s

  • Making baby steps
  • Posts: 3
    • View Profile
Re: Integrating Kmotion
« Reply #7 on: September 17, 2008, 08:50:21 am »
Hi Andrew,

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.

Cheers

Dave
 

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Integrating Kmotion
« Reply #8 on: September 17, 2008, 09:23:57 am »
Hi,

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 :

http://www.lavrsen.dk/twiki/bin/view/Motion/MotionHttpAPI

I'm currently thinking about rewrite of motion wrapper in GSD form (since I don't know C) to enhance possible features and control of motion.....

Regards,

Bulek.
Thanks in advance,

regards,

Bulek.

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Integrating Kmotion
« Reply #9 on: October 16, 2008, 09:36:54 am »
Hi,

Andrew and progress on KMotion ?

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)....

- MotionBrowser (that is also listed on motion site - this one is only web interface to browse/delete motion recordings)....
http://www.lavrsen.dk/twiki/bin/view/Motion/MotionBrowser - this one will not break many motion settings...

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.




Thanks in advance,

regards,

Bulek.

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Integrating Kmotion
« Reply #10 on: October 17, 2008, 04:32:56 pm »
Hi,

Andrew and progress on KMotion ?

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)....

- MotionBrowser (that is also listed on motion site - this one is only web interface to browse/delete motion recordings)....
http://www.lavrsen.dk/twiki/bin/view/Motion/MotionBrowser - this one will not break many motion settings...

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.

All the best

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Integrating Kmotion
« Reply #11 on: February 13, 2011, 12:43:39 pm »
Hi,

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 ?

5. - Do you use motion detection/recording in Dianemo/Cascade system? What settings/strategy regarding false positives (filters,despeckle,....) ?

Thanks in advance,

regards,
Bulek.

« Last Edit: February 18, 2011, 12:45:43 pm by bulek »
Thanks in advance,

regards,

Bulek.