axis_camera icon indicating copy to clipboard operation
axis_camera copied to clipboard

"Error opening URL...Looping until camera appears" when viewing image in image_view

Open mtsakaguchi opened this issue 9 years ago • 5 comments

Hello,

I am running into an issue where I cannot view the published Axis camera images using the image_view package. I run rosrun axis_camera axis.py where the default host name is 192.168.0.90 and I get the warning that the publisher should be created with an explicit keyword argument 'queue_size'. When I run image_view to view the raw image stream, the axis camera node prints out the warning

[WARN] [WallTime: 1456299554.224392] Error opening URL http://192.168.0.90/mjpg/video.mjpg?fps=0&resolution=640x480Possible timeout. Looping until camera appears

which doesn't make sense because I can go to my web browser and type in 192.168.0.90 and I'm able to view the live stream and command the PTZ.

I've even tried removing the axis_camera package and using the latest tagged release version and I still get the same error.

Any help would be appreciated!

mtsakaguchi avatar Feb 23 '16 23:02 mtsakaguchi

Hello,

You should most probably launch the node using a launch file as the example: https://github.com/ros-drivers/axis_camera/blob/master/launch/axis.launch

But modifying to your IP. You may be missing some param the node needs.

Also check that http://192.168.0.90/mjpg/video.mjpg?fps=0&resolution=640x480 actually exists for your camera. That's where the video feed is trying to be captured.

Also, there is a PR here: https://github.com/ros-drivers/axis_camera/pull/42 with a new implementation which seems to improve a lot. But it may need a bit more of testing.

And finally, if you only want to see the camera stream, you can also try video_stream_opencv http://wiki.ros.org/video_stream_opencv https://github.com/ros-drivers/video_stream_opencv with a launch file like this one: https://github.com/ros-drivers/video_stream_opencv/blob/master/launch/mjpg_stream.launch

Hope it helps.

2016-02-24 0:51 GMT+01:00 mtsakaguchi [email protected]:

Hello,

I am running into an issue where I cannot view the published Axis camera images using the image_view package. I run rosrun axis_camera axis.py where the default host name is 192.168.0.90 and I get the warning that the publisher should be created with an explicit keyword argument 'queue_size'. When I run image_view to view the raw image stream, the axis camera node prints out the warning

[WARN] [WallTime: 1456299554.224392] Error opening URL http://192.168.0.90/mjpg/video.mjpg?fps=0&resolution=640x480Possible timeout. Looping until camera appears

which doesn't make sense because I can go to my web browser and type in 192.168.0.90 and I'm able to view the live stream and command the PTZ.

I've even tried removing the axis_camera package and using the latest tagged release version and I still get the same error.

Any help would be appreciated!

— Reply to this email directly or view it on GitHub https://github.com/ros-drivers/axis_camera/issues/43.

awesomebytes avatar Feb 24 '16 10:02 awesomebytes

Sorry for being two years late to the subject, but I had this same issue and resolved it by setting my Axis camera to allow for anonymous access (no username/pass authentication) and left off the _user:= and _password:= from the arguments in running the ROS node, worked just fine

thebmfinn avatar Feb 28 '18 22:02 thebmfinn

I can confirm that allowing anonymous login fixes this issue.

jeff-o avatar Apr 11 '18 14:04 jeff-o

Setting to anonymous login works for me too.

prarobo avatar Jul 13 '18 18:07 prarobo

yep setting to anonymous fixed the issue.

aalgaed avatar Sep 15 '20 17:09 aalgaed