Reply
Thread Tools
Posts: 11 | Thanked: 0 times | Joined on Jun 2009
#1
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's Avatar
Posts: 1,137 | Thanked: 402 times | Joined on Sep 2007 @ Catalunya
#2
It's possible than mplayer is capable of playing it, once you find the address of the video stream.
 
Posts: 11 | Thanked: 0 times | Joined on Jun 2009
#3
Originally Posted by luca View Post
It's possible than mplayer is capable of playing it, once you find the address of the video stream.
I tried http://usernameassword@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's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#4
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
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following 4 Users Say Thank You to Bundyo For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#5
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.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2009-06-23 at 18:42.
 

The Following 2 Users Say Thank You to qole For This Useful Post:
Posts: 11 | Thanked: 0 times | Joined on Jun 2009
#6
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.
 
Posts: 11 | Thanked: 0 times | Joined on Jun 2009
#7
no love folks:

~ $ mplayer http://admin***@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***@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***@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***@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***@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***@192.168.0.197:554 /cgi/mjpg/mjpeg.cgi'
Failed to open http://admin***@192.168.0.19 7:554/cgi/mjpg/mjpeg.cgi.


Exiting... (End of file)


any ideas?
 
Posts: 1,213 | Thanked: 356 times | Joined on Jan 2008 @ California and Virginia
#8
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...)
__________________
----------------------------------------------------

www.ezschool.com - The best online educational experience.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#9
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.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2009-06-24 at 06:10.
 

The Following User Says Thank You to qole For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#10
Originally Posted by gatornuke View Post
no love folks:

~ $ mplayer http://admin***@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***@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***@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***@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***@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***@192.168.0.197:554 /cgi/mjpg/mjpeg.cgi'
Failed to open http://admin***@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).
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 
Reply


 
Forum Jump


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