Camera support
Moderator: RDNZL
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Camera support
Hi,
I have finished building a module to hold all camera's
So I can ditch the VideoServer config.
The types I have defined are:
Video4Linux
you specify mplayer params.
Fetch Image
you specify the full url of an image to fetch.
MJPEG Stream
you specify an url of a MJPEG stream.
You can enabled PTZ for a defined cam, type VISCA or URL Control.
Up,Down,Left,Right.
Do I need to add more cam/ptz types?
If so which ones.
Does anybody now a public MJPEG stream, and/or PTZ controllable AXIS cam online (via urls). So I can test the module.
Any help would be nice!
Regards,
Ron.
I have finished building a module to hold all camera's
So I can ditch the VideoServer config.
The types I have defined are:
Video4Linux
you specify mplayer params.
Fetch Image
you specify the full url of an image to fetch.
MJPEG Stream
you specify an url of a MJPEG stream.
You can enabled PTZ for a defined cam, type VISCA or URL Control.
Up,Down,Left,Right.
Do I need to add more cam/ptz types?
If so which ones.
Does anybody now a public MJPEG stream, and/or PTZ controllable AXIS cam online (via urls). So I can test the module.
Any help would be nice!
Regards,
Ron.
-
- Member
- Posts: 255
- Joined: Thu Jun 25, 2009 2:09 pm
- Location: Enschede, The Netherlands
Camera support
Hi Ron,
I can give you a MJPEG-stream from an axis cam(thanks Pieter;)), I can send you the public link tomorrow. That way I can point it somewhere else so my roommates don;t mind
Don't have a PTZ though, maybe Pieter or Snelvuur can grant you temporary acces to theirs?
** edit **
Does your module support authentication?
I can give you a MJPEG-stream from an axis cam(thanks Pieter;)), I can send you the public link tomorrow. That way I can point it somewhere else so my roommates don;t mind
Don't have a PTZ though, maybe Pieter or Snelvuur can grant you temporary acces to theirs?
** edit **
Does your module support authentication?
- Snelvuur
- Forum Moderator
- Posts: 3156
- Joined: Fri Apr 06, 2007 11:01 pm
- Location: Netherlands
- Contact:
Camera support
Ron: if you need axis to my axis 241q, just let me know..
// Erik (binkey.nl)
// Erik (binkey.nl)
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Camera support
Video4Linux and MJPEG works now.
I'm viewing Bwired's stream inside DomotiGa... LOL
http://www.domotiga.nl/projects/domotig ... camera.png
Don't know about authentication though.
If it works when you specify it in the url like so user:password@... maybe.
But I have to test that.
Mplayer has auth support for RTSP streams too, but have to look into that.
Anyway, now I can create as many cams as I want, local and public ones, and view them. Need to recode the image grabbing part (for doorbell and mailbox events) and the PTZ buttons.
Erik, maybe you can create a temp. user on your cam so I can test authentication and PTZ via urls for a short while, have to look them up for axis..
Maybe a record button is handy too... so much to do
Will send you a mail then.
Thanks.
Regards,
Ron.
I'm viewing Bwired's stream inside DomotiGa... LOL
http://www.domotiga.nl/projects/domotig ... camera.png
Don't know about authentication though.
If it works when you specify it in the url like so user:password@... maybe.
But I have to test that.
Mplayer has auth support for RTSP streams too, but have to look into that.
Anyway, now I can create as many cams as I want, local and public ones, and view them. Need to recode the image grabbing part (for doorbell and mailbox events) and the PTZ buttons.
Erik, maybe you can create a temp. user on your cam so I can test authentication and PTZ via urls for a short while, have to look them up for axis..
Maybe a record button is handy too... so much to do
Will send you a mail then.
Thanks.
Regards,
Ron.
Camera support
DomotiGa is starting to look better with the day!
I think that I'll need to start plaing with it (again) soon.
Keep up the good work!
I think that I'll need to start plaing with it (again) soon.
Keep up the good work!
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Camera support
@Noel: it's free so why not!
Viewing a password protected MJPEG stream with mplayer from a Axis 210 works, but not from a Axis 207W, (authentication failed)
Either the protocol is different, or it's caused by a strange/unknown reply.
If I view the 207W stream via firefox I get a new popup window just before opening, don't know if this is a warning coming from firefox or a warning pushed by the cam.
Anybody has a idea? Are there authentication options in the setup of a Axis 207W that needs tweaking?
Axis 210 WORKS
Axis 207W DOESN'T WORK
Regards,
Ron.
Viewing a password protected MJPEG stream with mplayer from a Axis 210 works, but not from a Axis 207W, (authentication failed)
Either the protocol is different, or it's caused by a strange/unknown reply.
If I view the 207W stream via firefox I get a new popup window just before opening, don't know if this is a warning coming from firefox or a warning pushed by the cam.
Anybody has a idea? Are there authentication options in the setup of a Axis 207W that needs tweaking?
Axis 210 WORKS
Code: Select all
mplayer http://user:blabla@host:8080/mjpg/video.mjpg
MPlayer SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing http://user:view@host:8080/mjpg/video.mjpg.
Resolving ip for AF_INET6...
Couldn't resolve name for AF_INET6: ip
Connecting to server host[ip]: 8080...
Cache size set to 320 KBytes
Cache fill: 17.50% (57344 bytes)
Stream not seekable!
Stream not seekable!
libavformat file format detected.
[lavf] Video stream found, -vid 0
VIDEO: [MJPG] 640x480 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
Code: Select all
Playing http://user:password@host:81/mjpg/video.mjpg.
Resolving host for AF_INET6...
Couldn't resolve name for AF_INET6: host
Resolving host for AF_INET...
Connecting to server host[ip]: 81...
Authentication required for "AXIS_00411111118", nonce="00000c57Y5185494cd667247ce731a51e11a6f190a0bd2", stale=FALSE, qop="auth"
Authentication failed. Please use the -user and -passwd options to provide your
username/password for a list of URLs, or form an URL like:
http://username:password@hostname/file
Ron.
-
- Member
- Posts: 255
- Joined: Thu Jun 25, 2009 2:09 pm
- Location: Enschede, The Netherlands
Camera support
Hey Ron,
I just tried it locally in this way:
mplayer rtsp://user:pass@ip:554/mpeg4/media.amp which seems to work locally, just need to see what I exactly need to forward.
I forwarded it so you can test with it if you like Ron.
As soon as I form the url the way you do I can;t access it locally, with the local adress either.
The manual is not something that makes one happy....
As far as I can tell one can only stream MJPEG via the webpage of the axis 207w.
I just tried it locally in this way:
mplayer rtsp://user:pass@ip:554/mpeg4/media.amp which seems to work locally, just need to see what I exactly need to forward.
I forwarded it so you can test with it if you like Ron.
As soon as I form the url the way you do I can;t access it locally, with the local adress either.
The manual is not something that makes one happy....
As far as I can tell one can only stream MJPEG via the webpage of the axis 207w.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Camera support
Jos, the Axis 207W supports direct MJPEG streaming too.
Because I can connect to your camera with Firefox 3.5.5 and it streams MJPEG by using this url: http://user:password@host:81/mjpg/video.mjpg. so without using the html/applet stuff, but you get a warning popup when you connect, can you tweak authentication manners in the setup of that cam?
It's seems mplayer cannot cope with that. Will have to google bit more, since I only find my own post... lol
Regards,
Ron.
Because I can connect to your camera with Firefox 3.5.5 and it streams MJPEG by using this url: http://user:password@host:81/mjpg/video.mjpg. so without using the html/applet stuff, but you get a warning popup when you connect, can you tweak authentication manners in the setup of that cam?
It's seems mplayer cannot cope with that. Will have to google bit more, since I only find my own post... lol
Regards,
Ron.
-
- Member
- Posts: 255
- Joined: Thu Jun 25, 2009 2:09 pm
- Location: Enschede, The Netherlands
Camera support
Sorry for the fuzz, I had passwords set to be encrypted due to sending data over http.
Can you try now? Locally the link works with mplayer, but mplayer doesn't like showing some picture, it hangs on filling cache.
I'm not sure if this is a mplayer-issue on the server I use.
** edit **
I changed the player from mplayer to vlc and that works, I'll try to find out if I miss a decoder or something...
I just had to wait a long time for an image to appear, it work with the option -demuxer 35 so:
mplayer http://user:password@host:81/mjpg/video.mjpg -demuxer 35
Can you try now? Locally the link works with mplayer, but mplayer doesn't like showing some picture, it hangs on filling cache.
I'm not sure if this is a mplayer-issue on the server I use.
** edit **
I changed the player from mplayer to vlc and that works, I'll try to find out if I miss a decoder or something...
I just had to wait a long time for an image to appear, it work with the option -demuxer 35 so:
mplayer http://user:password@host:81/mjpg/video.mjpg -demuxer 35
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Camera support
I can view your stream if I add "-demuxer lavf" to mplayer options, but takes some time before it shows it.
Regards,
Ron.
Regards,
Ron.
-
- Member
- Posts: 255
- Joined: Thu Jun 25, 2009 2:09 pm
- Location: Enschede, The Netherlands
Camera support
Gheh, notice my upload going up
Locally it takes quite some time as well, and seems a lot slower than vlc...
Weird that mplayer doesn't detect it automatically and that it's slower than vlc...
Locally it takes quite some time as well, and seems a lot slower than vlc...
Weird that mplayer doesn't detect it automatically and that it's slower than vlc...
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Camera support
I was looking at vlc as well, just for that reason, but couldn't see that quickly if it can be embedded in an Xwindow like mplayer can (with mplayer -wid <id>)
Found cvlc --drawable-xid <id> but it doesn't work, need some more time.
Regards,
Ron.
Found cvlc --drawable-xid <id> but it doesn't work, need some more time.
Regards,
Ron.
-
- Member
- Posts: 255
- Joined: Thu Jun 25, 2009 2:09 pm
- Location: Enschede, The Netherlands
Camera support
Now wories, that's what I provided the access, it's one way of helping you out.
I don;t really understand why mplayer is so slow, compared to vlc it takes longer to show an image and then it's delayed as well.
with vlc I get the 30 fps I expect, mplayer says it plays at 25 but it seems somewhere between 15-20.
All in all it seems vlc is better at playing mjpeg than mplayer.
with mp4 mplayer plays well, but then you got to worry about the mp4-license(I think)
I don;t really understand why mplayer is so slow, compared to vlc it takes longer to show an image and then it's delayed as well.
with vlc I get the 30 fps I expect, mplayer says it plays at 25 but it seems somewhere between 15-20.
All in all it seems vlc is better at playing mjpeg than mplayer.
with mp4 mplayer plays well, but then you got to worry about the mp4-license(I think)