Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameter for choosing camera #24

Open
tompe17 opened this issue Aug 19, 2013 · 3 comments
Open

Add parameter for choosing camera #24

tompe17 opened this issue Aug 19, 2013 · 3 comments

Comments

@tompe17
Copy link

tompe17 commented Aug 19, 2013

Would it be possible to add a parameter for choosing camera or maybe a parameter for a string to append to the URL parameters?

Now I did in axis.py:

def formURL(self):
    self.url = 'http://%s/mjpg/video.mjpg' % self.axis.hostname
    self.url += "?fps=0&resolultion=%dx%d" % (self.axis.width, 
                                                        self.axis.height)
    self.url += "&camera=2"
    rospy.logdebug('opening ' + str(self.axis))
@mikepurvis
Copy link
Member

Is it typical to have more than one camera on a single IP? We haven't come across any Axis cams like this.

@cedricpradalier
Copy link
Contributor

I think the simplest way would be to add the opportunity for an additional
string in the parameters.

For instance, I just found out mine was doing too much compression, and
that it could be requested at connection time, so I added "&compression=%d"
% self.axis.compression to my URL.

Regards

On Mon, Aug 19, 2013 at 4:31 PM, mikepurvis [email protected]:

Is it typical to have more than one camera on a single IP? We haven't come
across any Axis cams like this.


Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-22875930
.

Cedric Pradalier

@tompe17
Copy link
Author

tompe17 commented Aug 19, 2013

The use case we have is an AXIS P7214 media controller with four video inputs (we have one colour camera and on IR camera) and the images is sent on the same IP. To be able to add an additional string is probably the best thing to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants