maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N810 (https://talk.maemo.org/forumdisplay.php?f=28)
-   -   ip camera viewer for the n-810 (https://talk.maemo.org/showthread.php?t=29801)

gatornuke 2009-06-23 01:15

ip camera viewer for the n-810
 
i just purchased a nokia n-810 to use as an easily portable monitor for my trendnet tv-ip312w ip camera mounted over my baby's crib. much to my dissapontment, though, neither java nor the directx controls work on the browser. is there any software out there that will work with this thing? i'd gladly pay money for it, but it needs to work out of the box. i just don't have the time to learn a new programming language.

luca 2009-06-23 10:45

Re: ip camera viewer for the n-810
 
It's possible than mplayer is capable of playing it, once you find the address of the video stream.

gatornuke 2009-06-23 18:23

Re: ip camera viewer for the n-810
 
Quote:

Originally Posted by luca (Post 298902)
It's possible than mplayer is capable of playing it, once you find the address of the video stream.

I tried http://username:password@192.168.0.197 with no luck. Also tried setting up a video server on my desktop and that didn't work either. I don't think i'm doing it right, but there no documented detailed procedure anywhere on how to do this, and i just don't have the time to learn via trial-and-error.

Bundyo 2009-06-23 18:26

Re: ip camera viewer for the n-810
 
http://frequal.com/java/TrendnetTV-IP312W.html

Main Access Points
The camera exposes 3 TCP ports:

* 80: HTTP. Provides web access for viewing and administration
* 554: RTSP. Provides streaming video and audio
* 15566: Telnet. Provides a GNU/Linux command prompt with root access.

However, there are several undocumented URLs available:

* http://a.b.c.d/cgi/mjpg/mjpeg.cgi
o Streaming MJPEG video
* http://a.b.c.d/cgi/audio/audio.cgi
o Streaming PCM audio

qole 2009-06-23 18:40

Re: ip camera viewer for the n-810
 
I have a trendnet IP camera too (just the cheapest IP100 I think), and it does motion jpeg only.

I have only used it to look at still pictures, but I will try to see if I can get the mjpeg stream to go to the tablet.

I found docs online that suggest that, for your camera, you use the following URL for video:

Code:

http://user:password@xx.xx.xx.xx/cgi/mjpg/mjpeg.cgi
SO, get a command line, and then enter the following:

Code:

mplayer http://user:password@192.168.0.197/cgi/mjpg/mjpeg.cgi
If that works, make an icon for Personal Menu that has that command in it. Then you can check the kid from the menu.

gatornuke 2009-06-23 20:05

Re: ip camera viewer for the n-810
 
Thanks, I'll try this when i get home from work.
I think i'll try using the rtsp port as indicated prior:

'mplayer http://user:password@192.168.0.197:5...mjpg/mjpeg.cgi'

and see if there's any way to play the audio stream at the same time (if that's even possible). I already have personal menu installed, so it shouldn't be too complicated to figure out how to add an icon with a command line argument.

I'll let you know how it goes.

gatornuke 2009-06-24 03:36

Re: ip camera viewer for the n-810
 
no love folks:

~ $ mplayer http://admin:pass@192.168.0.197/cgi/mjpg/mjpeg.cgi
MPlayer 1.0rc1-maemo.29.n8x0 (C) 2000-2006 MPlayer Team
CPU: ARM
Internet Tablet OS version: RX-34+RX-44+RX-48_DIABLO_5.2008.43-7_PR_MR0

[MENU] Can't open menu config file: /home/user/.mplayer/menu.conf
Menu inited: /etc/mplayer/menu.conf

Playing http://admin:pass@192.168.0.197/cgi/mjpg/mjpeg.cgi.
Connecting to server 192.168.0.197[192.168.0.197]: 80...
Cache size set to 300 KBytes
Cache fill: 16.00% (49152 bytes)
Stream not seekable!
Stream not seekable!
libavformat file format detected.
[ingenient @ 0x39de60]Could not find codec parameters (Video: mjpeg)
LAVF_header: av_find_stream_info() failed


Exiting... (End of file)

and if i try to use the rtsp port it gets even angrier:

~ $ mplayer http://admin:pass@192.168.0.197:5 54/cgi/mjpg/mjpeg.cgi
MPlayer 1.0rc1-maemo.29.n8x0 (C) 2000-2006 MPlayer Team
CPU: ARM
Internet Tablet OS version: RX-34+RX-44+RX-48_DIABL O_5.2008.43-7_PR_MR0

[MENU] Can't open menu config file: /home/user/.mpl ayer/menu.conf
Menu inited: /etc/mplayer/menu.conf

Playing http://admin:pass@192.168.0.197:554/c gi/mjpg/mjpeg.cgi.
Connecting to server 192.168.0.197[192.168.0.197]: 554...
Server returned 400: Bad Request
STREAM_ASF, URL: http://admin:pass@192.168.0. 197:554/cgi/mjpg/mjpeg.cgi
Connecting to server 192.168.0.197[192.168.0.197]: 554...
Server returned 400:Bad Request
Failed to parse header.
Failed, exiting.
Connecting to server 192.168.0.197[192.168.0.197]: 554...
Server returned 400: Bad Request
File not found: 'admin:pass@192.168.0.197:554 /cgi/mjpg/mjpeg.cgi'
Failed to open http://admin:pass@192.168.0.19 7:554/cgi/mjpg/mjpeg.cgi.


Exiting... (End of file)


any ideas?

Thesandlord 2009-06-24 04:25

Re: ip camera viewer for the n-810
 
Maybe if you go to the URL with the web browser, the default media player will tune into the stream. Not sure though.

However, if you can return the camera, it may be cool to buy another N800 or N810. You can stream video from the second tablet to the first easily, and even remotely play music or videos (to put the baby to sleep, etc...)

qole 2009-06-24 06:07

Re: ip camera viewer for the n-810
 
Ha!

This page has a suggestion that worked for my Trendnet camera! I got fullscreen video on my tablet. A slight delay, and not terribly high FPS, but it worked...

Code:

mkfifo a.mjpeg
wget -O a.mjpeg http://admin:pass@192.168.0.197/cgi/mjpg/mjpeg.cgi 2>/dev/null & mplayer -cache 32 -demuxer 35 a.mjpeg

Notes:
  • You have to do this in your home directory or something, not on a FAT partition (like /media/mmcX) otherwise mkfifo gives a permission error.
  • The -O after wget is a capital O not a zero.
  • It looks like you only have to make the a.mjpeg file (actually a pipe, not a file) one time, and then just call the wget line each time.

Bundyo 2009-06-24 06:15

Re: ip camera viewer for the n-810
 
Quote:

Originally Posted by gatornuke (Post 299212)
no love folks:

~ $ mplayer http://admin:pass@192.168.0.197/cgi/mjpg/mjpeg.cgi
MPlayer 1.0rc1-maemo.29.n8x0 (C) 2000-2006 MPlayer Team
CPU: ARM
Internet Tablet OS version: RX-34+RX-44+RX-48_DIABLO_5.2008.43-7_PR_MR0

[MENU] Can't open menu config file: /home/user/.mplayer/menu.conf
Menu inited: /etc/mplayer/menu.conf

Playing http://admin:pass@192.168.0.197/cgi/mjpg/mjpeg.cgi.
Connecting to server 192.168.0.197[192.168.0.197]: 80...
Cache size set to 300 KBytes
Cache fill: 16.00% (49152 bytes)
Stream not seekable!
Stream not seekable!
libavformat file format detected.
[ingenient @ 0x39de60]Could not find codec parameters (Video: mjpeg)
LAVF_header: av_find_stream_info() failed


Exiting... (End of file)

and if i try to use the rtsp port it gets even angrier:

~ $ mplayer http://admin:pass@192.168.0.197:5 54/cgi/mjpg/mjpeg.cgi
MPlayer 1.0rc1-maemo.29.n8x0 (C) 2000-2006 MPlayer Team
CPU: ARM
Internet Tablet OS version: RX-34+RX-44+RX-48_DIABL O_5.2008.43-7_PR_MR0

[MENU] Can't open menu config file: /home/user/.mpl ayer/menu.conf
Menu inited: /etc/mplayer/menu.conf

Playing http://admin:pass@192.168.0.197:554/c gi/mjpg/mjpeg.cgi.
Connecting to server 192.168.0.197[192.168.0.197]: 554...
Server returned 400: Bad Request
STREAM_ASF, URL: http://admin:pass@192.168.0. 197:554/cgi/mjpg/mjpeg.cgi
Connecting to server 192.168.0.197[192.168.0.197]: 554...
Server returned 400:Bad Request
Failed to parse header.
Failed, exiting.
Connecting to server 192.168.0.197[192.168.0.197]: 554...
Server returned 400: Bad Request
File not found: 'admin:pass@192.168.0.197:554 /cgi/mjpg/mjpeg.cgi'
Failed to open http://admin:pass@192.168.0.19 7:554/cgi/mjpg/mjpeg.cgi.


Exiting... (End of file)


any ideas?

On that page there is no mention that you should use the rtsp port with the cgi url, try it directly. Also I think the internal mplayer has better rtsp support than mplayer (if mplayer has any at all :)).

Also mplayer can't detect (or can't play) the mjpeg stream from the cgi, so try specifying the codec or maybe try the rc2 mplayer binary (search for it).


All times are GMT. The time now is 12:39.

vBulletin® Version 3.8.8