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

qole 2009-06-24 06:32

Re: ip camera viewer for the n-810
 
....but try my method first, it worked for me ;)

Bundyo 2009-06-24 06:40

Re: ip camera viewer for the n-810
 
Out of interest, why wouldn't mplayer -demuxer 35 work directly on the stream?

From the mplayer FAQ:
Quote:

xine or videolan can play my file but mplayer cannot!

* try mplayer -demuxer lavf file

linuxeventually 2009-06-24 08:35

Re: ip camera viewer for the n-810
 
Mplayer can be a ***** in regards to finding the right parameters to send to it.

You said you can access it via Java? Qole's "Easy Debian Turbo-Charged" image has Java enabled within Iceweasel/Firefox. Probably very slow.

And FYI directx is Internet Explorer only (and total crap). It's too bad the camera doesn't just stream straight video feed.

Bundyo 2009-06-24 08:39

Re: ip camera viewer for the n-810
 
It streams video and audio as seen above.

There is embedded Java on Sun's site, but definitely not usable for video...

G's Tablet 2009-06-24 12:52

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

Originally Posted by gatornuke (Post 298817)
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.

I have a very similar problem and wonder if anyone can help. I am tying to access my Linksys Internet Camera WVC200 using the N810 and although I am able to access it and send commands thru the N810 to move the camera the video screen is black and a message reads “Video for other Platform / OS”

Accessing my web cam was one of the main reasons why I purchase the N810.

Does anyone know if there is a way to fix this? Maybe a different browser, drivers, apps, anything? I would gladly pay for any software needed to make this happen. Thanks.

qole 2009-06-24 16:23

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

Originally Posted by Bundyo (Post 299238)
Out of interest, why wouldn't mplayer -demuxer 35 work directly on the stream?

From the mplayer FAQ:
Quote:

xine or videolan can play my file but mplayer cannot!

* try mplayer -demuxer lavf file

Someone suggested that somewhere else, but it didn't work for me getting an mjpeg stream from my IP camera.

I've been able to stream all kinds of video to my tablet's mplayer, including a webcam on my PC using VLC to encode the video.

There's something broken inside mplayer with mjpeg video, I think...

qole 2009-06-24 16:26

Re: ip camera viewer for the n-810
 
By the way, that reminds me. If you can stream your camera's A/V to VLC on a PC or Mac, you can use VLC to re-encode the stream to a better format and serve that stream to your tablet.

gatornuke 2009-06-24 18:10

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

Originally Posted by qole (Post 299374)
By the way, that reminds me. If you can stream your camera's A/V to VLC on a PC or Mac, you can use VLC to re-encode the stream to a better format and serve that stream to your tablet.

I attempted that, but i wasn't sure how to correctly configure VLC and what commands to use on my tablet to make it work. I prefer the suggestion you made on the previous page, however (with mkfifo and wget), since that way i don't need to have any PC running in order to view the camera (although my living room media center PC is always runnings anyhow because of extenders).

I'll have to try it when i get home and let you know if it works. Thanks.

gatornuke 2009-06-25 00:40

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

Originally Posted by qole (Post 299231)
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.

i had really high hopes for this, but it doesn't quite work. it says it's playing, but nothing happens. am i missing something?

btw, i looked for rc2 but couldn't figure out how to install it. again, i've never used linux before.

Code:

~ $ mkfifo a.mjpeg
mkfifo: a.mjpeg: File exists
~ $ 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
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 a.mjpeg.


gatornuke 2009-06-25 02:22

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

Originally Posted by Thesandlord (Post 299219)
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...)

That's the first thing i tried when i got the tablet. I can access the camera's web server and change settings like camera video resolution, sound volume, etc, but it will not display the actual AV feed

gatornuke 2009-06-26 03:12

Re: ip camera viewer for the n-810
 
ok, so i'm just about to give up on this.

i'm revisiting the vlc streaming approach. i'm just tryng to stream the destop (for now) of 192.168.0.198 to my n810. i set up vlc on the pc to stream to 192.168.0.199 (my n810) using rtp on port 1234. i'm using MPEG-TS encapsulation and checked the "sap announce" box.

i tried the following in the command line and of course, it didn't work

Code:

~ $ mplayer rtp://192.168.0.198:1234
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 rtp://192.168.0.198:1234.
STREAM_RTP, URL: rtp://192.168.0.198:1234
Failed to connect to server
rtp_streaming_start failed
File not found: '192.168.0.198:1234'
Failed to open rtp://192.168.0.198:1234.


Exiting... (End of file)

does anyone know what i'm doing wrong, or could someone please direct me to some clear documentation?

gatornuke 2009-07-02 14:32

Re: ip camera viewer for the n-810
 
SOLUTION FOUND!!

I returned the N-810 and purchased an Advent ADV3500PC 7" Portable GPS Navigation with built in Tablet PC for $270USD (shipped), or about the cost of the N-810 plus the Nav subscription. It's a 7" Windows XP tablet with built-in GPS. I expect to be able to not only use the IP camera's web client, but also install my IPcam monitoring software so i can see the baby cam and all future cameras in full screen, plus all the other features. It should get here tomorrow :)

I really appreciate all the help i received here, but unfortunately I just couldn't find the magical combination of command line parameters to make this application work in my device. All my knowledge of VBA, C++, and even my MS in Nuclear Engineering were just not enough training to figure this out. This was mainly due to my lack of free time with my job and new baby and just the fact that i wasn't willing to put up with all the frustration, especially given the alternative I found.

Overall, the N-810 is a great little device with lots of potential, answers VoIP calls well, checks your e-mail, and surfs the web just fine, but if you're trying to view your IP cams on it, i'd strongly suggest staying away from it. Unless you're already intricately familiar with linux, I'd go with a windows-based solution if you want your stuff to just work.

qole 2009-07-02 15:39

Re: ip camera viewer for the n-810
 
gatornuke: Hope that solution works out for you.

Another possibility: You buy an inexpensive baby monitor from Toys'R'Us.

gatornuke 2009-07-02 17:53

Re: ip camera viewer for the n-810
 
Yes, I though about a baby monitor from babies r us and the like, but those with video capabilities are actually quite expensive and have very poor resolution and limited range. Using an IP cam was preferable because not only is it comparable in price, has better video and 2-way audio, but can i see it downstairs in my living room HTPC, in the office, and my Windows mobile cellphone. On top of that my parents, my inlaws, and close family can also see the baby and talk to him. I used to also be able to watch him from work, but i switched ISPs and the new guys block outgoing port 80, so i had to use a different port which happens to be blocked by my corporate firewall, but that's an entirely different issue.

I was just looking for a more mobile monitor for the ip cam, something we could set on the nightstand (rather than a laptop), take out to the deck, yard, etc. Again, i really appreciate all your help, and I'm sure it helped countless others reading this thread, but for some reason, i just couldn't get it to work.

The new device should work, given that it's an actual windows XP machine. The biggest downside is that it's only 256 MB of RAM, but i expect that to be sufficient for this application. It also has some other features that look quite nice on paper, but until i have it in my hands i really don't know how it's going to perform.

qole 2009-07-02 21:23

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

Originally Posted by gatornuke (Post 301663)
Using an IP cam was preferable because ...[it] has 2-way audio... [M]y parents, my inlaws, and close family can also see the baby and talk to him...

Holy smokes, that's kind of... creepy.... Unless your baby is in some kind of isolation chamber at the moment? Because otherwise... um, yeah. Creepy. :eek: :confused:

gatornuke 2009-07-05 22:08

Re: ip camera viewer for the n-810
 
Well, with my parents in florida and me living in PA, that's pretty much the only way they get to see their grandson, other than coming here once a year or so. And it's not like anyone can access the camera, you do need a username and password (which i set up for authorized persons as the only admin) and can be revoked at any time.


All times are GMT. The time now is 03:58.

vBulletin® Version 3.8.8