maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Turn your tablet to IP-camera with gstmjpg (https://talk.maemo.org/showthread.php?t=20309)

laavu 2008-05-28 07:38

Re: Turn your tablet to IP-camera with gstmjpg
 
Quote:

Originally Posted by cLin (Post 186415)
Is there anyway to save snapshots using the camera motion detector? So if I leave it pointing somewhere, I can check later for photos when there was movement detected?

When you start the server with motion detection enabled, the server saves the stream when motion is detected. You can playback this stream using the "View stored stream" link. The default location where the stream is saved is the internal memory card root and the file name is gstmjpg.mjpg.

stale 2008-05-28 21:10

Re: Turn your tablet to IP-camera with gstmjpg
 
Yesterday I found a new package meamo-control-service available in application manager after refreshig the package list.
This package adds an icon to control panel that allows to set up which services to run at boot.

cLin 2008-05-30 01:51

Re: Turn your tablet to IP-camera with gstmjpg
 
Quote:

Originally Posted by laavu (Post 186486)
When you start the server with motion detection enabled, the server saves the stream when motion is detected. You can playback this stream using the "View stored stream" link. The default location where the stream is saved is the internal memory card root and the file name is gstmjpg.mjpg.

Does it store multiple streams? Or just the latest?

laavu 2008-05-30 13:57

Re: Turn your tablet to IP-camera with gstmjpg
 
Quote:

Originally Posted by cLin (Post 187099)
Does it store multiple streams? Or just the latest?

Currently it appends everything to the same file.

slip 2008-05-30 15:06

Re: Turn your tablet to IP-camera with gstmjpg
 
If this can work so well, why oh why can't we get a decent N8x0-to-PC webcam chat application!? Skype, RTCOMM...I'm talking to you. Argh! (Or, for those 30Rock fans out there...Blergh!)

sondjata 2008-05-30 15:20

Re: Turn your tablet to IP-camera with gstmjpg
 
Quote:

Originally Posted by kepler (Post 184519)
You need to do port forwarding for port 80 to your tablet ip address, in this case 182.168.1.149.

Then just access with your browser your ISP IP address and you get access to your tablet from outside world also.

It's a good idea to define a fixed IP address in your private network for your tablet, so the port forwarding rule will be always valid (your private
network may allocate different address to your tablet after some time).

When you get it working please post the port forwarding screen shot as an example for others to lear.

- kepler

What i do is have my e-mail program running while I'm away that auto replies to my request for it's IP address.

sondjata 2008-05-30 15:42

Re: Turn your tablet to IP-camera with gstmjpg
 
Ahaaa. This is cool. Very cool. Online chat will never be the same!!

*the_newbie* 2008-05-31 03:45

Re: Turn your tablet to IP-camera with gstmjpg
 
I need some help:confused:

Ive installed apache amd gtsmjpg and i know my ip adress to type into eplorer but i cant connect to my n810. my n810 and my computer are on the same network. Ive done nothing with apache though becuase i dont know how to use it:

I go to the internet browser and type in: "file:///usr/htdocs/webcam.html" and then i click start camera with motion detection and i get the"file not found" error.

Please tell me what im doing wrong.:confused:

alephito 2008-05-31 04:32

Re: Turn your tablet to IP-camera with gstmjpg
 
You should type in your PC (Firefox if possible) your N810's IP and not the path to the file. I mean:

http://#N810's-ip#/webcam.html

To access the page from your N810 you should access http://localhost/webcam.html

*the_newbie* 2008-05-31 04:48

Re: Turn your tablet to IP-camera with gstmjpg
 
I tried that and i get on my computer:

Unable to connect

Firefox can't establish a connection to the server at [ip address].

Is there somthing i should be doing with apache on my internet tablet?

The light on the top left hand corner of my internet tablet doesn't glow red to sat that thecamera is being used either, is it supposed to glow?

kepler 2008-05-31 05:23

Re: Turn your tablet to IP-camera with gstmjpg
 
Quote:

Originally Posted by *the_newbie* (Post 187402)
......
Is there somthing i should be doing with apache on my internet tablet?
.......

Try to connect locally from tablet browser to URL:
http://localhost/webcam.html
If you can access the pages and camera locally from tablets browser then apache and gstmjpg are working correctly and the problem remains in your private network. If you can't access locally with tablets own browser try:
- restart (power off, power on) tablet and apache (=httpd) should start running)
- uninstall and reinstall gstmjpg and apache if there is something wrong with the configuration.
- checck with terminal if apache and gstmjpg are running by giwing command:
$ ps

Hope this helps.

- kepler

*the_newbie* 2008-05-31 06:31

Re: Turn your tablet to IP-camera with gstmjpg
 
Thanks Kelper !
Easy as Hell!


*the_newbie*

kepler 2008-05-31 08:14

Re: Turn your tablet to IP-camera with gstmjpg
 
Quote:

Originally Posted by *the_newbie* (Post 187415)
Thanks Kelper !
Easy as Hell!


*the_newbie*

Anytime.

Did you get it working? If you did, what was the problem? (just for others to learn)

-kepler

*the_newbie* 2008-06-05 23:13

Re: Turn your tablet to IP-camera with gstmjpg
 
I hadnt installed one of tyhe applications but i never knew. I found out when i uninstalled and reinstalled. Thanks.

schni 2008-06-27 21:05

Re: Turn your tablet to IP-camera with gstmjpg
 
Is there a way to flip the image upside down (like the built-in video call does automatically when you turn the camera to point the other way)?

It's a great app, and I'm amazed with the ease of installation, zero maintenance, and the framerate!

Thank you kepler, that's awesome!

Werner

wartstew 2008-06-28 16:38

Re: Turn your tablet to IP-camera with gstmjpg
 
Great app!

Just posted to let you know that it DOES work in diablo (at least on my N810), and I did get to work with thttpd (instead of Apache).

I desired thttpd for its smaller memory foot print. After all, don't need a multi-theading web server on my IT!

To get it working with thttp, I had to move the contents of the two directories /usr/cgi-bin and /usr/htdocs to a single directory tree. I chose the thttpd default of /var/www with the cgi-bin under it. I then simbolic-linked those directories back to the original locations so that future updates will go well.

sondjata 2008-07-08 20:35

Re: Turn your tablet to IP-camera with gstmjpg
 
Quote:

Originally Posted by wartstew (Post 197073)
I had to move the contents of the two directories /usr/cgi-bin and /usr/htdocs to a single directory tree. .

Ahaaa. Thanks for this. Now I can hook up my index.html page (and others)

Noonker 2008-08-10 22:10

Re: Turn your tablet to IP-camera with gstmjpg
 
IS it at all possible to add sound with this?

mooler 2008-08-11 00:34

Re: Turn your tablet to IP-camera with gstmjpg
 
i cant install httpd properly. it says cannot install and yet it still shows up as installed but broken. any ideas?

mooler 2008-08-11 00:54

Re: Turn your tablet to IP-camera with gstmjpg
 
im running diablo n800

DeeJay_XB 2008-08-11 12:10

Re: Turn your tablet to IP-camera with gstmjpg
 
@wartstew please write a short step by step guide for the ip-camera with httpd!

PLEASE! :D

raynman 2008-08-12 16:20

Re: Turn your tablet to IP-camera with gstmjpg
 
Adding a couple of command shortcuts to osso-statusbar-cpu for this would be a wonderful addition to an already great application. Could someone please post the command I need to enter into osso-statusbar-cpu in order to do this?

To start, I tried httpd -k start which works from xterm, but I probably need to combine this with sudo gainroot somehow. Must I put the two commands in a script and run sh -c '/pathto/script.sh'?

lad 2009-02-19 15:30

Re: Turn your tablet to IP-camera with gstmjpg
 
I guess there is no streaming cam ap for 0S2008 that has the same simplicity and gui as Peek-A-Boo did on OS2007?

raingnomo 2009-03-18 18:17

Re: Turn your tablet to IP-camera with gstmjpg
 
Quote:

Originally Posted by laavu (Post 186486)
When you start the server with motion detection enabled, the server saves the stream when motion is detected. You can playback this stream using the "View stored stream" link. The default location where the stream is saved is the internal memory card root and the file name is gstmjpg.mjpg.


how can i change the location where the stream is saved? i would like it to be my external card..

thanks

oronzous 2009-04-10 00:10

Re: Turn your tablet to IP-camera with gstmjpg
 
Just log in to say:
1- thank you, great app and very easy to use

2- some ISP (like mine) block ports for security issues. I had to call them and they opened port 80 in a few minutes.

wartstew 2010-04-09 22:33

Re: Turn your tablet to IP-camera with gstmjpg
 
Quote:

Originally Posted by DeeJay_XB (Post 212264)
@wartstew please write a short step by step guide for the ip-camera with httpd!

PLEASE! :D

Sorry about taking years to get back, but I didn't see this post until I had to look up this thread to help do it again since my N810 ate its root file system (ouch!).

1) Anyway I installed thttpd instead of Apache, It is in a repository somewhere.

2) Get a root shell and edit /etc/thttpd/thttpd.conf to enable option "nochroot" and disable "chroot". Note the security issues with this, but I had to do it to be able to run the busybox shell that is in /bin. I had installed the editor "nano" to do this, but "vi" is already on your NIT if you know how to use it (I do, but not real well).

3) I installed the gstmjpg application listed elsewhere on this thread.
(dpkg -i gstmjpg_1.0.11_armel.deb)

4) Since thttpd was configured to put its root in /var/www, I created the directory "cgi-bin" there and moved the contents of the gstmjpg created cgi-bin to it: mv /usr/lib/cgi-bin/* /var/www/cgi-bin
You can probably ignore all that previous stuff I posted about symlinks since there probably won't be any updates to the gstmjpg for the Nokias anyway.

5) I also moved the gstmjpg http documents from /usr/htdocs to /var/www: mv /usr/htdocs/* /var/www

6) At this point you should be able to go to http:<your NIT's IP>/webcam.html and see it all work.

7) Since this thing was set to record everything to your internal mmc device (which take some processor time), for me I would rather not record, just stream, but do so in a high resolution mode so I edited /usr/share/dbus-1/services/gstmjpg.service and removed the "--out" and everything past it, then changed the "size" from qvga to vga, turned the frame rate down to 3. Now it easily streams 640x480.

Now you just have to pretty up the web pages the way you want. Notice that the stuff in cgi-bin are just shell scripts that you can change to make them work the way you want. Just remember all cgi-bin progs must output the "content type" line followed by a blank line for them to work.

(So now when my NIT eats itself again, I can find these instructions again and use them myself!)

assetburned 2010-04-09 22:48

Re: Turn your tablet to IP-camera with gstmjpg
 
hmm any chance that someone will port all this to the Maemo 5 platform?

nokian-series 2010-04-09 23:35

Re: Turn your tablet to IP-camera with gstmjpg
 
Quote:

Originally Posted by assetburned (Post 603563)
hmm any chance that someone will port all this to the Maemo 5 platform?

Dont work on N900 :(

assetburned 2010-04-11 18:31

Re: Turn your tablet to IP-camera with gstmjpg
 
because of the missing packages, right. but they could be ported or not?

Pinatz 2010-08-02 13:00

Re: Turn your tablet to IP-camera with gstmjpg
 
Is there a way to stream this and sound parallel?

eldiablo 2015-07-20 17:23

Re: Turn your tablet to IP-camera with gstmjpg
 
MJPEG has a 2GB limitation. If someone could tell me how to make gstmjpg start a new mjpg file that would be nice. I have a 16GB mem card and it seems I could record like 14hrs with that.

Also it seems motion detection only activates the camera...it doesn't seem to shut off when there's no motion. If anyone can tell me how to make it shut off after a while then that would greatly improve performance and capability.

Thanks.

Copernicus 2015-07-20 18:13

Re: Turn your tablet to IP-camera with gstmjpg
 
Quote:

Originally Posted by eldiablo (Post 1477384)
MJPEG has a 2GB limitation. If someone could tell me how to make gstmjpg start a new mjpg file that would be nice. I have a 16GB mem card and it seems I could record like 14hrs with that.

Hmm. Looking at the code, it doesn't seem as though it keeps track of the file size at all. So, the 2GB limitation is probably a system-level limitation on the size of individual files. This also means that there isn't any simple way for it to recognize that it needs to close the current file and start a new one (at least without modifying the source code to monitor the file size). :(

Quote:

Also it seems motion detection only activates the camera...it doesn't seem to shut off when there's no motion.
Ok, the code does look like it is supposed to stop recording video when motion ceases. I'm not sure why it wouldn't be working for you...


All times are GMT. The time now is 08:10.

vBulletin® Version 3.8.8