maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [app] N800 Camera Motion Detector w/HTTP server (https://talk.maemo.org/showthread.php?t=4869)

ShyBoy 2007-11-14 17:28

Re: [app] N800 Camera Motion Detector w/HTTP server
 
any news on this project, when the .deb will available?

Karel Jansens 2007-11-14 17:59

Re: [app] N800 Camera Motion Detector w/HTTP server
 
See, this might be a clever app that uses the camera, but I don't get it: Why in Loki's name would I ever want to leave my tablet behind?

I'm imagining pictures of a hand, growing larger and larger and then...

Poof! no more N800...

computerfreek 2008-01-02 20:52

Re: [app] N800 Camera Motion Detector w/HTTP server
 
I just setup motion on my N800 with os2008 and it is working great looks like if you have a sip account setup you have to shut it off or it will kill the camera. But other wise it is a great app. I even used a java code to stream it to a webserver and now you can view it in IE firefox and more .. I hope to see a front end on this app soon that will be great .


computerfreek

rhouge 2008-01-06 19:25

Re: [app] N800 Camera Motion Detector w/HTTP server
 
I'm logged in as root, copied the files to /home/user, but when I try to ./motion I get "permission denied". Any thoughts?

Also, a follow-up, how would I turn it off, just close the camera?

Can't wait to monitor the dog when away. But wait, that DOES mean I have to leave my nokia behind...no way.

EDIT: Does this work on OS2008? I searched the "applications running on OS2008" thread but came up empty...

EDIT2: I changed permissions to 777 and got it to run, but it is still failing. Do I need to have the camera out prior to running the app, do I close the internet call app that automatically pops open when the camera is enabled? Any help would be appreciated.

gisborne 2008-01-06 19:38

Re: [app] N800 Camera Motion Detector w/HTTP server
 
I'd just like to point out that at $220, an N800 competes pretty well in price with dedicated video server cameras.

And in response to "why would I leave the camera behind", this will be useful for me, around the house, to monitor the kids playing when I'm in another room.

computerfreek 2008-01-12 03:33

Re: [app] N800 Camera Motion Detector w/HTTP server
 
Quote:

Originally Posted by rhouge (Post 122020)
EDIT2: I changed permissions to 777 and got it to run, but it is still failing. Do I need to have the camera out prior to running the app, do I close the internet call app that automatically pops open when the camera is enabled? Any help would be appreciated.

Yes i have it working on my n800 runing os2008 mine will fail also from time to time. here is what i have to do to get it runing on my system

1st set your sip accounts off if you have any .

2nd open you camera/pop it out

3rd reboot your n800

4 when the system is loaded go right to xterm and start ./motion

5 it works !!!

I have tested this over and over and it seems like you can only get it working from a clean start without any sip accounts runing . I know there must be a way to reset the camera VIA command line i just can;t find out how to do it . So you will have to do it the way i am for now.

Computerfreek

atlas95 2008-01-12 10:39

Re: [app] N800 Camera Motion Detector w/HTTP server
 
How to run it on n810 please?
I have those errors:

Atlas-tablet:~# ./motion
[0] Processing thread 0 - config file motion.conf
[0] Unknown config option "ffmpeg_cap_new"
[0] Unknown config option "ffmpeg_cap_motion"
[0] Unknown config option "ffmpeg_timelapse"
[0] Unknown config option "ffmpeg_timelapse_mode"
[0] Unknown config option "ffmpeg_bps"
[0] Unknown config option "ffmpeg_variable_bitrate"
[0] Unknown config option "ffmpeg_video_codec"
[0] Unknown config option "ffmpeg_deinterlace"
[0] Unknown config option "movie_filename"
[0] Unknown config option "timelapse_filename"
[0] Unknown config option "sql_log_image"
[0] Unknown config option "sql_log_snapshot"
[0] Unknown config option "sql_log_mpeg"
[0] Unknown config option "sql_log_timelapse"
[0] Unknown config option "sql_query"
[0] Thread 1 is from motion.conf
[1] Thread started
[0] motion-httpd/3.2.8 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.driver: "omap24xxcam"
[1] cap.card: "omap24xxcam"
[1] cap.bus_info: ""
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] v4l2_select_input: name = "camera", type 0x00000002, status 00000000
[1] - CAMERA
[1] Supported palettes:
[1] 0: UYVY (YUYV (YUV 4:2:2), packed)
[1] 1: RGBP (RGB565, le)
[1] Test palette UYVY (320x240)
[1] Using palette UYVY (320x240) bytesperlines 640 sizeimage 153600 colorspace 00000007
[1] found control 0x0098090e, "Red Balance", range 0,255
[1] "Red Balance", default 0, current 64
[1] found control 0x0098090f, "Blue Balance", range 0,255
[1] "Blue Balance", default 0, current 64
[1] found control 0x00980911, "Exposure Time", range 0,8191
[1] "Exposure Time", default 0, current 525
[1] found control 0x00980913, "Gain", range 0,63
[1] "Gain", default 0, current 192
[1] found control 0x08000000, "Auto Luminance Control", range 0,1
[1] "Auto Luminance Control", default 0, current 0
[1] found control 0x08000001, "Horizontal Edge Enhancement", range 0,255
[1] "Horizontal Edge Enhancement", default 0, current 4
[1] mmap information:
[1] frames=4
[1] 0 length=155648
[1] 1 length=155648
[1] 2 length=155648
[1] 3 length=155648
[1] Using V4L2
[1] setting control "Gain" to 3 (ret 0 )
[1] Started stream webcam server in port 8081
[1] v4l2_next: VIDIOC_DQBUF: Input/output error
[1] Resuming operation... this may be a N800 quirk
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] Video device fatal error - terminating camera thread
[1] Thread exiting
[1] Somebody stole the video device, lets hope we got his picture: Invalid argument
[0] Motion terminating
[0] httpd - Finishing: Success
[0] httpd Closing

rhouge 2008-01-14 20:27

Re: [app] N800 Camera Motion Detector w/HTTP server
 
@computerfreak Yup, that works, thanks!

ShyBoy 2008-03-21 14:47

Re: [app] N800 Camera Motion Detector w/HTTP server
 
It works once and now I am getting this error.


[1] setting control "Gain" to 3 (ret 0 )
[1] Started stream webcam server in port 8081
[1] v4l2_next: VIDIOC_DQBUF: Input/output error
[1] Resuming operation... this may be a N800 quirk
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] Video device fatal error - terminating camera thread
[1] Thread exiting
[1] Somebody stole the video device, lets hope we got his picture: Invalid argument
[0] Motion terminating


Can someone help? reboot didn't work.

ShyBoy 2008-03-21 14:57

Re: [app] N800 Camera Motion Detector w/HTTP server
 
@computerfreak: it works once I reboot from commandline. not the power off button.

I dunno maybe that conflict with another app which I installed for video recording.


I know that doesn't make sense. but that how it worked....


All times are GMT. The time now is 17:33.

vBulletin® Version 3.8.8